[Numpy-discussion] Cygwin compile: fatal error: fenv/fenv.c

Matt Miller mattm184@gmail....
Wed Feb 29 15:41:43 CST 2012


That fixed changed my error message to this:

numpy/core/src/private/lowlevel_strided_loops.h:404:1: warning:
‘PyArray_PrepareThreeRawArrayIter’ declared ‘static’ but never defined
numpy/core/src/private/lowlevel_strided_loops.h:430:1: warning:
‘PyArray_PrepareFourRawArrayIter’ declared ‘static’ but never defined
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.7.11-i686-2.6/numpy/core/src/umath/umathmodule_onefile.o
-L/usr/lib/python2.6/config -Lbuild/temp.cygwin-1.7.11-i686-2.6 -lnpymath
-lpython2.6 -o build/lib.cygwin-1.7.11-i686-2.6/numpy/core/umath.dll
build/temp.cygwin-1.7.11-i686-2.6/libnpymath.a(ieee754.o):ieee754.c:(.rdata+0x0):
multiple definition of `_npy__fe_dfl_env'
build/temp.cygwin-1.7.11-i686-2.6/numpy/core/src/umath/umathmodule_onefile.o:umathmodule_onefile.c:(.rdata+0x13158):
first defined here
collect2: ld returned 1 exit status
build/temp.cygwin-1.7.11-i686-2.6/libnpymath.a(ieee754.o):ieee754.c:(.rdata+0x0):
multiple definition of `_npy__fe_dfl_env'
build/temp.cygwin-1.7.11-i686-2.6/numpy/core/src/umath/umathmodule_onefile.o:umathmodule_onefile.c:(.rdata+0x13158):
first defined here
collect2: ld returned 1 exit status
error: Command "gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.7.11-i686-2.6/numpy/core/src/umath/umathmodule_onefile.o
-L/usr/lib/python2.6/config -Lbuild/temp.cygwin-1.7.11-i686-2.6 -lnpymath
-lpython2.6 -o build/lib.cygwin-1.7.11-i686-2.6/numpy/core/umath.dll"
failed with exit status 1


Thanks for the quick reply!


>
> > Hi all,
> >
> > I am getting the following error when running `python setup.py install`
> > for Numpy in Cygwin. This error happens on the latest as well as
> > the maintenance branched for 1.5 and 1.6.
> >
>
> This should fix it: http://projects.scipy.org/numpy/ticket/1944.
>
> Can you confirm that that works? Then I'll make the change in master.
>
> Ralf
>
>
> > ...
> > creating build/temp.cygwin-1.7.11-i686-2.6
> > creating build/temp.cygwin-1.7.11-i686-2.6/build
> > creating
> build/temp.cygwin-1.7.11-i686-2.6/build/src.cygwin-1.7.11-i686-2.6
> > creating
> > build/temp.cygwin-1.7.11-i686-2.6/build/src.cygwin-1.7.11-i686-2.6/numpy
> > creating
> >
> build/temp.cygwin-1.7.11-i686-2.6/build/src.cygwin-1.7.11-i686-2.6/numpy/core
> > creating
> >
> build/temp.cygwin-1.7.11-i686-2.6/build/src.cygwin-1.7.11-i686-2.6/numpy/core/src
> > creating
> >
> build/temp.cygwin-1.7.11-i686-2.6/build/src.cygwin-1.7.11-i686-2.6/numpy/core/src/npymath
> > creating build/temp.cygwin-1.7.11-i686-2.6/numpy
> > creating build/temp.cygwin-1.7.11-i686-2.6/numpy/core
> > creating build/temp.cygwin-1.7.11-i686-2.6/numpy/core/src
> > creating build/temp.cygwin-1.7.11-i686-2.6/numpy/core/src/npymath
> > compile options: '-Inumpy/core/include
> > -Ibuild/src.cygwin-1.7.11-i686-2.6/numpy/core/include/numpy
> > -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
> > -Inumpy/core/src/npymath -Inumpy/core/src/multiarray
> -Inumpy/core/src/umath
> > -Inumpy/core/src/npysort -Inumpy/core/include -I/usr/include/python2.6
> > -Ibuild/src.cygwin-1.7.11-i686-2.6/numpy/core/src/multiarray
> > -Ibuild/src.cygwin-1.7.11-i686-2.6/numpy/core/src/umath -c'
> > gcc: build/src.cygwin-1.7.11-i686-2.6/numpy/core/src/npymath/npy_math.c
> > gcc: build/src.cygwin-1.7.11-i686-2.6/numpy/core/src/npymath/ieee754.c
> > numpy/core/src/npymath/ieee754.c.src:590:25: fatal error: fenv/fenv.c: No
> > such file or directory
> > compilation terminated.
> > numpy/core/src/npymath/ieee754.c.src:590:25: fatal error: fenv/fenv.c: No
> > such file or directory
> > compilation terminated.
> > error: Command "gcc -fno-strict-aliasing -g -O2 -pipe -DNDEBUG -g -fwrapv
> > -O3 -Wall -Wstrict-prototypes -Inumpy/core/include
> > -Ibuild/src.cygwin-1.7.11-i686-2.6/numpy/core/include/numpy
> > -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
> > -Inumpy/core/src/npymath -Inumpy/core/src/multiarray
> -Inumpy/core/src/umath
> > -Inumpy/core/src/npysort -Inumpy/core/include -I/usr/include/python2.6
> > -Ibuild/src.cygwin-1.7.11-i686-2.6/numpy/core/src/multiarray
> > -Ibuild/src.cygwin-1.7.11-i686-2.6/numpy/core/src/umath -c
> > build/src.cygwin-1.7.11-i686-2.6/numpy/core/src/npymath/ieee754.c -o
> >
> build/temp.cygwin-1.7.11-i686-2.6/build/src.cygwin-1.7.11-i686-2.6/numpy/core/src/npymath/ieee754.o"
> > failed with exit status 1
> >
> >
> > Thanks
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120229/ef385a53/attachment.html 


More information about the NumPy-Discussion mailing list