[MacPorts] #66723: pcre2 @10.42: no such instruction: `lzcnt %eax, %eax'

MacPorts noreply at macports.org
Fri May 19 04:32:52 UTC 2023


#66723: pcre2 @10.42: no such instruction: `lzcnt %eax, %eax'
---------------------+---------------------
  Reporter:  kencu   |      Owner:  larryv
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:  fixed   |   Keywords:  leopard
      Port:  pcre2   |
---------------------+---------------------

Comment (by kencu):

 The build system of gcc supports any combination of build, host, and
 target. So it can be done. But getting the build right is a bit tricky,
 and the meaning of universal is a bit more involved than what MacPorts
 defaults to mean.

 Take for example a true universal build of gcc for Intel and Arm on
 Ventura.

 You would have to build gcc four times (host/target as Intel/Intel,
 Intel/arm, arm/Intel, arm/arm), and lipo them all together. Then you have
 a universal gcc that can build either arch on either machine. (All four
 builds can be done on either an Intel or Arm Mac.)

 Right now our build is (host/target Intel/Intel, arm/arm) and so we wind
 up with a universal gcc version that has Intel code that outputs Intel
 binaries and arm code that outputs arm binaries. It's close to what we
 need, and it is what MacPorts means by "universal" only partially. It can
 build universal binaries only on some systems by using rosetta.

 (I'll leave the Intel and powerpc subtypes to a separate thought, but the
 multilib feature thankfully makes that easier.)

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


More information about the macports-tickets mailing list