[MacPorts] #63488: meson @0.59.1_1: not sorting out the proper build arch again on systems with 32 bit kernels
MacPorts
noreply at macports.org
Tue Sep 14 19:50:14 UTC 2021
#63488: meson @0.59.1_1: not sorting out the proper build arch again on systems
with 32 bit kernels
--------------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: lion
Port: dav1d meson |
--------------------------+--------------------
Comment (by kencu):
Our previous workaround method, still in the port, does not appear to be
working any longer.
We seem to be hitting the exception, and our subprocess.run is not
completing successfully.
{{{
def detect_osx_arch() -> str:
"""
per #6187, handle early Mac 64-bit Intel CPU with 64-bit OSX using a
**32-bit kernel**
testing this requires old MacOS and hardware, not easily available for
cloud CI,
so users needing this functionality may kindly need to help with
debugging info.
"""
try:
ret = subprocess.run(['sysctl', '-n', 'hw.cpu64bit_capable'],
universal_newlines=True,
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL).stdout
trial = 'x86_64' if ret.strip() == '1' else 'x86'
except Exception:
+ print("We hit the exception!")
# very old MacOS version with implicit 32-bit CPU due to calling
if-elif stack
trial = 'x86'
return trial
}}}
{{{
Project version: 0.9.2
C compiler for the host machine: ccache /opt/local/bin/clang-mp-9.0 (clang
9.0.1 "clang version 9.0.1 ")
C linker for the host machine: /opt/local/bin/clang-mp-9.0 ld64 127.2
We hit the exception!
We hit the exception!
We hit the exception!
Host machine cpu family: x86
Host machine cpu: i386
Run-time dependency threads found: YES
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63488#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list