[MacPorts] #62332: Cannot build gcc7 with +universal on Intel Tiger
MacPorts
noreply at macports.org
Sat Feb 20 18:26:14 UTC 2021
#62332: Cannot build gcc7 with +universal on Intel Tiger
--------------------------+--------------------
Reporter: Wowfunhappy | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gcc7 |
--------------------------+--------------------
Comment (by kencu):
Do you want the short version of the story, or the long version :>
Short version of the story: cross-arch universal building of all gcc
versions stopped working on MacPorts as of apple-gcc42, and has not worked
on any newer gcc version since about 2009.
The only thing that works is same-processor-family universal building (eg
ppc/ppc64 or i386/x86_64). This is because when we build gcc +universal on
MacPorts, we don't actually build it +universal, we only build libgcc as
having both i386 and x86_64 (or ppc/ppc64) archs in it ("multilib").
To build a fully-functional cross-arch universal gcc is a project that
people lost interest in once PowerPC systems were less common (but has new
enthusiasm now that arm64/x86_64 is out there). I have built one manually
myself, but there is a missing component (driverdriver.c updated for newer
gcc versions).
For happiness on older systems, I suggest you set your universal_archs in
macports.conf to ppc/ppc64 on a PowerPC machine, or i386/x86_64 on an
Intel machine. That works really quite well on Leopard systems. For Tiger
systems, to be honest there were so many issues that I reduced my attempts
to build +universal in Tiger and I'm happy to have non-universal builds
going as well as they do.
I have Octave for Tiger PPC, clang-7.0 for Tiger Intel, gcc7 for Tiger
(both PPC, Intel) and thousands more.
--
Ticket URL: <https://trac.macports.org/ticket/62332#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list