Okay, I manually changed defined(linux) to defined(__GLIBC__). I still get the same error with "_capi.c". It keeps trying to #include <fenv.h>. Any other things I can change to try to prevent the problem?
Thanks, David -Dave Error output: creating build/temp.linux-ppc-2.5/numpy/lib creating build/temp.linux-ppc-2.5/numpy/lib/src compile options: '-Inumpy/core/include -Ibuild/src.linux-ppc-2.5/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/local/include/python2.5 -c' gcc: numpy/lib/src/_compiled_base.c gcc -pthread -shared build/temp.linux-ppc-2.5/numpy/lib/src/_compiled_base.o -o build/lib.linux-ppc-2.5/numpy/lib/_compiled_base.so building 'numpy.numarray._capi' extension compiling C sources C compiler: gcc -pthread -fno-strict-aliasing -mhard-float -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC creating build/temp.linux-ppc-2.5/numpy/numarray compile options: '-Inumpy/core/include -Ibuild/src.linux-ppc-2.5/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/local/include/python2.5 -c' gcc: numpy/numarray/_capi.c numpy/numarray/_capi.c:229:18: fenv.h: No such file or directory numpy/numarray/_capi.c: In function `int_overflow_error': numpy/numarray/_capi.c:234: warning: implicit declaration of function `feraiseexcept' numpy/numarray/_capi.c:234: error: `FE_OVERFLOW' undeclared (first use in this function) numpy/numarray/_capi.c:234: error: (Each undeclared identifier is reported only once numpy/numarray/_capi.c:234: error: for each function it appears in.) numpy/numarray/_capi.c: In function `NA_checkFPErrors': numpy/numarray/_capi.c:2951: warning: implicit declaration of function `fetestexcept' numpy/numarray/_capi.c:2952: error: `FE_DIVBYZERO' undeclared (first use in this function) numpy/numarray/_capi.c:2952: error: `FE_OVERFLOW' undeclared (first use in this function) numpy/numarray/_capi.c:2952: error: `FE_UNDERFLOW' undeclared (first use in this function) numpy/numarray/_capi.c:2952: error: `FE_INVALID' undeclared (first use in this function) numpy/numarray/_capi.c:2958: warning: implicit declaration of function `feclearexcept' numpy/numarray/_capi.c:229:18: fenv.h: No such file or directory numpy/numarray/_capi.c: In function `int_overflow_error': numpy/numarray/_capi.c:234: warning: implicit declaration of function `feraiseexcept' numpy/numarray/_capi.c:234: error: `FE_OVERFLOW' undeclared (first use in this function) numpy/numarray/_capi.c:234: error: (Each undeclared identifier is reported only once numpy/numarray/_capi.c:234: error: for each function it appears in.) numpy/numarray/_capi.c: In function `NA_checkFPErrors': numpy/numarray/_capi.c:2951: warning: implicit declaration of function `fetestexcept' numpy/numarray/_capi.c:2952: error: `FE_DIVBYZERO' undeclared (first use in this function) numpy/numarray/_capi.c:2952: error: `FE_OVERFLOW' undeclared (first use in this function) numpy/numarray/_capi.c:2952: error: `FE_UNDERFLOW' undeclared (first use in this function) numpy/numarray/_capi.c:2952: error: `FE_INVALID' undeclared (first use in this function) numpy/numarray/_capi.c:2958: warning: implicit declaration of function `feclearexcept' error: Command "gcc -pthread -fno-strict-aliasing -mhard-float -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -Inumpy/core/include -Ibuild/src.linux-ppc-2.5/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/local/include/python2.5 -c numpy/numarray/_capi.c -o build/temp.linux-ppc-2.5/numpy/numarray/_capi. David M. Cooke wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David Shepherd wrote: >> The second part of the patch is failing: >> >> # patch -p0 < ../uclibc-fenv.patch >> patching file numpy/core/include/numpy/ufuncobject.h >> patching file numpy/numarray/_capi.c >> Hunk #1 FAILED at 224. >> Hunk #2 FAILED at 2937. >> 2 out of 2 hunks FAILED -- saving rejects to file >> numpy/numarray/_capi.c.rej >> # > > Ahh, you're not using a current subversion checkout :-) For your > purposes, you could just change the #if defined(linux) to #if > defined(__GLIBC__) (or #if 0 if that strikes your fancy). > > - -- > |>|\/|< > /------------------------------------------------------------------\ > |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ > |[EMAIL PROTECTED] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGFpvoN9ixZKFWjRQRAuAeAJ4xaAxUUz828DeMRUd5vYPl0K6TfACgsSq7 > 2lvovjwFjEDECCJHKeQwhTQ= > =OGOK > -----END PGP SIGNATURE----- > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://projects.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion