Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413549 - If python has USE=threads, then dev-python/numpy fails unless sci-libs/atlas has USE=threads also.
Summary: If python has USE=threads, then dev-python/numpy fails unless sci-libs/atlas...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 372323
  Show dependency tree
 
Reported: 2012-04-25 17:17 UTC by Andreas Proteus
Modified: 2012-12-04 10:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Proteus 2012-04-25 17:17:14 UTC
1. Emerge python with USE="threads".

2. Emerge sci-libs/atlas without threads (the default).

3. Emerge dev-python/numpy - no problem here.

4. Open a python console and type: 
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module>
    import add_newdocs
  File "/usr/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/python2.7/site-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/usr/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 48, in <module>
    from linalg import *
  File "/usr/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 23, in <module>
    from numpy.linalg import lapack_lite
ImportError: /usr/lib/libatlas.so.3: undefined symbol: ATL_DecAtomicCount

5. Also sci-libs/scipy fails to emerge.
--------------------------------------------------------------------------------------

Solution set atlas USE="threads", rebuild atlas and problem solved.

I suggest that if python has USE="threads" then the numpy ebuild should require 
an atlas with USE="threads" also. (perhaps through virtual/cblas).

Note.  The above were done with: 
dev-lang/python-2.7.3
sci-libs/atlas-3.9.71
dev-python/numpy-1.6.1-r1
but I think versions are immaterial.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-12-04 10:42:40 UTC
This is unreproducable here with atlas-3.10.0, numpxy-1.6.2 and python-2.7.3-r2.
Please test again.