Closed keitat closed 2 years ago
sstcc has been broken for years if clang autoskeleton support is not built. The magic that does the renaming of main() uses code that is only valid in C++. It's probably not impossible to fix, but it doesn't currently seem worth the significant effort required. So I've just made the wrapper generate a useful error message and exit for this case.
Not including -fPIC all the time in the wrapper appears to be a conscious decision, but I can't think of a meaningful disadvantage to just compiling -fPIC always. AFAIK every example Makefile we have for skeletons includes -fPIC in the flags. I didn't see any issues in testing so I've changed the wrappers to just add -fPIC to everything. It will probably save some confusion for new users.
New Issue for sst-macro
The compiler wrappers of SSTMacro (sstcc/sst++) fails to process any C program.
Building SSTMacro using gcc-7.4.0 (or gcc-10.2.0) on CentOS. ./configure --prefix=
This is a test code.
Here is the output.
When using sst++, it complains that -fPIC is missing.