public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: fbissey@slingshot.co.nz
To: gentoo-science@lists.gentoo.org
Subject: [gentoo-science] new blas infrastructure on OS X prefix
Date: Fri, 09 Sep 2011 14:51:07 +1200	[thread overview]
Message-ID: <20110909145107.4cgssok0gw0kw8kc@webmail.slingshot.co.nz> (raw)
In-Reply-To: <20110906163958.zny8004c4sogcss0@webmail.slingshot.co.nz>

Hi,

I have to sadly report that currently the new blas infrastructure from the
science overlay is broken on at least OS X prefix. For example sage doesn't
start with the following message:
sage
----------------------------------------------------------------------
| Sage Version 4.7.2.alpha2, Release Date: 2011-08-24                |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
**********************************************************************
*                                                                    *
* Warning: this is a prerelease version, and it may be unstable.     *
*                                                                    *
**********************************************************************
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/Users/frb15/Desktop/Gentoo/usr/lib/python2.7/site-packages/IPython/ipmaker.pyc
in force_import(modname, force_reload)
      61         reload(sys.modules[modname])
      62     else:
---> 63         __import__(modname)
      64
      65

/Users/frb15/Desktop/Gentoo/usr/bin/ipy_profile_sage.py in ()
       5     preparser(True)
       6
----> 7     import sage.all_cmdline
       8     sage.all_cmdline._init_cmdline(globals())
       9

/Users/frb15/Desktop/Gentoo/usr/lib/python2.7/site-packages/sage/all_cmdline.py
in ()
      12 try:
      13
---> 14     from sage.all import *
      15     from sage.calculus.predefined import x
      16     preparser(on=True)

/Users/frb15/Desktop/Gentoo/usr/lib/python2.7/site-packages/sage/all.py in ()
      73 from time                import sleep
      74
---> 75 from sage.misc.all       import *         # takes a while
      76
      77 from sage.misc.sh import sh

/Users/frb15/Desktop/Gentoo/usr/lib/python2.7/site-packages/sage/misc/all.py 
in
()
      79 from func_persist import func_persist
      80
---> 81 from functional import (additive_order,
      82                         sqrt as numerical_sqrt,
      83                         arg,

/Users/frb15/Desktop/Gentoo/usr/lib/python2.7/site-packages/sage/misc/functional.py
in ()
      36
      37
---> 38 from sage.rings.complex_double import CDF
      39 from sage.rings.real_double import RDF, RealDoubleElement
      40

ImportError:
dlopen(/Users/frb15/Desktop/Gentoo/usr/lib/python2.7/site-packages/sage/rings/complex_double.bundle,
2): Symbol not found: _cblas_caxpy
   Referenced from: /Users/frb15/Desktop/Gentoo/usr/lib/libgsl.0.dylib
   Expected in: dynamic lookup

The key word is dynamic lookup. On OS X most library have an install_name that
is losely speaking similar to a rpath. Library declare their install_name and
the install_name of all the libraries they depend on. But you can use "dynamic
look up" to get the kind of behavior you would expect on linux. For 
some reason
switching to the new infrastructure break the dynamic look up of cblas 
for gsl,
and probably scipy and other. I don't know if it is limited to python 
extension
(in OS X speak bundles, on linux they appear as .so but in fact they may have
more in common with plugins).

I also don't know if it is broken on other prefix, I suspect linux 
prefixes are
OK.

Francois





      reply	other threads:[~2011-09-09  2:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 19:49 [gentoo-science] new blas infrastructure and prefix fbissey
2011-08-30 21:33 ` Johan Hattne
2011-08-30 21:46   ` fbissey
2011-08-31  4:12     ` fbissey
2011-09-02 13:27   ` fbissey
2011-09-02 18:59     ` Andrea Arteaga
2011-09-02 20:33       ` fbissey
2011-09-04 23:47       ` fbissey
2011-09-06  2:23 ` fbissey
2011-09-06  4:39   ` fbissey
2011-09-09  2:51     ` fbissey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110909145107.4cgssok0gw0kw8kc@webmail.slingshot.co.nz \
    --to=fbissey@slingshot.co.nz \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox