[SciPy-user] scipy build fails on Linux-x86-64 with custom ATLAS

David Warde-Farley dwf@cs.toronto....
Thu Sep 18 16:23:50 CDT 2008


Hi folks,

  I am having an issue building scipy from SVN. I rolled my own ATLAS  
and installed it under /usr/local/atlas, and passed the ATLAS  
environment variable. I also told it to use gfortran as opposed to  
g77 as that's what was used for ATLAS.

The compilation error is as follows:

---------------

/usr/bin/gfortran -Wall -Wall -shared build/temp.linux-x86_64-2.5/ 
scipy/integrate/_odepackmodule.o -L/usr/local/atlas/lib -Lbuild/ 
temp.linux-x86_64-2.5 -lodepack -llinpack_lite -lmach -lptf77blas - 
lptcblas -latlas -lgfortran -o build/lib.linux-x86_64-2.5/scipy/ 
integrate/_odepack.so
/usr/bin/ld: /usr/local/atlas/lib/libptf77blas.a(dscal.o): relocation  
R_X86_64_32 against `a local symbol' can not be used when making a  
shared object; recompile with -fPIC
/usr/local/atlas/lib/libptf77blas.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
/usr/bin/ld: /usr/local/atlas/lib/libptf77blas.a(dscal.o): relocation  
R_X86_64_32 against `a local symbol' can not be used when making a  
shared object; recompile with -fPIC
/usr/local/atlas/lib/libptf77blas.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -Wall -shared build/ 
temp.linux-x86_64-2.5/scipy/integrate/_odepackmodule.o -L/usr/local/ 
atlas/lib -Lbuild/temp.linux-x86_64-2.5 -lodepack -llinpack_lite - 
lmach -lptf77blas -lptcblas -latlas -lgfortran -o build/lib.linux- 
x86_64-2.5/scipy/integrate/_odepack.so" failed with exit status 1

---------------

I notice it's complaining about -fPIC, except that when I configured  
ATLAS, I specifically told it that every compiler should use -fPIC:

	../configure -m 2400 -b 64 -D c -DPentiumCPS=2400 --prefix=/usr/ 
local/atlas --with-netlib-lapack=../../lapack-3.1.1/lapack_LINUX.a - 
Fa acg '-fPIC'

That last option, if I am reading the docs correctly, should take  
care of it, yet SciPy's build still fails. Does anyone have any idea  
why?

Thanks,

David


More information about the SciPy-user mailing list