The error message goes: "error while loading shared libraries: libsystemc-2.3.1.so: cannot enable executable stack as shared object requires: Invalid argument".
Note that I've already set the environment variable,
LD_LIBRARY_PATH
, to the directory where SystemC library resides as below:2. A workaround is to use static-linking:
Note the flags used in the linking command:
-Wl, -Bstatic -lsystemc -Wl, -Bdynamic -pthread