Opened 12 years ago

Closed 12 years ago

#1499 closed defect (fixed)

fix import issues related to ATLAS BLAS

Reported by: mabshoff Owned by: mabshoff
Priority: blocker Milestone: sage-2.9
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

At least on sage.math Sage fails to start up when doing import all. The following doctest failure illustrates the problem:

mabshoff@sage:/tmp/Work-mabshoff/release-cycles-2.9/sage-2.9.alpha7$ ./sage -t  devel/sage-main/sage/numerical/test.py
sage -t  devel/sage-main/sage/numerical/test.py             Traceback (most recent call last):
  File ".doctest_test.py", line 1, in <module>
    from sage.all_cmdline import *;
  File "/tmp/Work-mabshoff/release-cycles-2.9/sage-2.9.alpha7/local/lib/python2.5/site-packages/sage/all_cmdline.py", line 1
4, in <module>
    from sage.all import *
  File "/tmp/Work-mabshoff/release-cycles-2.9/sage-2.9.alpha7/local/lib/python2.5/site-packages/sage/all.py", line 53, in <m
odule>
    from sage.misc.all       import *         # takes a while
  File "/tmp/Work-mabshoff/release-cycles-2.9/sage-2.9.alpha7/local/lib/python2.5/site-packages/sage/misc/all.py", line 67,
in <module>
    from functional import (additive_order,
  File "/tmp/Work-mabshoff/release-cycles-2.9/sage-2.9.alpha7/local/lib/python2.5/site-packages/sage/misc/functional.py", li
ne 33, in <module>
    from sage.rings.complex_double import CDF
ImportError: /tmp/Work-mabshoff/release-cycles-2.9/sage-2.9.alpha7/local/lib/libcblas.so: undefined symbol: ATL_ctbmv

         [0.3 s]
exit code: 256

The attached patch fixes that, but not in a very clean way. I tried various "clean" approaches, but non of them got past Cython and always lead to link errors.

Cheers,

Michael

Attachments (1)

Sage-2.9.alpha7-fix-ATLAS-linking.patch (7.0 KB) - added by mabshoff 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by mabshoff

comment:1 Changed 12 years ago by mabshoff

The patch passes a sage -ba and a testall on OSX 10.5

Cheers,

Michael

comment:2 Changed 12 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

Merged in 2.9.alpha7.

Note: See TracTickets for help on using tickets.