Ticket #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: | mcalhoun@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.0 |
| Keywords: | Cc: | snc@…, rob.patro@…, morpheus+macports@…, ian@…, macports@…, holst-mpt8@…, alexander.zimmermann@… | |
| Port: | gmp |
Description
see attached logfile
Attachments
Change History
comment:2 follow-ups: ↓ 3 ↓ 8 Changed 4 years ago by bernhard.fuerst@…
Same problem here. May be a duplicate of #30276?
comment:3 in reply to: ↑ 2 Changed 4 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:7 Changed 4 years ago by ryandesign@…
- Owner changed from macports-tickets@… to mcalhoun@…
- Cc m.haller@…, mcalhoun@… removed
comment:8 in reply to: ↑ 2 ; follow-up: ↓ 12 Changed 4 years ago by 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?
comment:9 in reply to: ↑ description Changed 4 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 in reply to: ↑ 8 ; follow-up: ↓ 15 Changed 4 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 in reply to: ↑ 12 ; follow-up: ↓ 16 Changed 4 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 in reply to: ↑ 15 ; follow-up: ↓ 20 Changed 4 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 4 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 4 years ago by snc@…
This is an example where clang should only be used on darwin 11.
comment:20 in reply to: ↑ 16 Changed 4 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 4 years ago by jmr@…
Probably fixed in r81117. I don't have Xcode 4.0.x, so please test.
comment:22 Changed 4 years ago by jmr@…
- Status changed from new to closed
- Resolution set to fixed
No news is good news I guess.


gmp log file