[SciPy-user] building numpy/scipy on Solaris

David M. Cooke cookedm@physics.mcmaster...
Thu Mar 29 10:13:16 CDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

raphael langella wrote:
> I just realized I've got much more recent versions of libsunperf and C
> and fortran compilers. I've got Sun Studio 10 & 11 installed. So I tried
> building numpy with both of them and each time I get this error when
> importing numpy :
> 
>>>> import numpy
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/tmp/lib/python2.5/site-packages/numpy/__init__.py", line 40, in
> <module>
>     import linalg
>   File "/tmp/lib/python2.5/site-packages/numpy/linalg/__init__.py", line
> 4, in <module>
>     from linalg import *
>   File "/tmp/lib/python2.5/site-packages/numpy/linalg/linalg.py", line
> 25, in <module>
>     from numpy.linalg import lapack_lite
> ImportError: ld.so.1: python: fatal: relocation error: file
> /tmp/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so: symbol
> __mt_MasterFunction_rtc_: referenced symbol not found
> 
> I tried the CPPFLAGS='-DNO_APPEND_FORTRAN' option, but it didn't change
> anything. Any idea?

Some library is not getting linked in. Best I can come up with is its
something to do with threads (mt == multithread? rtc == real-time
clock?). Maybe add '-mt' to the CFLAGS? That's equivalent to
- -D_REENTRANT -lthread.

- --
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/
|cookedm@physics.mcmaster.ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGC9eM+kNzddXW8YwRAtonAKC1vK7o0APKkXlpPgQSH57AlZhAFgCg5eW1
2GTO3w6H6gxP6y80okigldc=
=Rab3
-----END PGP SIGNATURE-----


More information about the SciPy-user mailing list