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)

main.log (31.5 KB) - added by m.haller@… 13 years ago.
gmp log file

Download all attachments as: .zip

Change History (23)

Changed 13 years ago by m.haller@…

Attachment: main.log added

gmp log file

comment:1 Changed 13 years ago by m.haller@…

Cc: m.haller@… added

Cc Me!

comment:2 Changed 13 years ago by bernhard.fuerst@…

Same problem here. May be a duplicate of #30276?

comment:3 in reply to:  2 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:5 Changed 13 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:6 Changed 13 years ago by rob.patro@…

Cc: rob.patro@… added

Cc Me!

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 in reply to:  2 ; 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 in reply to:  description 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:10 Changed 13 years ago by morpheus+macports@…

Cc: morpheus+macports@… added

Cc Me!

comment:11 Changed 13 years ago by ian@…

Cc: ian@… added

Cc Me!

comment:12 in reply to:  8 ; 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:13 Changed 13 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:14 Changed 13 years ago by holst-mpt8@…

Cc: holst-mpt8@… added

Cc Me!

comment:15 in reply to:  12 ; 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 in reply to:  15 ; 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:17 Changed 13 years ago by alexander.zimmermann@…

Cc: alexander.zimmermann@… added

Cc Me!

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 in reply to:  16 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: newclosed

No news is good news I guess.

Note: See TracTickets for help on using tickets.