In the process of compiling libArcus, the implementation of cmake is successful, but the implementation of the make command, the compiler error. The following is the exception information:
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.6m.a: error adding symbols: Bad value
collect2: Error:ld return 1
make[2]: [Arcus.so] error 1
make[1]: [CMakeFiles/python_module_Arcus.dir/all] Error 2
make: *** [all] Error 2
`
I have read some information that 64-bit system will compile Python when the problem occurs, but I re-compiled Python. Again make make libArcus when the implementation of this error message.
My environment is centos 7 python3.6 sip4.19.2
Will the following give some good advice? Thank you
In the process of compiling libArcus, the implementation of cmake is successful, but the implementation of the make command, the compiler error. The following is the exception information:
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against
_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython3.6m.a: error adding symbols: Bad value collect2: Error:ld return 1 make[2]: [Arcus.so] error 1 make[1]: [CMakeFiles/python_module_Arcus.dir/all] Error 2 make: *** [all] Error 2 ` I have read some information that 64-bit system will compile Python when the problem occurs, but I re-compiled Python. Again make make libArcus when the implementation of this error message. My environment is centos 7 python3.6 sip4.19.2 Will the following give some good advice? Thank you