[SciPy-dev] referenced symbol not found

Pearu Peterson pearu at cens.ioc.ee
Thu Jan 30 04:39:37 CST 2003


On Thu, 30 Jan 2003, Alain Sartout wrote:

> Hello,
> 
> I have problems for a scipy installation on Sun solaris8. I have try a lot 
> compilation for all software list (pyhon, lapack, atlas etc...) whith SunCC, gcc 
> for different version of python etc... It never works!

Same here.. I am stuck with atlas when using gcc-2.95.3 compiler 
(I am getting 

/tmp/pp_atlas/bin/SunOS_Gnu2.95.3_SunUS2_2/ATLrun.sh \
/tmp/pp_atlas/tune/blas/gemm/SunOS_Gnu2.95.3_SunUS2_2 xdfc \
res/dNCNB20_1000
dNB=20, ld=1000,20,20, mu=2, nu=3, ku=12, lat=4: time=1.320, mflop=166.97
dNB=20, ld=1000,20,20, mu=2, nu=3, ku=12, lat=4: time=1.300, mflop=169.54
dNB=20, ld=1000,20,20, mu=2, nu=3, ku=12, lat=4: time=1.290, mflop=170.85
*** Signal 10 - core dumped

when running 'make install arch=SunOS_Gnu2.95.3_SunUS2_2' but
direct execution of

/tmp/pp_atlas/bin/SunOS_Gnu2.95.3_SunUS2_2/ATLrun.sh \
/tmp/pp_atlas/tune/blas/gemm/SunOS_Gnu2.95.3_SunUS2_2 xdfc \
res/dNCNB20_1000

always succeeds. Any hints are appreciated about what could be 
going on here.).

Could you share your experience with building atlas libraries on SunOS?
The contents of ATLAS/Make.<arch> would be very helpful.

> Here the output from python when I try to import scipy :
> 
> -----------------------
> irmasrv3 [290] > python
> Python 2.2.2 (#5, Jan 29 2003, 14:13:36) 
> [GCC 3.2] on sunos5
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import scipy
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.2/site-packages/scipy/__init__.py", line 49, in ?
>     import special, io, linalg, stats, fftpack
>   File "/usr/local/lib/python2.2/site-packages/scipy/special/__init__.py", line 
> 326, in ?
>     from special import *
>   File "/usr/local/lib/python2.2/site-packages/scipy/special/special.py", line 
> 5, in ?
>     from cephes import *
> ImportError: ld.so.1: python: fatal: relocation error: file 
> /usr/local/lib/python2.2/site-packages/scipy/special/cephes.so: symbol __sincos: 
> referenced symbol not found
> -----------------------

Can you determine in which (system) library this symbol __sincos is
defined?

> irmasrv3 [467] # cd /usr/local/lib/python2.2/site-packages/scipy/linalg

One should never try building python packages containing extension
modules in their installation directories such as
  /usr/local/lib/python2.2/site-packages/...
! It will never work because sources are not installed.
So, try

  cd cvs/scipy/linalg
  python setup_atlas_version.py build_ext --inplace --force

instead.

> irmasrv3 [468] # python setup_atlas_version.py build_ext --inplace --force
<snip>
> gcc: /usr/local/lib/python2.2/site-packages/scipy/linalg/atlas_version.c: No 
> such file or directory
> gcc: no input files

Can you import other extension modules? Try

  cd /usr/local/lib/python2.2/site-packages/scipy/<modulename>
  ls *.so

and import any *.so modules that is listed directly to python.

Pearu




More information about the Scipy-dev mailing list