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

Langella Raphael raphael.langella@steria.cnes...
Fri Apr 6 10:04:32 CDT 2007


I just compressed the attachment...

> -----Message d'origine-----
> De : Langella Raphael 
> Envoyé : vendredi 6 avril 2007 16:59
> À : 'SciPy Users List'
> Objet : [SciPy-user] Compiling numpy and scipy on AIX 5.3
> 
> 
> > -----Message d'origine-----
> > De : scipy-user-bounces@scipy.org
> > [mailto:scipy-user-bounces@scipy.org] De la part de David M. Cooke
> > Envoyé : vendredi 6 avril 2007 13:00
> > À : SciPy Users List
> > Objet : Re: [SciPy-user] Compiling numpy and scipy on AIX 5.3
> > 
> > 
> > -----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
> > > xlc++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).
> 
> It worked with 0.5.2
> But I have a lot of errors when testing : failures=20, 
> errors=28 I joined the full compile and test log.
> 
> I also tried the svn but the sparse submodule also requires 
> c++, so I commented it out. The compile failed with :
> 
> xlf:f77: build/src.aix-5.3-2.5/Lib/stats/mvn-f2pywrappers.f
> ** f2pyinitdkblck   === End of Compilation 1 ===
> 1501-510  Compilation successful for file mvn-f2pywrappers.f. 
> /usr/local/lib/python2.5/config/ld_so_aix xlf95 
> -bI:/usr/local/lib/python2.5/config/python.exp -bshared 
> -F/ptmp/tmpmB5fHP_xlf.cfg 
> build/temp.aix-5.3-2.5/build/src.aix-5.3-2.5/Lib/stats/mvnmodu
> le.o 
> build/temp.aix-5.3-2.5/build/src.aix-5.3-2.5/fortranobject.o 
> build/temp.aix-5.3-2.5/Lib/stats/mvndst.o 
> build/temp.aix-5.3-2.5/build/src.aix-5.3-2.5/Lib/stats/mvn-f2p
> ywrappers.o -Lbuild/temp.aix-5.3-2.5 -o 
> build/lib.aix-5.3-2.5/scipy/stats/mvn.so
> xlf95: 1501-262 One or more input object files contain IPA 
> information: specify -qipa for additional optimization. 
> building 'scipy.ndimage._nd_image' extension compiling C 
> sources C compiler: cc_r -DNDEBUG -O
> 
> creating build/temp.aix-5.3-2.5/Lib/ndimage
> creating build/temp.aix-5.3-2.5/Lib/ndimage/src
> compile options: '-ILib/ndimage/src 
> -I/usr/local/lib/python2.5/site-packages/numpy/core/include 
> -I/usr/local/lib/python2.5/site-packages/numpy/core/include 
> -I/usr/local/include/python2.5 -c'
> cc_r: Lib/ndimage/src/ni_interpolation.c
> "Lib/ndimage/src/ni_interpolation.c", line 144.9: 1506-046 
> (S) Syntax error. "Lib/ndimage/src/ni_interpolation.c", line 
> 145.22: 1506-1118 (W) Character constant 'in' has more than 1 
> character. "Lib/ndimage/src/ni_interpolation.c", line 144.12: 
> 1506-045 (S) Undeclared identifier Integer. 
> "Lib/ndimage/src/ni_interpolation.c", line 144.9: 1506-046 
> (S) Syntax error. "Lib/ndimage/src/ni_interpolation.c", line 
> 145.22: 1506-1118 (W) Character constant 'in' has more than 1 
> character. "Lib/ndimage/src/ni_interpolation.c", line 144.12: 
> 1506-045 (S) Undeclared identifier Integer.
> error: Command "cc_r -DNDEBUG -O -ILib/ndimage/src 
> -I/usr/local/lib/python2.5/site-packages/numpy/core/include 
> -I/usr/local/lib/python2.5/site-packages/numpy/core/include 
> -I/usr/local/include/python2.5 -c 
> Lib/ndimage/src/ni_interpolation.c -o 
> build/temp.aix-5.3-2.5/Lib/ndimage/src/ni_interpolation.o" 
> failed with exit status 1
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scipy-AIX-build&test.zip
Type: application/x-zip-compressed
Size: 43224 bytes
Desc: scipy-AIX-build&test.zip
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20070406/671a0a4a/attachment-0001.bin 


More information about the SciPy-user mailing list