[SciPy-Dev] Scipy build errors - undefined reference to `Py* - CentOS6

Ralf Gommers ralf.gommers at gmail.com
Sat May 3 10:32:25 EDT 2014


On Mon, Apr 28, 2014 at 6:48 PM, sidharth kashyap <
sidharth.n.kashyap at gmail.com> wrote:

> Hi,
>
> I am getting the below errors when I try to build Scipy.
>
> build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/_fftpackmodule.o:
> In function `f2py_rout__fftpack_destroy_dst1_cache':
>
> scipy-0.13.3/scipy/fftpack/build/src.linux-x86_64-2.7/_fftpackmodule.c:3458:
> undefined reference to `PyArg_ParseTupleAndKeywords'
> ...<snip>...
> The command at which it fails:
>
> gfortran -Wall -L/app/libraries/expat/2.0.1/gnu-4.6.2/lib -lexpat -g
> build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/_fftpackmodule.o
> build/temp.linux-x86_64-2.7/src/zfft.o
> build/temp.linux-x86_64-2.7/src/drfft.o
> build/temp.linux-x86_64-2.7/src/zrfft.o
> build/temp.linux-x86_64-2.7/src/zfftnd.o
> build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/src/dct.o
> build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/src/dst.o
> build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/fortranobject.o
> -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -lgfortran -o
> build/lib.linux-x86_64-2.7/fftpack/_fftpack.so
>
> The error:
>
> scipy-0.13.3/scipy/fftpack/build/src.linux-x86_64-2.7/fortranobject.c:959:
> undefined reference to `PyCObject_AsVoidPtr'
> collect2: ld returned 1 exit status
>
>
> I have tried to put in -l and -L options to include the library paths.
>
> Any help on this is highly appreciated
>
> Should I include any other build parameters?
>

Do you have CFLAGS or LDFLAGS set? With distutils they override default
flags instead of append to them.

Ralf



> Thanks,
> Sid
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20140503/1e2bf31a/attachment.html>


More information about the SciPy-Dev mailing list