[Numpy-discussion] Wrong lapack version detection (32/64bits)

Xavier Gnata gnata at obs.univ-lyon1.fr
Thu Jul 19 09:20:20 EDT 2007


Xavier Gnata wrote:
> Hi,
>
> I'm trying to update numpy by compiling the up to date svn:
>
> I get this error :
> gcc: numpy/linalg/lapack_litemodule.c
> gcc -pthread -shared 
> build/temp.linux-i686-2.4/numpy/linalg/lapack_litemodule.o 
> -lmkl_lapack32 -lmkl_lapack64 -lmkl -lvml -lguide -lpthread -o 
> build/lib.linux-i686-2.4/numpy/linalg/lapack_lite.so
> /usr/bin/ld: cannot find -lmkl_lapack64
> collect2: ld returned 1 exit status
> /usr/bin/ld: cannot find -lmkl_lapack64
> collect2: ld returned 1 exit status
> error: Command "gcc -pthread -shared 
> build/temp.linux-i686-2.4/numpy/linalg/lapack_litemodule.o 
> -lmkl_lapack32 -lmkl_lapack64 -lmkl -lvml -lguide -lpthread -o 
> build/lib.linux-i686-2.4/numpy/linalg/lapack_lite.so" failed with exit 
> status 1
>
> There must be something wrong in the distutils/makefile because I'm on a 
> debian sid *i386* so why should I link against mkl_lapack64 ??
> Of course, I do not have lapack64 installed on this i386 machine.
> I have try to simply fix that in the config file of numpy replacing 
> lapack64 by lapack32 everywhere but it fails (and it is not an acceptable fix).
>
> Can anyone reproduce that??
>
> Xavier
>
>
>   

Trying to modify  /numpy/distutils/system_info.py this way (only for 
test purpose...):

#           lapack_libs = 
self.get_libs('lapack_libs',['mkl_lapack32','mkl_lapack64'])
            lapack_libs = self.get_libs('lapack_libs',['mkl_lapack32'])

I'm able to compile numpy but import numpy fails:

ImportError: 
/usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: undefined 
symbol: zgesdd_

Looks like the procedure to detect the lapack version is fully buggy (or 
maybe the lapack debian pacakges??)

It used to work ;)

Xavier


-- 
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gnata at obs.univ-lyon1.fr
############################################ 




More information about the NumPy-Discussion mailing list