accellera-official / systemc

SystemC Reference Implementation
https://systemc.org/overview/systemc/
Apache License 2.0
451 stars 145 forks source link

Error on running `make`: `qtmds.s:77:19: error: unexpected token in '.section' directive` #32

Closed parsanoori closed 2 years ago

parsanoori commented 2 years ago

On running make using the given installation guide, I get:

qtmds.s:77:19: error: unexpected token in '.section' directive
.section .note.GNU-stack,"",%progbits
                  ^
make[4]: *** [libqt_la-qtmds.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
AmeyaVS commented 2 years ago

What system are you using to build the SystemC library?(OS, underlying Arch.)

parsanoori commented 2 years ago

I'm on macos 11.6.5 using the following tools: cmake:

cmake version 3.23.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

make:

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

Using the clang++ compiler:

Homebrew clang version 13.0.1
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
AmeyaVS commented 2 years ago

Are you using CMake or the GNU Autotools for configuring the SystemC library build? If you are using GNU Autotools you need to use the same reference installation guide as shared by you on the original post. If you are using CMake then refer to this installation guide.

parsanoori commented 2 years ago

Thanks got the SystemC built using the cmake. But the make check is not working.