[MacPorts] #30276: gmp fails to build on 10.7
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: gmp -------------------------------------+-------------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/30276> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Changes (by macsforever2000@…): * keywords: => lion * owner: macports-tickets@… => mcalhoun@… Old description:
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
New description: 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 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Comment(by jmr@…): Built fine for me, FWIW. -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Comment(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? -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Comment(by jmr@…): No, I have an older version. Which I assume means you're using a prerelease version of Xcode. -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Comment(by thecolourblue@…): Replying to [comment:4 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. -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Comment(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) -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 -------------------------------------+-------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: lion | Port: gmp -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Is this ticket still a problem? Can this be considered a duplicate of #30294? -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30276: gmp fails to build on 10.7 --------------------------------------+------------------------------------- Reporter: thecolourblue@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: lion Port: gmp | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme Comment: Not a dupe, but it doesn't appear to be reproducible with non-preview Xcode versions. -- Ticket URL: <https://trac.macports.org/ticket/30276#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts