Closed Bug 1738114 Opened 3 years ago Closed 3 years ago

GeckoView build on MacOS is busted

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr78 unaffected, firefox-esr91 unaffected, firefox93 unaffected, firefox94 unaffected, firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox93 --- unaffected
firefox94 --- unaffected
firefox95 --- fixed

People

(Reporter: agi, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

 0:10.65 configure: error: compiler is incompatible with sanitize options
 0:10.65 DEBUG: <truncated - see config.log for full output>
 0:10.65 DEBUG: configure:1370: checking for /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/bin/x86_64-linux-android-as
 0:10.66 DEBUG: configure:1405: checking for /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/bin/x86_64-linux-android-lipo
 0:10.66 DEBUG: configure:1440: checking for /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/bin/x86_64-linux-android-strip
 0:10.66 DEBUG: configure:1475: checking for /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/bin/x86_64-linux-android-otool
 0:10.66 DEBUG: configure:1510: checking for /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/bin/x86_64-linux-android-install_name_tool
 0:10.66 DEBUG: configure:1545: checking for /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/bin/x86_64-linux-android-objcopy
 0:10.66 DEBUG: configure:2907: /Users/asferro/.mozbuild/clang/bin/clang -std=gnu99 --target=x86_64-linux-android -o conftest -fno-short-enums -fno-exceptions  -Qunused-arguments -isystem /Users/asferro/.mozbuild/android-ndk-r21d/sysroot/usr/include/x86_64-linux-android -isystem /Users/asferro/.mozbuild/android-ndk-r21d/sysroot/usr/include -gcc-toolchain /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 -D__ANDROID_API__=21  -L/Users/asferro/.mozbuild/android-ndk-r21d/platforms/android-21/arch-x86_64/usr/lib -Wl,-rpath-link=/Users/asferro/.mozbuild/android-ndk-r21d/platforms/android-21/arch-x86_64/usr/lib --sysroot=/Users/asferro/.mozbuild/android-ndk-r21d/platforms/android-21/arch-x86_64 -gcc-toolchain /Users/asferro/.mozbuild/android-ndk-r21d/toolchains/x86_64-4.9/prebuilt/darwin-x86_64  -fuse-ld=lld conftest.c  1>&5
 0:10.66 DEBUG: ld.lld: error: cannot open /Users/asferro/.mozbuild/clang/lib/clang/13.0.0/lib/linux/libclang_rt.builtins-x86_64-android.a: No such file or directory
 0:10.66 DEBUG: ld.lld: error: unable to find library -l:libunwind.a
 0:10.66 DEBUG: ld.lld: error: cannot open /Users/asferro/.mozbuild/clang/lib/clang/13.0.0/lib/linux/libclang_rt.builtins-x86_64-android.a: No such file or directory
 0:10.66 DEBUG: ld.lld: error: unable to find library -l:libunwind.a
 0:10.66 DEBUG: clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
 0:10.66 DEBUG: configure: failed program was:
 0:10.66 DEBUG: #line 2900 "configure"
 0:10.66 DEBUG: #include "confdefs.h"
 0:10.66 DEBUG:
 0:10.66 DEBUG: int main() {
 0:10.66 DEBUG:
 0:10.66 DEBUG: ; return 0; }
 0:10.66 DEBUG: configure: error: compiler is incompatible with sanitize options
 0:10.66 ERROR: old-configure failed

This is my mozconfig

ac_add_options --enable-application=mobile/android
ac_add_options --target=x86_64

# Debug
ac_add_options --enable-debug

mk_add_options MOZ_OBJDIR=./objdir-debug
ac_add_options --with-macos-sdk=/Users/asferro/workspace/MacOSX-SDKs/MacOSX11.1.sdk

Not sure why it's looking for the sanitizers, given that I don't have that enabled (and it makes sense it's failing, sanitizers are not supported when building on MacOS)

I see clang-13, are you using packages from apt.llvm.org?

Nope, whatever comes from ./mach bootstrap.

git bisect points to Bug 1731582.

09916f9205c498db7063b884cb005be74fea8fb8 is the first bad commit
commit 09916f9205c498db7063b884cb005be74fea8fb8
Author: Andi-Bogdan Postelnicu <andi@mozilla.com>
Date:   Tue Oct 19 08:00:30 2021 +0000

    Bug 1731582 - Move to clang-13 r=firefox-build-system-reviewers,mhentges
    
    Join work with glandium.
    
    Differential Revision: https://phabricator.services.mozilla.com/D126208
Regressions: clang-13
Regressed by: clang-13
No longer regressions: clang-13
Has Regression Range: --- → yes

andi, glandium can you please take a look?

Flags: needinfo?(mh+mozilla)
Flags: needinfo?(bpostelnicu)

It's applied to the linux and android ones, and is necessary for
cross-compiles from other platforms.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mh+mozilla)
Flags: needinfo?(bpostelnicu)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/cf3386b16fa3 Apply the revert-ga478b0a199f4 patch to mac and windows clang builds. r=firefox-build-system-reviewers,andi

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

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: