Opened 13 years ago
Closed 13 years ago
#30276 closed defect (worksforme)
gmp fails to build on 10.7
Reported by: | thecolourblue@… | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | lion | Cc: | alexander.zimmermann@…, overhacked (Ross Williams) |
Port: | gmp |
Description (last modified by mf2k (Frank Schima))
Trying to build/upgrade gmp on 10.7 and it fails with a linker error. Doesn't matter which compiler is used (fails with same error for gcc-4.2 and clang). The linker version is:
$ ld -v @(#)PROGRAM:ld PROJECT:ld64-126.3.2 llvm version 3.0svn, from Apple Clang 3.0 (build 210.1)
and the error is:
ld: illegal text-relocation to ___gmpn_add_n in mpn/.libs/add_n.o from ___gmpn_add_n in mpn/.libs/add_n.o for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [libgmp.la] Error 1
Change History (10)
comment:1 Changed 13 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | lion added |
Owner: | changed from macports-tickets@… to mcalhoun@… |
comment:2 Changed 13 years ago by jmroot (Joshua Root)
comment:3 Changed 13 years ago by thecolourblue@…
No, I am using svn head:
URL: http://svn.macports.org/repository/macports/trunk Repository Root: http://svn.macports.org/repository/macports Repository UUID: d073be05-634f-4543-b044-5fe20cf6d1d6 Revision: 80925 Node Kind: directory Schedule: normal Last Changed Author: takeshi@macports.org Last Changed Rev: 80923 Last Changed Date: 2011-07-21 03:40:54 +0100 (Thu, 21 Jul 2011)
and gmp version is
$ port info gmp gmp @5.0.2, Revision 1 (devel, math)
Pretty much everything else in macports has compiled (and is working) just fine, and I'm using the default compilation flags. It builds for you with the same gmp and ld version?
comment:4 follow-up: 5 Changed 13 years ago by jmroot (Joshua Root)
No, I have an older version of ld. Which I assume means you're using a prerelease version of Xcode.
comment:5 Changed 13 years ago by thecolourblue@…
Replying to jmr@…:
No, I have an older version of ld. Which I assume means you're using a prerelease version of Xcode.
Ah yes- I'm using Xcode 4.2. The llvm-gcc-4.2 compilers should be pretty much the same, but I guess there are some issues with the new linker.
comment:8 Changed 13 years ago by openwiki500@…
Compilation are done. ld64-123.2.1 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Is this ticket still a problem? Can this be considered a duplicate of #30294?
comment:10 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Not a dupe, but it doesn't appear to be reproducible with non-preview Xcode versions.
Built fine for me, FWIW. Are you really running 1.9.2? If so, you'll want to install a newer version.