[Numpy-discussion] Building numpy 1.0.3-2 on Linux 2.6.8 i686 (Debian 3.1)

David Cournapeau david@ar.media.kyoto-u.ac...
Sat Jun 30 06:13:32 CDT 2007


Michael Hoffman wrote:
> Hi. I have been trying to build NumPy on a 32-bit Linux box using python 
> setup.py build. I received the following errors:
>
> """
> creating build/temp.linux-i686-2.5/numpy/linalg
> compile options: '-DATLAS_WITHOUT_LAPACK -DATLAS_INFO="\"3.6.0\"" 
> -I/usr/include -Inumpy/core/include 
> -Ibuild/src.linux-i686-2.5/numpy/core -I/nfs/acari/mh5/include/python2.5 
> -I/nfs/acari/mh5/include -I/software/python-2.5/include/python2.5 
> -Inumpy/core/src -Inumpy/core/include -c'
> gcc: numpy/linalg/lapack_litemodule.c
> g77 build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o 
> -L/usr/lib/sse2 -L/usr/lib -lf77blas -lcblas -latlas -llapack -lg2c-pic 
> -o build/lib.linux-i686-2.5/numpy/linalg/lapack_lite.so
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0x44): 
> In function `initlapack_lite':
> numpy/linalg/lapack_litemodule.c:827: undefined reference to 
> `Py_InitModule4'
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0x57):numpy/linalg/lapack_litemodule.c:831: 
> undefined reference to `PyModule_GetDict'
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0x73):numpy/linalg/lapack_litemodule.c:832: 
> undefined reference to `PyErr_NewException'
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0x8f):numpy/linalg/lapack_litemodule.c:833: 
> undefined reference to `PyDict_SetItemString'
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0xa1):numpy/linalg/lapack_litemodule.c:836: 
> undefined reference to `PyErr_Print'
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0xa7):numpy/linalg/lapack_litemodule.c:836: 
> undefined reference to `PyExc_ImportError'
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o(.text+0xbb):numpy/linalg/lapack_litemodule.c:836: 
> undefined reference to `PyErr_SetString'
> [...]
> /usr/lib/libfrtbegin.a(frtbegin.o)(.text+0x32): In function `main':
> : undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
> error: Command "g77 
> build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o 
> -L/usr/lib/sse2 -L/usr/lib -lf77blas -lcblas -latlas -llapack -lg2c-pic 
> -o build/lib.linux-i686-2.5/numpy/linalg/lapack_lite.so" failed with 
> exit status 1
> """
>
> After some Googling, I found a recommendation to unset CFLAGS and 
> LDFLAGS, but they are not set in the transcript above.
>
> Any suggestions?
Which distribution are you building on ?

David


More information about the Numpy-discussion mailing list