#15578: gmp: universal build is broken (t-get_d test fails) --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: Port: gmp | --------------------------------------+------------------------------------- Comment(by ryandesign@macports.org): Replying to [comment:6 blb@…]:
One issue I noticed was the gmp.h header file, which as (among other things) !__GMP_HAVE_HOST_CPU_FAMILY_powerpc, on Intel it's 0, PowerPC it's a 1, so the header file is technically not universal...
Right. We've overcome things like that in other ports; see the glib2 port for example. It would be nice to have a universal gmp. We would need to see if gmp can be cross-compiled at all. If it can, then we still have the problem that probably the test suite cannot be run for the non-native architecture (at least, the Intel parts can probably not be tested on PowerPC; the PowerPC parts might be testable on Intel via Rosetta). I have learned the hard way (and it is stated in the gmp documentation) that the test suite must must must pass before you can use the built gmp. Otherwise you're just asking for trouble. -- Ticket URL: <http://trac.macports.org/ticket/15578#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS