[MacPorts] #66302: gcc12 universal variant has no effect
MacPorts
noreply at macports.org
Sun Nov 20 15:18:57 UTC 2022
#66302: gcc12 universal variant has no effect
----------------------------+------------------------------------
Reporter: JanWielemaker | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords: universal arm64 x68_64
Port: gcc12 |
----------------------------+------------------------------------
Comment (by jmroot):
There is no way to build a GCC that can target both x86_64 and arm64. You
can get one that targets both i386 and x86_64 using multilib, which is
what the fake "universal" variant does (it doesn't actually install a
universal GCC on any platform.) It might be possible to build separate
x86_64 and arm64 GCCs, one configured as a native compiler and one as a
cross-compiler, depending on your hardware, and combine them somehow, but
I suspect it wouldn't be as simple as a standard muniversal build. And you
still wouldn't have a GCC that can target multiple architectures with a
flag, you would have two different GCCs glued together, so the target arch
would depend on which arch you run the binary as.
Getting this to work the way everyone wants would have to involve an
updated version of the driver-driver that Apple used to ship to enable ppc
and i386 universal builds with gcc-4.x.
--
Ticket URL: <https://trac.macports.org/ticket/66302#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list