[Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_
David Cournapeau
david@ar.media.kyoto-u.ac...
Tue Sep 16 06:22:37 CDT 2008
Francis wrote:
>
>
> ATLAS version 3.8.2 built by francisd on Mon Sep 15 15:20:08 BST 2008:
> UNAME : Linux red-67 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06
> EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
> INSTFLG : -1 0 -a 1
> ARCHDEFS : -DATL_OS_Linux -DATL_ARCH_PIII -DATL_CPUMHZ=2500 -
> DATL_SSE3 -DATL_SSE2 -DATL_SSE1 -DATL_USE64BITS -DATL_GAS_x8664
> F2CDEFS : -DAdd_ -DF77_INTEGER=int -DStringSunStyle
> CACHEEDGE: 262144
> F77 : gfortran, version GNU Fortran (GCC) 4.1.2 20071124 (Red
> Hat 4.1.2-42)
^^ You built atlas with gfortran
> /usr/bin/g77 -g -Wall -g -Wall -shared build/temp.linux-x86_64-2.4/
> numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.4/numpy/
> linalg/python_xerbla.o -L/users/francisd/local/lib/atlas -llapack -
> llapack -lf77blas -lcblas -latlas -lg2c -o build/lib.linux-x86_64-2.4/
> numpy/linalg/lapack_lite.so
^^ Here you use g77.
This cannot work. You have to use the same fortran compiler for
*everything*, because g77 and gfortran are not ABI compatible. To build
numpy and scipy with gfortran, do:
python setup.py build --fcompiler=gnu95
But I still find a bit strange that it did not fail during the link. You
may have other errors,
cheers,
David
More information about the Numpy-discussion
mailing list