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

mfmorss at aep.com mfmorss at aep.com
Wed Feb 22 08:16:15 EST 2006


This problem was solved by adding "#include <fenv.h>" to ...numpy-0.9.5
/numpy/core/src/umathmodule.c.src

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


                                                                           
             mfmorss at aep.com                                               
             Sent by:                                                      
             numpy-discussion-                                          To 
             admin at lists.sourc         numpy-discussion                    
             eforge.net                <numpy-discussion at lists.sourceforge 
                                       .net>                               
                                                                        cc 
             02/22/2006 09:06                                              
             AM                                                    Subject 
                                       [Numpy-discussion] Trouble          
                                       installing Numpy on AIX 5.2.        
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




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



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion






More information about the NumPy-Discussion mailing list