[SciPy-user] Numpy/Scipy on AIX

Marek mwojc@p.lodz...
Fri Jul 27 16:17:12 CDT 2007


David Cournapeau <david <at> ar.media.kyoto-u.ac.jp> writes:

> 
> Marek Wojciechowski wrote:
> > Hi!
> > I trying to instal numpy and scipy on AIX 5.3. Unfortunately, running
> > numpy's setup.py finished with error:
> >
> > building 'numpy.core._dotblas' extension
> > compiling C sources
> > C compiler: cc_r -DNDEBUG -O
> >
> > creating build/temp.aix-5.3-2.5/numpy/core/blasdot
> > compile options: '-DNO_ATLAS_INFO=1 -Inumpy/core/blasdot
> > -Inumpy/core/include -Ibuild/src.aix-5.3-2.5/numpy/core -Inumpy/core/src
> > -Inumpy/core/include -I/home/Marek/apython/include/python2.5 -c'
> > cc_r: numpy/core/blasdot/_dotblas.c
> > xlf95 -bshared -F/tmp/tmpwQurYM_xlf.cfg
> > 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: .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/tmp/tmpwQurYM_xlf.cfg
> > 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" failed with exit status 8
> >
> > Is there any easy solution for this?
> Do you know which option is needed normally for compiling shared 
> libraries on AIX ? The problem seems to be a missing symbol, .main, 
> which I supposed is the main function, which is not supposed to be there 
> for extensions.
> 
> David
> 
Thanks for your response, but I skipped the problem downloading svn version of 
numpy (previously i tried to install numpy-1.0.2), and this compiles nicely. 
But now i run into troubles with scipy. Namely, I get tons of unresolved 
symbols from lapack, for example:

ld: 0711-317 ERROR: Undefined symbol: .sgemm_ 

Any workaround for this? I know there is linker option -brename:.sgemm_,.sgemm, 
which can solve it but this si not a nice solution.

Thanks in advance
Marek




More information about the SciPy-user mailing list