[SciPy-User] mkl_lapack32 ?

Nicolas Greneche nicolas.greneche@univ-paris13...
Tue Jul 17 07:16:35 CDT 2012


Hi,

I have some trouble to build scipy on my computer.

Here is my site.cfg (at top level of scipy directory) :

[mkl]
library_dirs = /opt/intel/composerxe-2011.0.084/mkl/lib/intel64
include_dirs = /opt/intel/composerxe-2011.0.084/mkl/include
mkl_libs = mkl_intel_lp64,mkl_intel_thread,mkl_core

cc_exe = 'icc -O2 -g -openmp -avx'

I run config / build / install :

python setup.py config --compiler=intelem --fcompiler=intelem build_clib 
--compiler=intelem --fcompiler=intelem build_ext --compiler=intelem 
--fcompiler=intelem install --prefix=/usr/local

icc: build/src.linux-x86_64-2.6/fortranobject.c
creating build/lib.linux-x86_64-2.6/scipy/lib/lapack
icc -m64 -fPIC -shared 
build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/lib/lapack/flapackmodule.o 
build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o 
-L/opt/intel/composerxe-2011.0.084/mkl/lib/intel64 -L/usr/lib64 
-Lbuild/temp.linux-x86_64-2.6 -lmkl_lapack32 -lmkl_lapack64 
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lpython2.6 -o 
build/lib.linux-x86_64-2.6/scipy/lib/lapack/flapack.so
ld: cannot find -lmkl_lapack32
ld: cannot find -lmkl_lapack32
error: Command "icc -m64 -fPIC -shared 
build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/lib/lapack/flapackmodule.o 
build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o 
-L/opt/intel/composerxe-2011.0.084/mkl/lib/intel64 -L/usr/lib64 
-Lbuild/temp.linux-x86_64-2.6 -lmkl_lapack32 -lmkl_lapack64 
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lpython2.6 -o 
build/lib.linux-x86_64-2.6/scipy/lib/lapack/flapack.so" failed with exit 
status 1

I don't understand why it attempts to link with mkl_lapack32 and 
mkl_lapack64 whereas it runs on a 64 bits system.

Anyone can help ?

Regards,

-- 
Nicolas Grenèche

Centre de Ressources Informatiques
Université Paris NORD / UP13
99, avenue Jean-Baptiste Clément
93430 Villetaneuse

Tel : 01 49 40 40 35
Fax : 01 48 22 81 50



More information about the SciPy-User mailing list