[SciPy-Dev] Compilation problem on CentOS release 5.6

Bruce Southey bsouthey at gmail.com
Tue Oct 4 09:22:26 EDT 2011


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20111004/bb8c3ac4/attachment.html>


More information about the SciPy-Dev mailing list