Closed Bug 1349228 Opened 7 years ago Closed 3 years ago

remove --with-macos-sdk option as it's no longer needed for cross builds

Categories

(Firefox Build System :: General, enhancement)

All
macOS
enhancement
Not set
normal

Tracking

(firefox55 affected)

RESOLVED WONTFIX
Tracking Status
firefox55 --- affected

People

(Reporter: froydnj, Unassigned)

Details

This option was added for cross-Mac builds, but our cross-Mac configs don't use this option, preferring instead to setup -isysroot in C*FLAGS directly.  I'm guessing this is because --with-macos-sdk doesn't get processed soon enough to apply to some of the compiler checks in moz.configure (?).
Product: Core → Firefox Build System

Following the instructions at:

https://firefox-source-docs.mozilla.org/setup/macos_build.html

I downloaded the 10.12 SDK, copied it to the correct location, and added:

ac_add_options --with-macos-sdk=$HOME/.mozbuild/macos-sdk/MacOSX10.12.sdk

to mozconfig. However, when running ./mach build I got an error saying:

mozbuild.configure.options.InvalidOptionError: --with-macos-sdk is not available in this configuration

I commented out the line from mozconfig and tried again. This time it worked. So... yeah. I don't know where to post a bug about the macOS build instructions, and this is basically the only Bugzilla search result for --with-macos-sdk.

I should clarify: I'm running macOS Big Sur 11.2.1.

mozbuild.configure.options.InvalidOptionError: --with-macos-sdk is not available in this configuration

For this error message to show up, you have to either not be building on or for mac (but comment 2 says the contrary) or be building with --enable-artifact-builds, which doesn't require compilation and thus doesn't require a sdk.

That said, since this bug was filed, thing have changed, and the option is recommended for people who want to point to a specific SDK that is not the one that would be picked otherwise, rather than setting C*FLAGS manually.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX

Thanks for the explanation. I did add --enable-artifact-builds because the build output suggested I do so. I actually created a separate bug regarding this error message in the context of insufficient documentation, which is probably more applicable.

You need to log in before you can comment on or make changes to this bug.