[SciPy-dev] scipy compilation error on RHEL4

Robert Kern robert.kern at gmail.com
Thu May 31 23:35:14 EDT 2007


Angus McMorland wrote:
> Hi list,
> 
> I'm trying to install scipyfrom svn source on our dual Intel Xeon
> x86_64 server, which due to administrative reasons beyond my control
> runs RHEL4, and for which I don't have root access, so I'm doing a
> home dir install. I'm following the instructions in INSTALL.txt, and
> have, I think successfully compiled LAPACK and ATLAS. In the scipy
> compilation step, I get the following error:
> 
> /usr/bin/ld: /home/raid/amcmorl/lib/atlas/libptf77blas.a(dscal.o):
> relocation R_X86_64_PC32 against `atl_f77wrap_dscal__' can not be used
> when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> /usr/bin/ld: /home/raid/amcmorl/lib/atlas/libptf77blas.a(dscal.o):
> relocation R_X86_64_PC32 against `atl_f77wrap_dscal__' can not be used
> when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> error: Command "/usr/bin/g77 -g -Wall -shared
> build/temp.linux-x86_64-2.3/Lib/integrate/_odepackmodule.o
> -L/home/raid/amcmorl/lib/atlas -Lbuild/temp.linux-x86_64-2.3 -lodepack
> -llinpack_lite -lmach -lptf77blas -lptcblas -latlas -lg2c -o
> build/lib.linux-x86_64-2.3/scipy/integrate/_odepack.so" failed with
> exit status 1
> 
> I'm not sure what precisely it is that needs to be recompiled with the
> -fPIC flag. Any advice on how to proceed would be appreciated.

ATLAS needs to be recompiled with -fPIC.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-Dev mailing list