When building from source setup.py searches for libgsl.a and libgslcblas.a in some known paths which will be linked in compilation of bnm.cu and run_simulations.cpp. If there are preexisting GSL libraries but they have not been compiled with -fPIC compilation fails with this error message:
/bin/ld: /usr/lib/x86_64-linux-gnu/libgslcblas.a(xerbla.o): warning: relocation against `stderr@@GLIBC_2.2.5' in read-only section `.text'
/bin/ld: /usr/lib/x86_64-linux-gnu/libgslcblas.a(xerbla.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
To fix this the setup needs to identify if GSL libraries are compiled without -fPIC and if this is the case avoid using them.
When building from source
setup.py
searches forlibgsl.a
andlibgslcblas.a
in some known paths which will be linked in compilation ofbnm.cu
andrun_simulations.cpp
. If there are preexisting GSL libraries but they have not been compiled with-fPIC
compilation fails with this error message:To fix this the setup needs to identify if GSL libraries are compiled without
-fPIC
and if this is the case avoid using them.