[Numpy-discussion] Trouble installing Numpy on AIX 5.2.

mfmorss at aep.com mfmorss at aep.com
Wed Feb 22 06:07:32 CST 2006


I built Python successfully on our AIX 5.2 server using "./configure
--without-cxx --disable-ipv6".  (This uses the native IBM C compiler,
invoking it as "cc_r".  We have no C++ compiler.)

But I have been unable to install Numpy-0.9.5 using the same compiler.
After "python setup.py install," the relevant section of the output was:

compile options: '-Ibuild/src/numpy/core/src -Inumpy/core/include
-Ibuild/src/numpy/core -Inumpy/core/src -Inumpy/core/include
-I/pydirectory/include/python2.4 -c'
cc_r: build/src/numpy/core/src/umathmodule.c
"build/src/numpy/core/src/umathmodule.c", line 2566.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2584.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2602.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2620.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2638.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2654.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2674.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2694.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2714.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2734.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 9307.32: 1506-280 (W)
Function argument assignment between types "long double*" and "double*" is
not allowed.
"build/src/numpy/core/src/umathmodule.c", line 2566.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2584.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2602.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2620.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2638.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2654.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2674.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2694.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2714.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 2734.25: 1506-045 (S)
Undeclared identifier FE_OVERFLOW.
"build/src/numpy/core/src/umathmodule.c", line 9307.32: 1506-280 (W)
Function argument assignment between types "long double*" and "double*" is
not allowed.
error: Command "cc_r -DNDEBUG -O -Ibuild/src/numpy/core/src
-Inumpy/core/include -Ibuild/src/numpy/core -Inumpy/core/src
-Inumpy/core/include -I/app/sandbox/s625662/installed/include/python2.4 -c
build/src/numpy/core/src/umathmodule.c -o build/temp.aix-5.2-2.4
/build/src/numpy/core/src/umathmodule.o" failed with exit status 1

A closely related question is, how can I modify the Numpy setup.py and/or
distutils files to enable me to control the options with which cc_r is
invoked?  I inspected these files, but not being very expert in Python, I
could not figure this out.

Mark F. Morss
Principal Analyst, Market Risk
American Electric Power





More information about the Numpy-discussion mailing list