Compilation Scipy 0.3.2
Hi I try to compile scipy_complet 0.3.2 on a Linux platform with gcc 3.4.3, python 2.4, fftw 2.1.5 and F2PY-2.45.241_1926. I found some troubles in the compilation of ffpack, and after investigation, it seems to be related with all fortran libraries wrapped with scipy. The error is for example this one: gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-proto+types -I/scisoft/ESRF_sw/linux_i386_03/include -fPIC' compile options: '-DSCIPY_FFTW_H -I/scisoft/ESRF_sw/linux_i386_03/include -Ibuil+d/src -I/scisoft/ESRF_sw/linux_i386_03/include/python2.4 -c' /mntdirect/_scisoft/ESRF_sw/linux_i386_03/bin/g77 -L/scisoft/ESRF_sw/linux_i386_03/lib build/temp.linux-i686-2.4/build/src/Lib/fftpack/_fftpackmodule.o build/temp.linux-i686-2.4/Lib/fftpack/src/zfft.o build/temp.linux-i686-2.4/Lib/fftpack/src/drfft.o build/temp.linux-i686-2.4/Lib/fftpack/src/zrfft.o build/temp.linux-i686-2.4/Lib/fftpack/src/zfftnd.o build/temp.linux-i686-2.4/build/src/fortranobject.o -L/scisoft/ESRF_sw/linux_i386_03/lib -Lbuild/temp.linux-i686-2.4 -ldfftpack -lrfftw -lfftw -lg2c -o build/lib.linux-i686-2.4/scipy/fftpack/_fftpack.so build/temp.linux-i686-2.4/build/src/Lib/fftpack/_fftpackmodule.o(.text+0x23): In function `int_from_pyobj': build/src/Lib/fftpack/_fftpackmodule.c:100: undefined reference to `PyInt_Type' build/temp.linux-i686-2.4/build/src/Lib/fftpack/_fftpackmodule.o(.text+0x33):bui+ld/src/Lib/fftpack/_fftpackmodule.c:100: undefined reference to `PyType_IsSubtyp To solve the compilation problem, it is necessary to add -shared to link step. But I do not understand why this -shared is not present. This seems to be related with scipy-distutils: % python scipy_distutils/gnufcompiler.py config_fc --verbose customize GnuFCompiler GnuFCompiler instance properties: archiver = ['ar', '-cr'] compile_switch = '-c' compiler_f77 = ['/mntdirect/_scisoft/ESRF_sw/linux_i386_03/bin/g77', '-Wall', '-fno-second-underscore', '-fPIC', '-O3', '-funroll -loops'] compiler_f90 = None compiler_fix = None libraries = ['g2c'] library_dirs = [] linker_so = ['/mntdirect/_scisoft/ESRF_sw/linux_i386_03/bin/g77', '-L/scisoft/ESRF_sw/linux_i386_03/lib'] object_switch = '-o ' ranlib = ['ranlib'] version_cmd = ['/mntdirect/_scisoft/ESRF_sw/linux_i386_03/bin/g77', ' --version'] 3.4.3 linker_so does not contains the -shared flag. Does anyone got an idea on how to solve the problem, I get lost with all setup.py... Thanks for help Mickael -- Mickael Profeta Scientific Software Service European Synchrotron Radiation Facility Tel: 04.76.88.26.04
participants (1)
-
Mickael Profeta