[SciPy-user] numpy 1.0b5 and scupy 0.5.1 build problems

Tom Denniston tom.denniston at alum.dartmouth.org
Tue Sep 19 10:04:29 CDT 2006


The web pages say they are but I have had a number of problems.  I am using
gcc version 3.2.3 and g77.

I had to patch numpy distutils fcompiler/gnu.py file with the following
patch to get past an undefined symbol error:

changing the line :
<             if cpu.has_sse2(): opt.append('-msse2')
to:
>             #if cpu.has_sse2(): opt.append('-msse2')

Then once I did that I am getting Fortran compile errors.  Does anyone know
what causes this?  I have googled a lot and also look over the build
instructions.  Am I doing something stupid or using the wrong compiler or
something obvious like that?


build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xb65):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:507:
undefined reference to `_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xb9e):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:511:
undefined reference to `_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xc09):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:514:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xc94):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:517:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xcd0):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:524:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xcf8):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:534:
undefined reference to `Py_BuildValue'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xd36):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:501:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xd56):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:502:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.o(.text+0xd92):
In function `f2py_rout__fftpack_zfftnd':
build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:593: undefined
reference to `_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xe0e):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:613:
undefined reference to `PyArg_ParseTupleAndKeywords'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xe98):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:638:
undefined reference to `_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xf1b):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:653:
undefined reference to `_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xf51):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:668:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xfe6):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:674:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0xfeb):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:676:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1013):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:686:
undefined reference to `Py_BuildValue'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1149):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:662:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1171):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:663:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1178):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:648:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1198):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:649:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x11b0):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:632:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.o(.text+0x1214):
In function `f2py_rout__fftpack_destroy_zfft_cache':
build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:741: undefined
reference to `PyArg_ParseTupleAndKeywords'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x122b):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:752:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1253):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:762:
undefined reference to `Py_BuildValue'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.o(.text+0x12a4):
In function `f2py_rout__fftpack_destroy_zfftnd_cache':
build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:802: undefined
reference to `PyArg_ParseTupleAndKeywords'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x12bb):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:813:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x12e3):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:823:
undefined reference to `Py_BuildValue'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.o(.text+0x1334):
In function `f2py_rout__fftpack_destroy_drfft_cache':
build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:863: undefined
reference to `PyArg_ParseTupleAndKeywords'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x134b):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:874:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/Lib/fftpack/_fftpackmodule.o(.text+0x1373):build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodule.c:884:
undefined reference to `Py_BuildValue'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x2d):
In function `F2PyDict_SetItemString':
build/src.linux-i686-2.4/fortranobject.c:26: undefined reference to
`PyDict_SetItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x57):build/src.linux-i686-2.4/fortranobject.c:20:
undefined reference to `PyErr_Occurred'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x67):build/src.linux-i686-2.4/fortranobject.c:21:
undefined reference to `PyErr_Print'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x6c):build/src.linux-i686-2.4/fortranobject.c:22:
undefined reference to `PyErr_Clear'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0xb1):
In function `PyFortranObject_New':
build/src.linux-i686-2.4/fortranobject.c:40: undefined reference to
`_PyObject_New'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0xc2):build/src.linux-i686-2.4/fortranobject.c:41:
undefined reference to `PyDict_New'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1d5):build/src.linux-i686-2.4/fortranobject.c:65:
undefined reference to `PyDict_SetItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x301):
In function `PyFortranObject_NewAsAttr':
build/src.linux-i686-2.4/fortranobject.c:77: undefined reference to
`_PyObject_New'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x30e):build/src.linux-i686-2.4/fortranobject.c:79:
undefined reference to `PyDict_New'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x38c):
In function `array_from_pyobj':
build/src.linux-i686-2.4/fortranobject.c:526: undefined reference to
`_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x3a1):build/src.linux-i686-2.4/fortranobject.c:526:
undefined reference to `_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x3c8):build/src.linux-i686-2.4/fortranobject.c:552:
undefined reference to `PyType_IsSubtype'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x4da):build/src.linux-i686-2.4/fortranobject.c:608:
undefined reference to `PyExc_ValueError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x4e4):build/src.linux-i686-2.4/fortranobject.c:608:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x92d):build/src.linux-i686-2.4/fortranobject.c:643:
undefined reference to `PyObject_Type'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x935):build/src.linux-i686-2.4/fortranobject.c:643:
undefined reference to `PyObject_Str'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x93d):build/src.linux-i686-2.4/fortranobject.c:643:
undefined reference to `PyString_AsString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x959):build/src.linux-i686-2.4/fortranobject.c:647:
undefined reference to `PyExc_TypeError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x110e):
In function `fortran_dealloc':
build/src.linux-i686-2.4/fortranobject.c:90: undefined reference to
`PyObject_Free'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x1273):
In function `fortran_getattr':
build/src.linux-i686-2.4/fortranobject.c:186: undefined reference to
`_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1366):build/src.linux-i686-2.4/fortranobject.c:208:
undefined reference to `Py_FindMethod'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1384):build/src.linux-i686-2.4/fortranobject.c:203:
undefined reference to `PyCObject_FromVoidPtr'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x139f):build/src.linux-i686-2.4/fortranobject.c:204:
undefined reference to `PyDict_SetItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x13c1):build/src.linux-i686-2.4/fortranobject.c:195:
undefined reference to `PyString_FromString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1409):build/src.linux-i686-2.4/fortranobject.c:197:
undefined reference to `PyString_ConcatAndDel'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x143a):build/src.linux-i686-2.4/fortranobject.c:198:
undefined reference to `PyDict_SetItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1468):build/src.linux-i686-2.4/fortranobject.c:160:
undefined reference to `PyDict_GetItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x151d):
In function `fortran_setattr':
build/src.linux-i686-2.4/fortranobject.c:225: undefined reference to
`_Py_NoneStruct'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x183f):build/src.linux-i686-2.4/fortranobject.c:218:
undefined reference to `PyExc_AttributeError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1853):build/src.linux-i686-2.4/fortranobject.c:218:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1887):build/src.linux-i686-2.4/fortranobject.c:271:
undefined reference to `PyDict_SetItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x189d):build/src.linux-i686-2.4/fortranobject.c:265:
undefined reference to `PyDict_DelItemString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x18b0):build/src.linux-i686-2.4/fortranobject.c:267:
undefined reference to `PyExc_AttributeError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x18c4):build/src.linux-i686-2.4/fortranobject.c:267:
undefined reference to `PyErr_SetString'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x18d1):build/src.linux-i686-2.4/fortranobject.c:260:
undefined reference to `PyDict_New'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x191e):
In function `fortran_call':
build/src.linux-i686-2.4/fortranobject.c:292: undefined reference to
`PyExc_TypeError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1932):build/src.linux-i686-2.4/fortranobject.c:292:
undefined reference to `PyErr_Format'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4
/fortranobject.o(.text+0x1982):build/src.linux-i686-2.4/fortranobject.c:282:
undefined reference to `PyExc_RuntimeError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x1bb7):
In function `fortran_doc':
build/src.linux-i686-2.4/fortranobject.c:141: undefined reference to
`PyString_FromString'
../gcc/3.2.3/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../libfrtbegin.a(
frtbegin.o)(.text+0x32): In function `main':
: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20060919/bf14fcca/attachment-0001.html 


More information about the SciPy-user mailing list