[SciPy-dev] Failure under Solaris 9, 64-bit

Jett Logic jettlogic at gmail.com
Thu Nov 23 08:17:04 CST 2006

I have to use Sun C 5.7 and Sun Fortran 95 8.1, producing ELF64's with 
F77='f90 -xcode=pic32 -xarch=v9' (also tried f77, no difference) and 
CC='cc -mt -xcode=pic32 -xarch=v9'   I compiled Python 2.5 
(--enable-shared) then built blas and lapack following 

I passed -L and -R to ld for each library directory.  I had to pass -G 
to ld as well for the Fortran linking steps to prevent error of missing 
"main" symbol in crt1.o.

However, "from scipy import special" fails as below beause of the 
_cephes module which has a bunch of Fortran constants in it:

Python 2.5 (r25:51908, Nov 20 2006, 02:58:57) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy import special
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>

line 8, in <module>
     from basic import *

line 8, in <module>
     from _cephes import *
ImportError: ld.so.1: python: fatal: relocation error: R_SPARC_H44: file

symbol __f90_default_input_unit: value 0x3fffffffde7 does not fit

(note that scipy compiles and runs fine using the 32-bit gcc toolchain, 
but I need 64-bit)

Should I file this as a bug?  Is there a workaround?

More information about the Scipy-dev mailing list