Max wrote:
> Hi,
> I'm trying to run testlapack example from cython-notur09 on OS X 10.6.
> First, while compiling I faced with following error
> gcc -L/sw64/lib -bundle -L/sw64/lib/python2.6/config -lpython2.6
> build/temp.macosx-10.4-i386-2.6/lapack.o
> -L/Applications/development/sage//local/lib -llapack -lf77blas -lcblas
> -latlas -o lapack.so -g
> Undefined symbols:
> "_clapack_dgesv", referenced from:
> _dgesv in lapack.o
> _dsolve in lapack.o
> ld: symbol(s) not found
> So I changed clapack_dgesw in lapack.pxd to dgesw and successfully
> build it against SAGE (sage-4.2.1-OSX10.6-Intel-64bit-i386-Darwin.dmg)
> but when I run testlapack.test() python froze, using 100% of CPU,
> below is debuging info.
>
>>>> tl.test()
> test start
> ^C
> Program received signal SIGINT, Interrupt.
> 0x00000001005280a4 in dgesv (__pyx_v_Order=CblasRowMajor, __pyx_v_N=3,
> __pyx_v_NRHS=1, __pyx_v_A=0x7fff5fbfdda0, __pyx_v_lda=3,
> __pyx_v_ipiv=0x7fff5fbfde10, __pyx_v_B=0x7fff5fbfddf0, __pyx_v_ldb=3)
> at lapack.c:775
> 775 static int dgesv(enum CBLAS_ORDER __pyx_v_Order, int __pyx_v_N,
> int __pyx_v_NRHS, double *__pyx_v_A, int __pyx_v_lda, int
> *__pyx_v_ipiv, double *__pyx_v_B, int __pyx_v_ldb) {
> (gdb) exit
>
> I was also tried to build it against Mac OS X accelerated framework
> and the result is the same, while on linux this example works fine.
> Any suggestions what's wrong?
Your change likely caused calling the Fortran dgesv instead. Fortran
functions must be called in a different manner, which explains the crash.
As to getting it working, what does
import numpy
numpy.show_config()
say? Also, I'm worried that -L/sw64/lib comes before the Sage
include...perhaps some libraries come from that directory and some from
Sage and they don't match... *shrug*
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev