[MacPorts] #37415: py27-numpy: cannot import numpy when built with atlas

MacPorts noreply at macports.org
Tue May 7 08:40:21 PDT 2013


#37415: py27-numpy: cannot import numpy when built with atlas
--------------------------------+-------------------
  Reporter:  macsforever2000@…  |      Owner:  dh@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.1.2
Resolution:                     |   Keywords:
      Port:  py-numpy           |
--------------------------------+-------------------

Comment (by vince@…):

 I think the problem is caused by numpy linking against the .a version of
 Atlas libs. These .a files are static archives that are supposed to be
 self-contained, so the linkers picks routines up here and there out of the
 archive and bundles them into the file it is building without minding
 about dependencies, that must be specified in addition. But, in that case,
 Atlas introduces a further dependency, that does not seem to be taken into
 account by the Makefile, specifically to the famous libgomp (OpenMP
 threading) in the GCC standard lib.
 So, the fix  would be either to specify an extra dependency to
 ${prefix}/bin/gccXX/libgomp.dylib, which might be impractical because XX
 should be inferred and is found different places in universal builds, or
 to alter the dependency to link against Atlas dylibs, which would pull
 automatically the correct libgomp dependency in.

-- 
Ticket URL: <https://trac.macports.org/ticket/37415#comment:46>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list