[Numpy-discussion] Unable to build numpy in cygwin

Crider, Joseph A joseph.a.crider at boeing.com
Tue Jan 23 13:47:51 CST 2007


I have been attempting to build recent versions of numpy and scipy in
Cygwin on Windows XP for use in Cygwin, but I haven't succeeded with any
version of numpy that I've tried newer than 0.9.8.  It seems to be
failing in building numarray.  Here is the numarray portion of the
output:

creating build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray
compile options: '-Inumpy/core/include
-Ibuild/src.cygwin-1.5.23-i686-2.4/numpy/core -Inumpy/core/src
-Inumpy/core/include -I/usr/include/python2.4 -c'
gcc: numpy/numarray/_capi.c
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o
-L/usr/lib/python2.4/config -lpython2.4 -o
build/lib.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.dll
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o: In function
`NA_checkFPErrors':
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2947:
undefined reference to `_fetestexcept'
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2954:
undefined reference to `_feclearexcept'
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o: In function
`NA_clearFPErrors':
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2947:
undefined reference to `_fetestexcept'
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2954:
undefined reference to `_feclearexcept'
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o: In function
`NA_checkAndReportFPErrors':
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2947:
undefined reference to `_fetestexcept'
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2954:
undefined reference to `_feclearexcept'
collect2: ld returned 1 exit status
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o: In function
`NA_checkFPErrors':
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2947:
undefined reference to `_fetestexcept'
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2954:
undefined reference to `_feclearexcept'
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o: In function
`NA_clearFPErrors':
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2947:
undefined reference to `_fetestexcept'
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2954:
undefined reference to `_feclearexcept'
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o: In function
`NA_checkAndReportFPErrors':
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2947:
undefined reference to `_fetestexcept'
/cygdrive/c/Temp/Python/numpy-1.0.1/numpy/numarray/_capi.c:2954:
undefined reference to `_feclearexcept'
collect2: ld returned 1 exit status
error: Command "gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.o
-L/usr/lib/python2.4/config -lpython2.4 -o
build/lib.cygwin-1.5.23-i686-2.4/numpy/numarray/_capi.dll" failed with
exit status 1

Any help would be appreciated.  Thanks.

J. Allen Crider
256-461-2699



More information about the Numpy-discussion mailing list