[MacPorts] #69892: python312 reportedly fails to build on G3: Python: incompatible cpu-subtype

MacPorts noreply at macports.org
Fri May 3 14:24:57 UTC 2024


#69892: python312 reportedly fails to build on G3: Python: incompatible cpu-subtype
---------------------------+----------------------
  Reporter:  barracuda156  |      Owner:  jmroot
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.3
Resolution:                |   Keywords:  tiger
      Port:  python312     |
---------------------------+----------------------

Comment (by kencu):

 If you look at the python311 Portfile, it has this added:


 https://github.com/macports/macports-
 ports/blob/b89544daea33be9f48ea990fa763ddc45b2a11cd/lang/python311/Portfile#L47

 {{{
 if {${configure.build_arch} in "ppc ppc64"} {
     # https://trac.macports.org/ticket/66483
     configure.ldflags-append -Wl,-read_only_relocs,suppress
     # G3 builds fail without this flag, as converting a static library
     # to dynamic using -all_load inadvertently sets the arch to ppc7400
     configure.ldflags-append -Wl,-force_cpusubtype_ALL
 }
 }}}


 so most likely, that block, probably all of it, but at least the
 {{{force_cpusubtype_ALL}}} part of it, needs to be added to the python312
 Portfile.

 You would open them with this:

 {{{
 sudo port port clean python312
 bbedit `port file python311`
 bbedit `port file python312`
 }}}

 and then copy the block from the python311 Portfile, and add it to the
 python312 Portfile.

 Hopefully that is all that will be needed.

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


More information about the macports-tickets mailing list