Matthias Jung Posted February 27, 2020 Report Share Posted February 27, 2020 C:\Users\...\systemc\src\sysc\packages\qt\md\iX86_64.s: Assembler messages: C:\Users\...\systemc\src\sysc\packages\qt\md\iX86_64.s:77: Error: junk at end of line, first unrecognized character is `-' mingw32-make.exe[2]: *** [...\systemc\src\CMakeFiles\systemc.dir\build.make:1266: .../systemc/src/CMakeFiles/systemc.dir/sysc/packages/qt/md/iX86_64.s.obj] Error 1 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:1006: .../systemc/src/CMakeFiles/systemc.dir/all] Error 2 mingw32-make.exe: *** [Makefile:129: all] Error 2 SystemC was build with CMAKE in the context of a CMAKE project. Under Linux and macOS its works, but on windows I get this assembler error shown above. It can be fixed by using pthreads but I think qt are much better. Commenting out the last 3 lines in the .s file helps: //#if defined(__linux__) && defined(__ELF__) //.section .note.GNU-stack,"",%progbits //#endif I assume that MinGW is still detected as linux. Any ideas to fix it? Quote Link to comment Share on other sites More sharing options...
maehne Posted March 1, 2020 Report Share Posted March 1, 2020 Thanks for reporting this issue and analysing the cause! I have forwarded your report to the SystemC LWG. Could you please try to make the preprocessor condition more strict by adding "!defined(__MINGW32__)" (see here and here) and report back whether this fixes the issue? Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted March 27, 2020 Report Share Posted March 27, 2020 On MinGW, you would be supposed to use the Windows Fiber-based implementation, e.g. when using the Automake-based build. Maybe the CMake setup for SystemC fails to select this correctly for this compiler? Quote Link to comment Share on other sites More sharing options...
maehne Posted July 23, 2020 Report Share Posted July 23, 2020 User @mo_ayman posted on 2020-07-15 on the SystemC forum about his effort to fix QuickThreads on Win64. He has created a branch on GitHub containing the current state of his fixes, which is based on SystemC 2.3.2. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.