#37606: glib2 @ 2.34.3 Build failure on powerpc ppc64 --------------------------------------+--------------------------- Reporter: calderon.christian760@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: powerpc ppc64 Port: glib2 | --------------------------------------+--------------------------- Changes (by ryandesign@…): * keywords: => powerpc ppc64 * owner: macports-tickets@… => ryandesign@… * status: new => assigned * port: => glib2 Comment: Replying to [ticket:37606 calderon.christian760@…]:
Glib2 failed to build on my PowerMac G5 running OS X 10.5.8. I have Macports set up to compile ports as ppc64 by default, idk if that is the issue.
Yes, that is the issue. Here is the upstream bug report: https://bugzilla.gnome.org/show_bug.cgi?id=647145 ppc64 is never the default in MacPorts, so it's not well-tested. It also doesn't really offer any advantage over ppc, unless you need to use more than 4GB of data in a single program. (In contrast, on Intel, using x86_64 offers many benefits over i386 other than just the larger address space.)
Also, I noticed that the compiler being used is gcc-4.0 which I've had problems with before (although I don't know if that is the cause of the problem) and not gcc-4.2.
gcc-4.0 is the default compiler on Tiger and Leopard so it should generally work fine, but you're right that gcc-4.2 is also available, and in some ports we do switch to that compiler on Leopard. The upstream bug report hints that a different gcc version might work better, so feel free to try compiling glib2 for ppc64 using gcc-4.2. Here's how you would do that: {{{ sudo port clean glib2 sudo port install glib2 configure.compiler=gcc-4.2 }}} If that works, I'll be happy to change the port to use that on Leopard. I cannot test it myself because my PowerPC Macs have G3 and G4 processors, not G5s. -- Ticket URL: <https://trac.macports.org/ticket/37606#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS