Firefox fails to build because of getting confused about the SDK on macOS 10.15
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox-esr102 wontfix, firefox105 wontfix, firefox106 wontfix, firefox107 fixed)
People
(Reporter: jrmuizel, Assigned: glandium)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
After the requirement for using the 11.3 SDK was added I ran into errors when using it with:
ac_add_options --with-macos-sdk=$HOME/.mozbuild/macos-sdk/MacOSX11.3.sdk
Includes like <type_traits> would not be found. I traced this down to clang overriding the specified sdk because of the SDKROOT environment variable being set to /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk by the system python3.
This was fixed by:
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -1176,7 +1176,7 @@ def compiler(
wrapper = list(compiler_wrapper or ())
flags = []
if sysroot.path:
- flags.extend(("--sysroot", sysroot.path))
+ flags.extend(("-isysroot", sysroot.path))
if host_or_target.os == "OSX" and macos_target:
flags.append("-mmacosx-version-min=%s" % macos_target)
if provided_compiler:
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Set release status flags based on info from the regressing bug 1724374
| Assignee | ||
Comment 4•3 years ago
|
||
Comment 6•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/990b01753f77
https://hg.mozilla.org/mozilla-central/rev/6f957308dfcb
Comment 7•3 years ago
|
||
The patch landed in nightly and beta is affected.
:glandium, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox106towontfix.
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•