[SciPy-user] RE : Compiling numpy and scipy on AIX 5.3
David M. Cooke
cookedm at physics.mcmaster.ca
Wed Apr 4 08:59:32 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Langella Raphael wrote:
>
> IBM XL Fortran Enterprise Edition V10.1 for AIX
> Version: 10.01.0000.0003
>
> 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
AIX is a royal PITA when it comes to making shared libraries. Really,
it's awful. You need to make a file of imported symbols first, and pass
that to the linker command.
Fortunately, Python includes an ld_so_aix script to do this. Try the
current Numpy SVN; I've tried to make it use this.
- --
|>|\/|<
/------------------------------------------------------------------\
|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
iD8DBQFGE6E0+kNzddXW8YwRAuh+AJ9SQvYzHMYt0SZ/9eOeRcB8dAc0dACeP0vy
pu8mKUIU84mJUBQ4of8pZZQ=
=S0Le
-----END PGP SIGNATURE-----
More information about the SciPy-User
mailing list