Closed Bug 1792666 Opened 3 years ago Closed 3 years ago

Firefox fails to build because of getting confused about the SDK on macOS 10.15

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr102 wontfix, firefox105 wontfix, firefox106 wontfix, firefox107 fixed)

RESOLVED FIXED
107 Branch
Tracking Status
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: nobody → mh+mozilla
Regressed by: 1724374
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/990b01753f77 Use -isysroot instead of --sysroot on mac. r=firefox-build-system-reviewers,nalexander

Set release status flags based on info from the regressing bug 1724374

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/6f957308dfcb Add comment that was meant to be added but ended up missing DONTBUILD
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch

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-firefox106 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(mh+mozilla)
Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: