[SciPy-dev] FTBFS on Debian

David Cournapeau david@ar.media.kyoto-u.ac...
Mon Apr 14 06:04:06 CDT 2008


Ondrej Certik wrote:
> On Mon, Apr 14, 2008 at 11:58 AM, Ondrej Certik <ondrej@certik.cz> wrote:
>   
>> Hi,
>>
>>  for some reason, the scipy package 0.6.0 stopped building on Debian,
>>  both i386 and amd64:
>>
>>  build/temp.linux-x86_64-2.4/build/src.linux-x86_64-2.4/fortranobject.o:
>>  In function `PyFortranObject_New':
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:41:
>>  undefined reference to `_PyObject_New'
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:42:
>>  undefined reference to `PyDict_New'
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:66:
>>  undefined reference to `PyDict_SetItemString'
>>  build/temp.linux-x86_64-2.4/build/src.linux-x86_64-2.4/fortranobject.o:
>>  In function `F2PyDict_SetItemString':
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:21:
>>  undefined reference to `PyErr_Occurred'
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:22:
>>  undefined reference to `PyErr_Print'
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:23:
>>  undefined reference to `PyErr_Clear'
>>  build/temp.linux-x86_64-2.4/build/src.linux-x86_64-2.4/fortranobject.o:
>>  In function `fortran_dealloc':
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:91:
>>  undefined reference to `PyObject_Free'
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:91:
>>  undefined reference to `PyObject_Free'
>>  build/temp.linux-x86_64-2.4/build/src.linux-x86_64-2.4/fortranobject.o:
>>  In function `F2PyDict_SetItemString':
>>  /tmp/buildd/python-scipy-0.6.0/build/src.linux-x86_64-2.4/fortranobject.c:27:
>>  undefined reference to `PyDict_SetItemString'
>>  /usr/lib/libgfortranbegin.a(fmain.o): In function `main':
>>  (.text+0x28): undefined reference to `MAIN__'
>>  collect2: ld returned 1 exit status
>>  error: Command "/usr/bin/gfortran -Wall
>>  build/temp.linux-x86_64-2.4/build/src.linux-x86_64-2.4/scipy/fftpack/_fftpackmodule.o
>>  build/temp.linux-x86_64-2.4/scipy/fftpack/src/zfft.o
>>  build/temp.linux-x86_64-2.4/scipy/fftpack/src/drfft.o
>>  build/temp.linux-x86_64-2.4/scipy/fftpack/src/zrfft.o
>>  build/temp.linux-x86_64-2.4/scipy/fftpack/src/zfftnd.o
>>  build/temp.linux-x86_64-2.4/build/src.linux-x86_64-2.4/fortranobject.o
>>  -L/usr/lib -Lbuild/temp.linux-x86_64-2.4 -ldfftpack -lfftw3 -lgfortran
>>  -o build/lib.linux-x86_64-2.4/scipy/fftpack/_fftpack.so" failed with
>>     

For what it worth, the problem is right there: gfortran command builds a 
program, not a library (the -shared is not there), which of course 
cannot work for a python extension. The problem is to understand why the 
-shared flag disappear from the link command.

David


More information about the Scipy-dev mailing list