[SciPy-user] Problems compiling scipy on SuSE 10.2

Karl Edler kte608@mail.usask...
Fri Jun 15 10:51:31 CDT 2007


Hello,

Recently I tried installing scipy from rpm packages on SuSE 10.2 (64bit)
and failed. Now I have tried compiling scipy and have run into some
problems.

I compiled atlas successfully and copied its *.a files to /usr/lib64/atlas

I ran "python setup.py build" in the scipy directory and the build
failed since it couldn't find the -lgcc_s library. I made a symbolic
link from /lib64/libgcc_s.so.1 -> /lib64/libgcc_s.so and the build was
able to proceed.

Now the build fails with something about -fPIC which I don't understand.
Here is the last bit of the output from "python setup.py build" (notice
: relocation R_X86_64_PC32 against `atl_f77wrap_dscal__' can not be used
when making a shared object; recompile with -fPIC):

customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using build_ext
building 'scipy.integrate._odepack' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC

compile options: '-DATLAS_INFO="\"3.6.0\"" -I/usr/local/lib64/atlas
-I/usr/lib64/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c'
/usr/bin/g77 -g -Wall -shared
build/temp.linux-x86_64-2.5/Lib/integrate/_odepackmodule.o
-L/usr/local/lib64/atlas -L/usr/lib/python2.5/config
-Lbuild/temp.linux-x86_64-2.5 -lodepack -llinpack_lite -lmach
-lptf77blas -lptcblas -latlas -lpython2.5 -lg2c -o
build/lib.linux-x86_64-2.5/scipy/integrate/_odepack.so
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
/usr/local/lib64/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/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
final link failed: Bad value
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
/usr/local/lib64/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/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
final link failed: Bad value
error: Command "/usr/bin/g77 -g -Wall -shared
build/temp.linux-x86_64-2.5/Lib/integrate/_odepackmodule.o
-L/usr/local/lib64/atlas -L/usr/lib/python2.5/config
-Lbuild/temp.linux-x86_64-2.5 -lodepack -llinpack_lite -lmach
-lptf77blas -lptcblas -latlas -lpython2.5 -lg2c -o
build/lib.linux-x86_64-2.5/scipy/integrate/_odepack.so" failed with exit
status 1

----------------------------------------------------------------------------------------------------------------
Does anyone know what this means or how to fix it?

Thanks,
Karl Edler


More information about the SciPy-user mailing list