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

MacPorts noreply at macports.org
Mon Nov 21 01:08:25 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 kencu):

 the gcc10-bootstrap port is as close to a real cross compiler as we have
 for this, but still has a number of faults, and is not really a cross-
 compiler.

 It should be able to build a universal binary arm64-x86/64 if running on
 an M1 system, though, using rosetta.

 It lacks several important features, primary amongst them is a distinct
 universal driver ("driverdriver.c") and the different archs it can build
 currently have to run in the actual arch it is building for, so not
 exactly a cross-compiler, but again, on an M1, should probably work using
 rosetta.

 With some minor tweaking it could become a cross compiler (where the
 compilers  run in the machine's host arch rather than the target arch) but
 that would need more work.

 https://github.com/macports/macports-
 ports/blob/master/lang/gcc10-bootstrap/Portfile

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


More information about the macports-tickets mailing list