[Numpy-discussion] Problems compiling on Cygwin

Jose Gomez-Dans josegomez at gmx.net
Fri Feb 17 01:52:04 EST 2006


Hi!
Yesterday I posted on the scipy mailing list that I could not compile NumPy on
Cygwin. I would like to provide some more information on what the problems are,
as I would really like to be able to use it on Cygwin.

I got the 0.9.5 tarball, and uncompress it, and type python setup.py build. The
process starts, there is an indication that it finds BLAS and LAPACK (cygwin
versions). It stops when linking the umath.dll, complaining about missing
references. Here's an extract:
"gcc options: '-fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
compile options: '-Ibuild/src/numpy/core/src -Inumpy/core/include
-Ibuild/src/numpy/core -Inumpy/core/src -Inumpy/core/include
-I/usr/include/python2.4 -c'
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o
-L/usr/lib/python2.4/config -lpython2.4 -o
build/lib.cygwin-1.5.19-i686-2.4/numpy/core/umath.dll
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x2f5e):
referencia a `_feraiseexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x2fe3):
referencia a `_feraiseexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x3081):
referencia a `_feraiseexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x3139):
referencia a `_feraiseexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x320c):
referencia a `_feraiseexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x129ef):
referencia a `_fetestexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x12a1d):
referencia a `_feclearexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x12b1b):
referencia a `_fetestexcept' sin definir
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o:
umathmodule.c:(.text+0x12b27):
referencia a `_feclearexcept' sin definir
collect2: ld devolvi'o el estado de salida 1
error: Command "gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.19-i686-2.4/build/src/numpy/core/src/umathmodule.o
-L/usr/lib/python2.4/config -lpython2.4 -o
build/lib.cygwin-1.5.19-i686-2.4/numpy/core/umath.dll" failed with exit 
status 1"

(yes, I have the Spanish locale set :D). The functions needed are responsible
for setting exceptions, and presumably, only need a simple addition to the
library linking path. Is this correct? does anyone know how to deal with this?

Many thanks!
Jose





More information about the NumPy-Discussion mailing list