[SciPy-user] Undefined symbol "ATL_cpttrsm"

Pearu Peterson pearu at scipy.org
Mon Nov 1 01:11:42 CST 2004



On Mon, 1 Nov 2004, Lee Harr wrote:

>>> but I still get ...
>>> 
>>> ImportError: 
>>> /usr/local/lib/python2.3/site-packages/scipy/linalg/clapack.so: Undefined 
>>> symbol "clapack_sgesv"
>> 
>> Symbol "clapack_sgesv" should be defined in atlas liblapack.{a,so}. But 
>> this may be different in freebsd. Try changing 'lapack' to 'alapack' or 
>> 'alapack_r'.
>> 
>> Note that I am just guessing here, so, if you get more undefined symbol 
>> errors then try to find out yourself where these symbols are defined using 
>> nm, for instance, and modify library name lists accordingly. Let us know 
>> about the results.
>> 
>
> Does the phrase  'woot!' mean anything to you?
>
>   def calc_info(self):
>       lib_dirs = self.get_lib_dirs()
>       info = {}
>       atlas_libs = self.get_libs('atlas_libs',
>                                  self._lib_names + ['atlas_r'])
>       lapack_libs = self.get_libs('lapack_libs',['alapack_r'])
>
>
> did the trick...

Great!
Btw, what is the value of sys.platform in your system?

> The other patch I needed to get scipy to build under
> FreeBSD was to remove references to the arctanh_data,
> arccosh_data, and arcsinh_data from
> scipy_core/scipy_base/fastumath_unsigned.inc
>
> Should I post complete patches here, or create a FreeBSD
> ports problem report?

Either is fine. I can apply your patches asap provided that they do not 
break other platforms.

Pearu



More information about the SciPy-user mailing list