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

Langella Raphael raphael.langella@steria.cnes...
Fri Apr 6 09:29:57 CDT 2007


> -----Message d'origine-----
> > OK, compilation works fine without any optimization. As soon
> > as I try to link with blas, lapack, atlas or essl, I get the 
> > following errors : compile options: '-Inumpy/core/src 
> > -Inumpy/core/include -I/usr/local/include/python2.5 -c'
> > cc_r: _configtest.c
> > cc_r _configtest.o -o _configtest
> > ld: 0711-317 ERROR: Undefined symbol: .exp
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain 
> > more information.
> > ld: 0711-317 ERROR: Undefined symbol: .exp
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain 
> > more information. failure.
> > removing: _configtest.c _configtest.o
> > 
> > /usr/local/lib/python2.5/config/ld_so_aix cc_r
> > -bI:/usr/local/lib/python2.5/config/python.exp 
> > build/temp.aix-5.3-2.5/numpy/core/blasdot/_dotblas.o 
> > -L/usr/lib -lblas -o build/lib.aix-5.3-2.5/numpy/core/_dotblas.so
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_cdotc_sub
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_zdotc_sub
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_sdot
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_ddot
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_caxpy
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_saxpy
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_zaxpy
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_daxpy
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_cdotu_sub
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_zdotu_sub
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_cgemv
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_sgemv
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_zgemv
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_dgemv
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_cgemm
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_zgemm
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_sgemm
> > ld: 0711-317 ERROR: Undefined symbol: .cblas_dgemm
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain 
> > more information. building 'numpy.lib._compiled_base' 
> > extension compiling C sources C compiler: cc_r -DNDEBUG -O
> > 
> > /usr/local/lib/python2.5/config/ld_so_aix cc_r
> > -bI:/usr/local/lib/python2.5/config/python.exp 
> > build/temp.aix-5.3-2.5/numpy/linalg/lapack_litemodule.o 
> > -L/usr/local/lib -lflapack -lfblas -o 
> > build/lib.aix-5.3-2.5/numpy/linalg/lapack_lite.so
> > ld: 0711-317 ERROR: Undefined symbol: .zungqr_
> > ld: 0711-317 ERROR: Undefined symbol: .zgeqrf_
> > ld: 0711-317 ERROR: Undefined symbol: .zpotrf_
> > ld: 0711-317 ERROR: Undefined symbol: .zgetrf_
> > ld: 0711-317 ERROR: Undefined symbol: .zgesdd_
> > ld: 0711-317 ERROR: Undefined symbol: .zgesv_
> > ld: 0711-317 ERROR: Undefined symbol: .zgelsd_
> > ld: 0711-317 ERROR: Undefined symbol: .zgeev_
> > ld: 0711-317 ERROR: Undefined symbol: .dorgqr_
> > ld: 0711-317 ERROR: Undefined symbol: .dgeqrf_
> > ld: 0711-317 ERROR: Undefined symbol: .dpotrf_
> > ld: 0711-317 ERROR: Undefined symbol: .dgetrf_
> > ld: 0711-317 ERROR: Undefined symbol: .dgesdd_
> > ld: 0711-317 ERROR: Undefined symbol: .dgesv_
> > ld: 0711-317 ERROR: Undefined symbol: .dgelsd_
> > ld: 0711-317 ERROR: Undefined symbol: .zheevd_
> > ld: 0711-317 ERROR: Undefined symbol: .dsyevd_
> > ld: 0711-317 ERROR: Undefined symbol: .dgeev_
> > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain 
> > more information.
> 
> The problem comes from my version of lapack. I tried another 
> one, which somebody else had already compiled and it works :) 
> But there's still the problem of scipy not finding my C++ 
> compiler, or invoking the wrong one. 

Oops, disregard the previous statement, I made a mistake setting the
LAPACK variable and it worked only because it used only internal lapack
functions (blas is included under /lib). So, I still have all these
undefined symbols when I try to compile numpy with any lapack librairy.
Note that I'm just reporting the problem, I'm not waiting or expecting a
solution. I'm already quite happy to have been able to compile a working
version of numpy (damn AIX).


More information about the SciPy-user mailing list