[MacPorts] #66302: gcc12 universal variant has no effect

MacPorts noreply at macports.org
Sun Nov 20 12:12:24 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
 Keywords:  universal arm64 x68_64  |       Port:  gcc12
 Wondering about universal binaries created using gcc, I saw that the gcc12
 port provides a universal variant and according to the Portfile, this
 should allow for x86_64 arm64 when compiled on arm (M1).

 `sudo port install gcc12 +universal` works fine, but after that `gcc-mp-12
 -arch x86_64` still claims the architecture is not supported.  Running
 `port variants  gcc12` says this, which also suggests the variant was not
 applied.  I uninstalled all gcc12 ports and reinstalled the universal
 variant to no avail.

 gcc12 has the variants:
 [+]stdlib_flag: Enable stdlib command line flag to select c++ runtime
    universal: Build for multiple architectures

 Would be great if this works because the performance for the `swi-prolog`
 port is a lot better with `gcc`, notably on `x68_64`.

 Platform: MacOS 12.4 on Macbook Air M1

Ticket URL: <https://trac.macports.org/ticket/66302>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list