[SciPy-user] Compiling numpy and scipy on AIX 5.3

David M. Cooke cookedm at physics.mcmaster.ca
Fri Apr 6 06:59:39 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Langella Raphael wrote:
> Something akward is going on :
> 
> I typed : 
> export CXX="xlc++_r"
> 
> And got :
> 
> compiling C++ sources
> C compiler: xlc++_r -DNDEBUG -O
> 
> creating build/temp.aix-5.3-2.5/Lib/cluster
> creating build/temp.aix-5.3-2.5/Lib/cluster/src
> compile options: '-I/usr/local/lib/python2.5/site-packages/numpy/core/include -I/usr/local/include/python2.5 -c'
> xlc++_r: Lib/cluster/src/vq_wrap.cppC+
> "Lib/cluster/src/vq_wrap.cpp", line 582.1: 1540-1101 (W) A return value of type "int" is expected.
> "Lib/cluster/src/vq_wrap.cpp", line 590.1: 1540-1101 (W) A return value of type "int" is expected.
> xlc++_r cc_r -bI:/usr/local/lib/python2.5/config/python.exp build/temp.aix-5.3-2.5/Lib/cluster/src/vq_wrap.o -Lbuild/temp.aix-5.3-2.5 -o build/lib.aix-5.3-2.5/scipy/cluster/_vq.so
> xlc++_r: 1501-228 input file cc_r not found
> xlc++_r: 1501-228 input file cc_r not found
> error: Command "xlc++_r cc_r -bI:/usr/local/lib/python2.5/config/python.exp build/temp.aix-5.3-2.5/Lib/cluster/src/vq_wrap.o -Lbuild/temp.aix-5.3-2.5 -o build/lib.aix-5.3-2.5/scipy/cluster/_vq.so" failed with exit status 252
> 
> What the heck is happening here? BTW, I tried with 0.5.2 and SVN

The command to compile an extension is stored as a list; C++ extensions
are compiled by replacing the first item with the name of the C++
compiler. Obviously, that doesn't work here, as the first item isn't the
compiler. I'll take a look.

For now, if you aren't going to use scipy.cluster, you can disable it by
editing Lib/setup.py and commenting out the appropiate line. It's the
only subpackage compiled by default that requires C++ at install time
(the others are in the sandbox, and weave).

> David Cooke wrote:
>>> Langella Raphael wrote:
>>> But there's still the problem of scipy not finding my C++ compiler, or 
>>> invoking the wrong one.
>> That's probably a problem with how python was compiled. Set 
>> the environment variable CXX to your C++ compiler, and try again.

- --
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGFigaN9ixZKFWjRQRAm6sAKCzPuDEuqng3GW7iwo0Qu6XWUqhHACgnp3k
3EoD7zRZoywCKAvB5PYFQuw=
=3QDS
-----END PGP SIGNATURE-----



More information about the SciPy-User mailing list