Compilation problem on CentOS release 5.6
Dear all, I am having troubles with the compilation of SciPy version 0.10.0b2 on CentOS 5.6. Here is the info: Kernel 2.6.18-238.9.1.el5 x86_64 Python 2.7.2 GCC 4.6.1 ATLAS 3.8.3 (rpm install with yum) NumPy 1.6.1 (compiled, tested and installed successfully) Defined in the shell: export BLAS=/usr/lib64/atlas/libcblas.so export ATLAS=/usr/lib64/atlas/libatlas.so export LAPACK=/usr/lib64/atlas/liblapack.so File site.cfg: [DEFAULT] libraries = gfortran, gfortranbegin library_dirs = /usr/local/lib:/usr/local/opt/gcc/4.6.1/lib When issuing the command: python setup.py build I get a big list of warnings and then error messages. The whole log is in attachment. After the line: gcc: build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c Error messages like this start to show up: /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o: In function `f2py_rout__fftpack_destroy_dct1_cache': /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2532: undefined reference to `PyArg_ParseTupleAndK eywords' /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2543: undefined reference to `PyErr_Occurred' /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2553: undefined reference to `Py_BuildValue' build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o: In function `f2py_rout__fftpack_destroy_dct2_cache': /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2471: undefined reference to `PyArg_ParseTupleAndK eywords' Someone knows why those "undefined reference" errors are showing up? Thanks in advance for your help. Raphael -- ___________________________________________________________ Raphael Leplae, Ph.D. Operations manager Tel: +32 2 650 3727 Computing Center Fax: +32 2 650 3740 ULB/VUB Avenue A. Buyl, 91 - CP 197 1050 Brussels Belgium ___________________________________________________________
On 10/04/2011 08:09 AM, Raphael Leplae wrote:
Dear all,
I am having troubles with the compilation of SciPy version 0.10.0b2 on CentOS 5.6. Here is the info: Kernel 2.6.18-238.9.1.el5 x86_64 Python 2.7.2 GCC 4.6.1 ATLAS 3.8.3 (rpm install with yum) NumPy 1.6.1 (compiled, tested and installed successfully)
Defined in the shell: export BLAS=/usr/lib64/atlas/libcblas.so export ATLAS=/usr/lib64/atlas/libatlas.so export LAPACK=/usr/lib64/atlas/liblapack.so
File site.cfg: [DEFAULT] libraries = gfortran, gfortranbegin library_dirs = /usr/local/lib:/usr/local/opt/gcc/4.6.1/lib
When issuing the command: python setup.py build I get a big list of warnings and then error messages. The whole log is in attachment.
After the line: gcc: build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c
Error messages like this start to show up: /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o: In function `f2py_rout__fftpack_destroy_dct1_cache': /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2532: undefined reference to `PyArg_ParseTupleAndK eywords' /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2543: undefined reference to `PyErr_Occurred' /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2553: undefined reference to `Py_BuildValue' build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o: In function `f2py_rout__fftpack_destroy_dct2_cache': /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2471: undefined reference to `PyArg_ParseTupleAndK eywords'
Someone knows why those "undefined reference" errors are showing up?
Thanks in advance for your help.
Raphael
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev You missed this part at the start: "Found executable /usr/bin/g77"
But then it is looking for gfortran (which I know Fedora installs) later on: "F77 : gfortran, version GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)" This is addressed at: http://docs.scipy.org/doc/numpy/user/install.html#fortran-abi-mismatch Regards Bruce
Dear Bruce, Thanks for the quick reply. I tried again as: python setup.py clean python setup.py build --fcompiler=gnu F77 is used for the compilation: Fortran f77 compiler: /usr/bin/g77 -g -Wall -fno-second-underscore -fPIC -O3 -funroll-loops ... g77:f77: scipy/fftpack/src/dfftpack/dcosqi.f ... but I still get the same errors. What I find strange is that definitions such as PyArg_ParseTupleAndKeywords are defined in the python include files. In my case: /usr/local/opt/python/2.7.2/include/python2.7/modsupport.h:#define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT And the right path is given to the compiler: -I/usr/local/opt/python/2.7.2/include/python2.7 I was not confronted with this problem while compiling other modules. Cheers, Raphael On 10/04/2011 03:22 PM, Bruce Southey wrote:
On 10/04/2011 08:09 AM, Raphael Leplae wrote:
Dear all,
I am having troubles with the compilation of SciPy version 0.10.0b2 on CentOS 5.6. Here is the info: Kernel 2.6.18-238.9.1.el5 x86_64 Python 2.7.2 GCC 4.6.1 ATLAS 3.8.3 (rpm install with yum) NumPy 1.6.1 (compiled, tested and installed successfully)
Defined in the shell: export BLAS=/usr/lib64/atlas/libcblas.so export ATLAS=/usr/lib64/atlas/libatlas.so export LAPACK=/usr/lib64/atlas/liblapack.so
File site.cfg: [DEFAULT] libraries = gfortran, gfortranbegin library_dirs = /usr/local/lib:/usr/local/opt/gcc/4.6.1/lib
When issuing the command: python setup.py build I get a big list of warnings and then error messages. The whole log is in attachment.
After the line: gcc: build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c
Error messages like this start to show up: /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o: In function `f2py_rout__fftpack_destroy_dct1_cache': /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2532: undefined reference to `PyArg_ParseTupleAndK eywords' /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2543: undefined reference to `PyErr_Occurred' /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2553: undefined reference to `Py_BuildValue' build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o: In function `f2py_rout__fftpack_destroy_dct2_cache': /software/CC/local/src/python/Libraries/scipy-0.10.0b2/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.c:2471: undefined reference to `PyArg_ParseTupleAndK eywords'
Someone knows why those "undefined reference" errors are showing up?
Thanks in advance for your help.
Raphael
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev You missed this part at the start: "Found executable /usr/bin/g77"
But then it is looking for gfortran (which I know Fedora installs) later on: "F77 : gfortran, version GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)"
This is addressed at: http://docs.scipy.org/doc/numpy/user/install.html#fortran-abi-mismatch
Regards Bruce
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev
-- ___________________________________________________________ Raphael Leplae, Ph.D. Operations manager Tel: +32 2 650 3727 Computing Center Fax: +32 2 650 3740 ULB/VUB Avenue A. Buyl, 91 - CP 197 1050 Brussels Belgium ___________________________________________________________
participants (2)
-
Bruce Southey -
Raphael Leplae