Opened 13 years ago
Closed 13 years ago
#30294 closed defect (fixed)
building gmp-5.0.2 fails for port 2.0.0 for Mac OS X 10.6.8
Reported by: | m.haller@… | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.0 |
Keywords: | Cc: | nerdling (Jeremy Lavergne), rob.patro@…, morpheus+macports@…, ian@…, macports@…, holst-mpt8@…, alexander.zimmermann@… | |
Port: | gmp |
Description
see attached logfile
Attachments (1)
Change History (23)
Changed 13 years ago by m.haller@…
comment:2 follow-ups: 3 8 Changed 13 years ago by bernhard.fuerst@…
Same problem here. May be a duplicate of #30276?
comment:3 Changed 13 years ago by thecolourblue@…
Replying to bernhard.fuerst@…:
Same problem here. May be a duplicate of #30276?
could be- it certainly seems to fail at linking stage.
Could be related to -pie flags- perhaps this is relevant:
http://old.nabble.com/FSF-gcc44.-gcc45-and-gcc46-issues-p32112699.html
comment:4 Changed 13 years ago by nerdling (Jeremy Lavergne)
Cc: | mcalhoun@… added |
---|---|
Port: | gmp added |
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | m.haller@… mcalhoun@… removed |
---|---|
Owner: | changed from macports-tickets@… to mcalhoun@… |
comment:8 follow-up: 12 Changed 13 years ago by jmroot (Joshua Root)
Replying to bernhard.fuerst@…:
Same problem here. May be a duplicate of #30276?
Are you using the same version of ld as the reporter of that ticket?
comment:9 Changed 13 years ago by m.haller@…
Replying to m.haller@…:
see attached logfile
building gmp-5.0.2 works for port 2.0.0 for Mac OS X 10.7 with Xcode 4.1
Mac OS X 10.6.8 used Xcode Developer Tools 4.0.2
comment:12 follow-up: 15 Changed 13 years ago by ian@…
Replying to jmr@…:
Replying to bernhard.fuerst@…:
Same problem here. May be a duplicate of #30276?
Are you using the same version of ld as the reporter of that ticket?
Same here. Mac OS X 10.6.8 (10K540), Xcode Version 4.0.2 (4A2002a), port Version: 2.0.0:
$ ld -v @(#)PROGRAM:ld PROJECT:ld64-123.2 llvm version 2.9svn, from Apple Clang 2.0 (build 139)
comment:15 follow-up: 16 Changed 13 years ago by krchtchk@…
I've had some luck installing a previous version (r79373) (still 5.0.2). More specifically, this let me install it:
sudo port install subversion svn co -r 79373 http://svn.macports.org/repository/macports/trunk/dports/devel/gmp cd gmp sudo port install
Should work as temporary fix until gmp releases its official fix.
comment:16 follow-up: 20 Changed 13 years ago by holst-mpt8@…
I've found that by getting the current version:
svn co http://svn.macports.org/repository/macports/trunk/dports/devel/gmp
and removing the following from the Portfile:
# llvm-gcc-4.2 fails make check if {${configure.compiler} == "llvm-gcc-4.2"} { configure.compiler clang }
I can link and install.
comment:18 Changed 13 years ago by morpheus+macports@…
It seems that the port was broken on Snow Leopard + Xcode 4.0.2 by r80732. The check for llvm-gcc-4.2 per-se is right: one of the tests hangs when gmp is built with llvm-gcc-4.2, but on the other hand clang seems to produce even more invalid code (which doesn't even link).
I switched to gcc-4.2 and gmp builds and passes the testsuite, but I don't know if this would break other ports.
comment:19 Changed 13 years ago by nerdling (Jeremy Lavergne)
This is an example where clang should only be used on darwin 11.
comment:20 Changed 13 years ago by ian@…
Replying to holst-mpt8@…:
I've found that by getting the current version: ... and removing the following from the Portfile: ... I can link and install.
This worked for me, and allowed me to install coreutils, which I was otherwise blocked on.
comment:21 Changed 13 years ago by jmroot (Joshua Root)
Probably fixed in r81117. I don't have Xcode 4.0.x, so please test.
comment:22 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
No news is good news I guess.
gmp log file