[SciPy-user] more build issues - slamch.o relocation R_X86_64_32S error

christopher taylor christopher.paul.taylor@gmail....
Mon Jan 26 09:22:25 CST 2009


So I've followed the build instructions in the ATLAS package, and the
SciPy package. I've also followed the instructions for building scipy
on a centos box and I consistently get the following build error:

gcc: build/src.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scipy/lib/lapack/flapackmodule.c
/usr/bin/g77 -g -Wall -g -Wall -shared
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scipy/lib/lapack/flapackmodule.o
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/fortranobject.o
-L~/opt/usr/local/atlas/lib -Lbuild/temp.linux-x86_64-2.5 -llapack
-lptf77blas -lptcblas -latlas -lg2c -o
build/lib.linux-x86_64-2.5/scipy/lib/lapack/flapack.so
/usr/bin/ld: ~/opt/usr/local/atlas/lib/liblapack.a(slamch.o):
relocation R_X86_64_32S against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
~/opt/usr/local/atlas/lib/liblapack.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
/usr/bin/ld: ~/opt/usr/local/atlas/lib/liblapack.a(slamch.o):
relocation R_X86_64_32S against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
~/opt/usr/local/atlas/lib/liblapack.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: Command "/usr/bin/g77 -g -Wall -g -Wall -shared
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scipy/lib/lapack/flapackmodule.o
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/fortranobject.o
-L~/opt/usr/local/atlas/lib -Lbuild/temp.linux-x86_64-2.5 -llapack
-lptf77blas -lptcblas -latlas -lg2c -o
build/lib.linux-x86_64-2.5/scipy/lib/lapack/flapack.so" failed with
exit status 1
[
I've aliased gfortran to g77 and that gets me similar results. any
recommendations? this build error is *killing* me.

thanks,
ct


More information about the SciPy-user mailing list