[MacPorts] #37415: py27-numpy: cannot import numpy when built with atlas
MacPorts
noreply at macports.org
Wed Apr 10 17:08:34 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 michaelld@…):
I see this issue too (I cannot actually compile the latest atlas, but the
issue is also with the prior version):
{{{
nm -a `port contents atlas | grep libatlas` | grep omp_get_num_threads
}}}
returns "U _omp_get_num_threads" meaning that that symbol is undefined in
the library. Hence, it seems like either libatlas.a needs to statically
link with ${prefix}/lib/gccXY/libgomp.a, or any project using this library
needs to link with ${prefix}/lib/gccXY/libgomp.dylib or .a. Basically:
this seems to be an atlas issue, not a numpy issue. Or, maybe I'm missing
something?
Further
{{{
% for tf in `port contents atlas | grep /lib/`; do echo $tf; nm -a $tf |
grep _omp_; done
/opt/local/lib/libatlas.a
U _omp_get_num_threads
U _omp_get_thread_num
U _omp_set_num_threads
U _omp_init_lock
U _omp_set_lock
U _omp_unset_lock
U _omp_set_lock
U _omp_unset_lock
U _omp_destroy_lock
/opt/local/lib/libcblas.a
/opt/local/lib/libf77blas.a
/opt/local/lib/liblapack.a
/opt/local/lib/libptcblas.a
/opt/local/lib/libptf77blas.a
/opt/local/lib/libsatlas.dylib
U _omp_destroy_lock
U _omp_get_num_threads
U _omp_get_thread_num
U _omp_init_lock
U _omp_set_lock
U _omp_set_num_threads
U _omp_unset_lock
/opt/local/lib/libtatlas.dylib
U _omp_destroy_lock
U _omp_get_num_threads
U _omp_get_thread_num
U _omp_init_lock
U _omp_set_lock
U _omp_set_num_threads
U _omp_unset_lock
}}}
so, it's primarily the lib*atlas libraries that are the issue.
--
Ticket URL: <https://trac.macports.org/ticket/37415#comment:21>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list