[SciPy-user] Undefined symbol "ATL_cpttrsm"

Lee Harr missive at hotmail.com
Sun Oct 31 11:16:19 CST 2004


>>ImportError: /usr/local/lib/libptf77blas.so.1: Undefined symbol 
>>"ATL_cpttrsm"
>>
>>
>>Any hints on how to fix this are appreciated ...
>
>Symbol "ATL_cpttrsm" should be defined in atlas library, try `nm 
>/usr/local/lib/libatlas.* | grep ATL_cpttrsm`.

$nm /usr/local/lib/libatlas.so.1 | grep ATL_cpttrsm
$nm /usr/local/lib/libatlas.a | grep ATL_cpttrsm
$nm /usr/local/lib/libatlas_r.so.1 | grep ATL_cpttrsm
005cfeb8 T ATL_cpttrsm
005cfc48 T ATL_cpttrsm0
005cfca8 T ATL_cpttrsm_nt
$nm /usr/local/lib/libatlas_r.a | grep ATL_cpttrsm
         U ATL_cpttrsm0
ATL_cpttrsm.o:
00000244 T ATL_cpttrsm
00000000 T ATL_cpttrsm0
00000054 T ATL_cpttrsm_nt





>So it looks like atlas library was not used during the linking of flapack 
>extension module or -lptf77blas was specified after -latlas.
>
>What is the output (both stdout and stderr) of
>
>>>>from scipy_distutils.system_info import get_info
>>>>get_info('lapack_opt')
>



>>>get_info('lapack_opt')
lapack_opt_info:
atlas_threads_info:
scipy_distutils.system_info.atlas_threads_info
  FOUND:
    libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
    library_dirs = ['/usr/local/lib']
    language = f77
    include_dirs = ['/usr/local/include']

running build_src
building extension "atlas_version" sources
creating build
creating build/src
  adding 'build/src/atlas_version_0x3987e8cd.c' to sources.
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
Could not locate executable g77
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using build_ext
building 'atlas_version' extension
compling C sources
cc options: '-fno-strict-aliasing -DNDEBUG -O -pipe -D_THREAD_SAFE 
-DTHREAD_STACK_SIZE=0x20000 -fPIC'
creating build/temp.freebsd-4.10-STABLE-i386-2.3
creating build/temp.freebsd-4.10-STABLE-i386-2.3/build
creating build/temp.freebsd-4.10-STABLE-i386-2.3/build/src
compile options: '-I/usr/local/include -I/usr/local/include/python2.3 -c'
cc: build/src/atlas_version_0x3987e8cd.c
creating build/lib.freebsd-4.10-STABLE-i386-2.3
/usr/bin/f77 -shared 
build/temp.freebsd-4.10-STABLE-i386-2.3/build/src/atlas_version_0x3987e8cd.o 
-L/usr/local/lib -L/usr/lib -latlas -lg2c -o 
build/lib.freebsd-4.10-STABLE-i386-2.3/atlas_version.so
  FOUND:
    libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
    library_dirs = ['/usr/local/lib']
    language = f77
    define_macros = [('ATLAS_INFO', '"\\"3.6.0\\""')]
    include_dirs = ['/usr/local/include']

{'libraries': ['lapack', 'ptf77blas', 'ptcblas', 'atlas'], 'library_dirs': 
['/usr/local/lib'], 'language': 'f77', 'define_macros': [('ATLAS_INFO', 
'"\\"3.6.0\\""')], 'include_dirs': ['/usr/local/include']}



so... it looks like the threaded (_r) libs have the symbol, but not
the unthreaded, but the threaded libs were not linked in ...

I am looking around (through ...Lib/linalg/...)  but I do not see where
I might point the build to the correct lib.

Thanks for your time.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/



More information about the SciPy-user mailing list