[MacPorts] #27002: py26-numpy @1.5.0, Revision 1 - build failure
MacPorts
noreply at macports.org
Thu Dec 2 09:56:15 PST 2010
#27002: py26-numpy @1.5.0, Revision 1 - build failure
---------------------------------+------------------------------------------
Reporter: dannowolk@… | Owner: mcalhoun@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: tiger | Port: py26-numpy
---------------------------------+------------------------------------------
Comment(by stephen@…):
OK (well, not really OK, but I managed to butkus gcc/apple-ld into
building):
{{{
sudo port -f uninstall py26-numpy
sudo port clean py26-numpy
sudo port install py26-numpy
cd `port work py26-numpy`/numpy-1.5.1
sudo /opt/local/bin/gfortran-mp-4.4 -v -Z -t -Wall -arch ppc
build/temp.macosx-10.4-ppc-2.6/numpy/linalg/lapack_litemodule.o
build/temp.macosx-10.4-ppc-2.6/numpy/linalg/python_xerbla.o
-L/opt/local/lib -L/opt/local/lib/gcc44/gcc/ppc-apple-darwin8/4.4.5
-Lbuild/temp.macosx-10.4-ppc-2.6 -L/usr/lib -llapack -lf77blas -lcblas
-latlas -lgfortran -o
build/lib.macosx-10.4-ppc-2.6/numpy/linalg/lapack_lite.so -undefined
dynamic_lookup -bundle
sudo port install py26-numpy
}}}
I don't know if this build actually *works*, I don't know how to test it
offhand. (It's a direct dependency of at least 3 ports I have installed,
and is currently blocking upgrade of about 15 ports. But I didn't ask for
it personally.)
I don't know if the uninstall is necessary; sometimes that helps so I
tried it. It didn't help, but of course then I'm stuck without an
installed port until I figure out how to install. I'm in no mood to do
further testing right now....
The gfortran invocation is a modification of the one recorded in main.log
just before the error message. The additions to the gfortran invocation
are the {{{-v -t -Z}}} options near the beginning of the command line and
the {{{-L/usr/lib}}} option which is the last of the {{{-L}}} options.
Presumably the {{{-v -t}}} can be omitted.
Aha - py25-numpy has the same problems. Yep, "port -u upgrade ...; cd
...; gfortran ...; port -u upgrade" works without uninstalling, and the
"-v -t" flags to gfortran are unnecessary. Once again, this build is
untested, I don't know if it actually works.
FWIW it seems to me that this is probably Apple ld screwage, not a problem
with MacPorts or gcc. Maybe someday I'll try GCC 4.5 (cf #24925, 2d to
last comment by vince), but I bet it doesn't help.
Platform much like the OP:
{{{
iBook G4 (PPC)
Mac OS X "Tiger" 10.4.11
MacPorts from svn, fresh sync of dports
port build probably 3-4 months old (port -v sez "1.9.1").
}}}
--
Ticket URL: <https://trac.macports.org/ticket/27002#comment:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list