[MacPorts] #39217: py27-numpy @1.7.1_0: import fails due to missing symbol
MacPorts
noreply at macports.org
Tue May 28 03:02:01 PDT 2013
#39217: py27-numpy @1.7.1_0: import fails due to missing symbol
--------------------------+--------------------------------
Reporter: jdgleeson@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: | Keywords:
Port: py27-numpy |
--------------------------+--------------------------------
Comment (by nad@…):
Looking at the log, it appears that, for each C extension module,
/opt47/local/bin/gcc-mp-4.7 is being used by Distutils for the compile
step but /usr/bin/gcc-4.0 is used for the link step (-bundle). Normally,
the same compiler should be used for both. By default, Distutils tries to
use the same compiler and options as was used to build Python itself,
unless overridden. In particular, the CC env variable is used to override
the compiler in the CC config var and the LDSHARED env var is used to
supply the compiler and link options from the LDSHARED config var. (You
can inspect Python's configuration variables with
sysconfig.get_config_var('CC') or ('LDSHARED').) With Python 2.7.3,
setting a CC environment variable to override the compiler caused
Distutils to update the compiler string in LDSHARED as well.
Unfortunately, in Python 2.7.4 (and 2.7.5), the update of LDSHARED when CC
is specified no longer happens; if you use CC env variable to supply a
different compiler, you also need to inspect the LDSHARED config var and
supply a complete modified string in an LDSHARED env variable. I've
opened an upstream issue to restore the inadvertently changed behavior
(http://bugs.python.org/issue18080) and attached a patch that should fix
the problem for 2.7.5. I have not looked into the Numpy build process nor
the MacPorts changes to see if this is the same problem but reading the
log here rang a bell. You could try to apply the patch to the MacPorts
Python 2.7.5 and see if it fixes the problem. There were other rather
extensive changes in Distutils to better support Xcode 4 for Python 2.7.4
so it is possible that something else in them may have affected Numpy
builds.
--
Ticket URL: <https://trac.macports.org/ticket/39217#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list