public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] sci-libs/scipy-0.9.0-r1 undefined symbol: clapack_sgesv
@ 2011-05-31 13:44 Marc Vinyals
  2011-05-31 18:57 ` Francois Bissey
  0 siblings, 1 reply; 11+ messages in thread
From: Marc Vinyals @ 2011-05-31 13:44 UTC (permalink / raw
  To: gentoo-science

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Hi,

While updating sage and python to 4.7 and 2.7, I hit a variation of an
old bug (see http://bugs.gentoo.org/195619): scipy compiles with
lapack-reference but is unusable. Running in python

import scipy.optimize

fails with

[...]
    from scipy.linalg import clapack
ImportError: /usr/lib64/python2.7/site-packages/scipy/linalg/clapack.so:
undefined symbol: clapack_sgesv

I tried rebuilding numpy and scipy with lapack provided (eselect) by
lapack-reference, blas provided by blas-reference, cblas provided by
gsl and with/without clapack with the same result.

Then I tried rebuilding numpy and scipy with lapack, blas and cblas
provided (eselect) by atlas and scipy worked flawlessly.

Should scipy depend on a specific lapack provider instead of a virtual?
Enable it at compile time? Is it an unfortunate combination what fails?

I can provide build logs if you need them.

Best,
Marc.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [gentoo-science] sci-libs/scipy-0.9.0-r1 undefined symbol: clapack_sgesv
@ 2011-06-07 20:07 Francois Bissey
  2011-06-11  4:58 ` Steven Trogdon
  0 siblings, 1 reply; 11+ messages in thread
From: Francois Bissey @ 2011-06-07 20:07 UTC (permalink / raw
  To: gentoo-science

> EL Tue, 7 Jun 2011 07:33:27 +1200
> 
> Francois Bissey <fbissey@slingshot.co.nz> escrigué:
> > I note you are using numpy-1.6.0 I don't if that's linked to that but
> > sage will not work properly with it:
> > http://trac.sagemath.org/sage_trac/ticket/11334
> > Can you try again with numpy-1.5.1 at least.
> 
> I am a bit surprised, but downgrading numpy actually worked. Thanks a
> lot for your help, Francois! Sage-4.7 should depend on ~numpy-1.5.1
> then, since it already depends on >=numpy-1.5.1.
> 
> > And then what are the outputs of:
> > ldd /usr/lib64/python2.7/site-packages/numpy/core/_dotblas.so
> > ldd /usr/lib64/python2.7/site-packages/numpy/linalg/lapack_lite.so
> 
> They link to lapack, blas and cblas, and they didn't change when I
> downgraded numpy.

I fixed the numpy dependencies in the sage tree. It is still curious that scipy
didn't apparently build properly when using numpy-1.6.0. Someone should
investigate that.

Francois



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-06-11  5:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 13:44 [gentoo-science] sci-libs/scipy-0.9.0-r1 undefined symbol: clapack_sgesv Marc Vinyals
2011-05-31 18:57 ` Francois Bissey
2011-06-01 15:48   ` Marc Vinyals
2011-06-01 19:22     ` Francois Bissey
2011-06-02 10:32       ` Marc Vinyals
2011-06-04  0:15         ` Francois Bissey
2011-06-04  9:08           ` Marc Vinyals
2011-06-06 19:33             ` Francois Bissey
2011-06-06 21:20               ` Marc Vinyals
  -- strict thread matches above, loose matches on Subject: below --
2011-06-07 20:07 Francois Bissey
2011-06-11  4:58 ` Steven Trogdon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox