[MacPorts] #69892: python312 fails to build on G3: Python: incompatible cpu-subtype
MacPorts
noreply at macports.org
Sun May 19 12:22:35 UTC 2024
#69892: python312 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 miles-martin-66):
I'm glad I found this ticket. I just ran into this issue and tried your
workaround on my aging iMac G3 PPC, 1GB Ram and can confirm that it works
and that python312 builds and installs.
1)
{{{
sudo port clean python312
vi `port file python312`
}}}
2) Added the suggested code block just below the check for "darwin" so
that the port file looks like this:
{{{
if {${os.platform} eq "darwin" && ${os.major} <= 10} {
# work around no copyfile and/or pthread_threadid_np on older systems
patchfiles-append patch-no-copyfile-on-Tiger.diff \
patch-threadid-older-systems.diff
}
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
}
}}}
One observation, I see these warnings when building and installing both
python311 and python311.
Warning: Configuration logfiles contain indications of -Wimplicit-
function-declaration; check that features were not accidentally disabled:
lchflags: found in Python-3.12.3/config.log
dbm_open: found in Python-3.12.3/config.log
getrandom: found in Python-3.12.3/config.log
le64toh: found in Python-3.12.3/config.log
--
Ticket URL: <https://trac.macports.org/ticket/69892#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list