[SciPy-dev] scipy compilation error on RHEL4

Angus McMorland amcmorl at gmail.com
Fri Jun 1 19:09:37 EDT 2007


On 01/06/07, Robert Kern <robert.kern at gmail.com> wrote:
> Angus McMorland wrote:
> > Hi list,
> >
> > I'm trying to install scipy from 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.

Okay, then I don't know how to do that correctly. I tried, in the
ATLAS configuration script, adding -fPIC to the c-compiler flags,
which resulted, in the makefile, in:

CCFLAG0 = -fomit-frame-pointer -O3 -funroll-all-loops -fPIC

and

MMFLAGS = -fomit-frame-pointer -O -fPIC

and recompiled atlas, but still got the same error when compiling
scipy. What's the correct approach?

Thanks again,

Angus.
-- 
AJC McMorland, PhD Student
Physiology, University of Auckland



More information about the SciPy-Dev mailing list