[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: Installing SC from source: Still recommend gcc 4.8?



I spoke too soon. Around 68% completion I ran into this error:

[ 68%] Linking CXX executable sclang
/usr/bin/ld: ../external_libraries/hidapi/linux/libhidapi.a(hid.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../external_libraries/hidapi/hidapi_parser/libhidapi_parser.a(hidapi_parser.c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
lang/CMakeFiles/sclang.dir/build.make:127: recipe for target 'lang/sclang' failed
make[2]: *** [lang/sclang] Error 1
CMakeFiles/Makefile2:3618: recipe for target 'lang/CMakeFiles/sclang.dir/all' failed
make[1]: *** [lang/CMakeFiles/sclang.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

I wanted to just add the -fPIC option, like it suggests, to some command, but I don't know which to modify.

On Fri, Dec 29, 2017 at 1:34 AM, Jeffrey Brown <jeffbrown.the@xxxxxxxxx> wrote:
I'm installing SC from source right now. SC's README for Linux recommends gcc 4.8. Kubuntu comes installed with gcc 7. When I first tried installing with 4.8, I got an error "‘__builtin_isnan’ is not a member of ‘std’". Then I tried gcc 7 and got the same. But then I tried both gcc 7 and g++ 7, and now it's working (at the moment it's 40% finished).

--
Jeff Brown | Jeffrey Benjamin Brown
Website   |   Facebook   |   LinkedIn(spammy, so I often miss messages here)   |   Github   



--
Jeff Brown | Jeffrey Benjamin Brown
Website   |   Facebook   |   LinkedIn(spammy, so I often miss messages here)   |   Github