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?

https://ports.macports.org/port/mozjs68/builds/

Change History (4)

comment:1 Changed 3 years ago by evanmiller (Evan Miller)

comment:2 in reply to:  1 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:

https://hg.mozilla.org/mozilla-central/rev/d3c959c0b75a

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: assignedclosed

In 18c6c883ed6e1e4881717156df2141c1b772d57d/macports-ports (master):

mozjs68: remove arm64 from supported_archs

Closes: #64755

Note: See TracTickets for help on using tickets.