[SciPy-user] Building Scipy on Dell 64bit Xeon

Ed Rahn ed at lamedomain.net
Tue Jul 12 18:46:05 CDT 2005


On Wed, 13 Jul 2005 00:46:09 +0200
Nicolas Pernetty <nicopernetty at yahoo.fr> wrote:
> > I have a new one. It seems I
> > need to build the ATLAS libraries with -fPIC
> > 
> > /usr/bin/g77 -shared
> > build/temp.linux-x86_64-2.4/build/src/Lib/optimize/lbfgsb-0.9/_lbfg
> > sb module.o build/temp.linux-x86_64-2.4/build/src/fortranobject.o
> > build/temp.linux-x86_64-2.4/Lib/optimize/lbfgsb-0.9/routines.o
> > -L/usr/local/lib/atlas -Lbuild/temp.linux-x86_64-2.4
> > -llapack -lf77blas -lcblas -latlas -lg2c -o
> > build/lib.linux-x86_64-2.4/scipy/optimize/_lbfgsb.so
> > /usr/bin/ld:
> > /usr/local/lib/atlas/liblapack.a(dpotrf.o): relocation
> > R_X86_64_32 against `a local symbol' can not be used
> > when making a shared object; recompile with -fPIC
> > /usr/local/lib/atlas/liblapack.a: could not read
> > symbols: Bad value
> 
> -fPIC again...
> 

Setting the environment flag CFLAGS=-fPIC might work. If ATLAS uses
configure to setup Makefiles you will need to set this before running it
again. (e.g. CFLAGS=-fPIC ./configure --prefix=/usr/local/). I have not
done this with ATLAS, but this is how I solved the same problem
compiling other software.



cheers!
Ed



More information about the SciPy-user mailing list