Opened 3 years ago
Closed 3 years ago
#64755 closed defect (fixed)
mozjs68: builds failing on ARM; SDK header 'inttypes.h' missing?
Reported by: | mascguy (Christopher Nielsen) | Owned by: | evanmiller (Evan Miller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | arm | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: | mozjs68 |
Description
This port is currently failing to build for ARM, both Big Sur and Monterey, due to an alleged missing header file (inttypes.h
):
ERROR: System inttypes.h not found. Please try running `open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg` and following the instructions to install the necessary headers Command failed: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs68/mozjs68/work/mozjs-68.4.2/js/src/obj" && ../configure --prefix=/opt/local --with-system-nspr --disable-jemalloc --disable-readline --disable-xcode-checks --with-macos-sdk=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
Unfortunately I don't have an ARM-based Mac to test with, in order to verify whether this error is accurate. Perhaps this is a side-effect, related to a different issue in the configure script?
Change History (4)
comment:1 follow-up: 2 Changed 3 years ago by evanmiller (Evan Miller)
comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)
Replying to evanmiller:
Maybe related, not sure: https://bugzilla.mozilla.org/show_bug.cgi?id=1593502
Yep, looks promising! The relevant patch is here:
comment:3 Changed 3 years ago by evanmiller (Evan Miller)
Researching some more, this goes a bit deeper. Getting past the configuration error, parts of the code assume that Darwin is always x86-compatible. So I think we'll need to remove arm64
from supported_archs
, and see if there's a better story with mozjs78
.
comment:4 Changed 3 years ago by evanmiller (Evan Miller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Maybe related, not sure: https://bugzilla.mozilla.org/show_bug.cgi?id=1593502