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

Langella Raphael raphael.langella@steria.cnes...
Tue Apr 3 10:58:41 CDT 2007


Using information from this post :
http://thread.gmane.org/gmane.comp.python.scientific.user/6237/focus=628
6, I noticed my compiler wasn't properly detected.
When I just type xlf, it brings the man page, without any version
information. I have to type xlf -qversion and it prints :

IBM XL Fortran Enterprise Edition V10.1 for AIX
Version: 10.01.0000.0003

I made the following changes in ibm.py so the compiler is properly
detected :
Line 11 :
    version_pattern =  r'IBM XL Fortran (Enterprise Edition
|)V(?P<version>[^\s*]*)'
line 14 :
	'version_cmd'  : ["xlf -qversion"],
line 25 :
	xlf_dir = '/etc'
line 54 :
	xlf_cfg = '/etc/xlf.cfg' % version

Now numpy detects the compiler. Then, I set BLAS and LAPACK
environnement variables, and I get this when compiling numpy :
xlf95 -bshared -F/ptmp/tmp4WLhqo_xlf.cfg
build/temp.aix-5.3-2.5/numpy/core/blasdot/_dotblas.o -L/usr/local/lib
-lfblas -o build/lib.aix-5.3-2.5/numpy/core/_dotblas.so
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
error: Command "xlf95 -bshared -F/ptmp/tmp4WLhqo_xlf.cfg
build/temp.aix-5.3-2.5/numpy/core/blasdot/_dotblas.o -L/usr/local/lib
-lfblas -o build/lib.aix-5.3-2.5/numpy/core/_dotblas.so" failed with
exit status 8

What's happening there?


More information about the SciPy-user mailing list