Closed Bug 1875743 Opened 1 year ago Closed 1 year ago

macos sonoma with latest xcode nightly build successfully while release won't with Failed to find an adequate linker error

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1844694

People

(Reporter: j03ll0b0, Unassigned)

Details

Attachments

(1 file)

Attached file result.txt

Steps to reproduce:

followed the instructions to build firefox in macos.

Actual results:

Nightly built successfully but Release didn't.

Expected results:

Release should have been built.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System

0:01.65 checking for the target C++ compiler... /usr/bin/clang++
0:29.64 checking whether the target C++ compiler can be used... yes

Looks like you've skipped a bunch of lines from the output, can you attach the full output?

Flags: needinfo?(j03ll0b0)

(as a workaround, you can create a mozconfig file containing ac_add_options --enable-bootstrap)

I have the same issue since several month. I've tried to build Firefox/Thunderbird release or beta. But it always stops with the same error. My workaround was to switch to builds from mozilla-central, because this works. Now that version 123 is in beta (which worked in mozilla-central) I switched back to mozilla-beta builds. But it fails with the same error again. I don't understand this, Firefox 123 was building perfectly on mozilla-central, why does it fail now on mozilla-beta? The workaround by adding ac_add_options --enable-bootstrap to the mozconfig works.

It is on Sonoma 14.3, Xcode 15.2, rustc and other dependencies are up to date, I even did mach bootstrap again. The error is:

0:00.98 W Clobber not needed.
Config object not found by mach.
0:01.26 Using Python 3.10.5 from /Users/Nomis101/.mozbuild/srcdirs/mozilla-beta-99d6c37d1af2/_virtualenvs/build/bin/python
0:01.26 Adding configure options from /Volumes/Developer/mozilla-beta/mozconfig
0:01.26 --enable-project=browser
0:01.26 --with-macos-sdk=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
0:01.26 --enable-macos-target=14.00
0:01.26 --enable-optimize
0:01.26 --enable-official-branding
0:01.26 --enable-rust-simd
0:01.26 --enable-js-shell
0:01.26 --enable-av1
0:01.26 --disable-debug
0:01.26 --disable-tests
0:01.26 --disable-install-strip
0:01.26 --disable-warnings-as-errors
0:01.26 --disable-jemalloc
0:01.26 --disable-nodejs
0:01.27 --without-wasm-sandboxed-libraries
0:01.27 --with-l10n-base=/Volumes/Developer/mozilla-beta/l10n-central
0:01.27 BUILD_OPT=1
0:01.27 HOST_LDFLAGS=-g
0:01.27 MOZ_REQUIRE_ADDON_SIGNING=0
0:01.27 MOZ_MAKE_FLAGS=-j16
0:01.27 AUTOCONF=autoconf213
0:01.27 AUTOCLOBBER=1
0:01.27 MOZ_REQUIRE_SIGNING=
0:01.27 MOZILLA_OFFICIAL=1
0:01.27 HOST_CXXFLAGS=-g
0:01.27 MOZ_DEBUG_SYMBOLS=1
0:01.27 MOZ_PACKAGE_JSSHELL=1
0:01.27 HOST_CFLAGS=-g
0:01.27 DARWIN_VERSION=23.3.0
0:01.27 SDK_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
0:01.27 CONCURRENCY=16
0:01.27 checking for vcs source checkout... hg
0:01.29 checking for a shell... /bin/sh
0:01.54 checking for host system type... x86_64-apple-darwin23.3.0
0:01.54 checking for target system type... x86_64-apple-darwin23.3.0
0:01.81 checking whether cross compiling... no
0:01.92 checking for Python 3... /Users/Nomis101/.mozbuild/srcdirs/mozilla-beta-99d6c37d1af2/_virtualenvs/build/bin/python (3.10.5)
0:01.92 checking for hg... /Library/Frameworks/Python.framework/Versions/3.10/bin/hg
0:02.11 checking for Mercurial version... 6.1.1
0:02.40 checking for sparse checkout... no
0:02.40 checking for wget... /usr/local/bin/wget
0:02.41 checking for ccache... not found
0:02.41 Using target sysroot in /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
0:02.42 Using host sysroot in /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
0:02.42 checking for the target C compiler... /usr/bin/clang
0:02.61 checking whether the target C compiler can be used... yes
0:02.62 checking the target C compiler version... 14.0.0.or.more
0:02.69 checking the target C compiler works... yes
0:02.69 checking for the target C++ compiler... /usr/bin/clang++
0:02.89 checking whether the target C++ compiler can be used... yes
0:02.89 checking the target C++ compiler version... 14.0.0.or.more
0:02.97 checking the target C++ compiler works... yes
0:02.98 checking for the host C compiler... /usr/bin/clang
0:02.98 checking whether the host C compiler can be used... yes
0:02.98 checking the host C compiler version... 14.0.0.or.more
0:02.98 checking the host C compiler works... yes
0:02.98 checking for the host C++ compiler... /usr/bin/clang++
0:02.98 checking whether the host C++ compiler can be used... yes
0:02.98 checking the host C++ compiler version... 14.0.0.or.more
0:02.98 checking the host C++ compiler works... yes
0:03.05 checking for target linker...
0:03.05 DEBUG: Executing: /usr/bin/clang -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=14.00 -std=gnu99 -Wl,--version
0:03.05 ERROR: Failed to find an adequate linker
*** Fix above errors and then restart with "./mach build"

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1844694
Resolution: --- → DUPLICATE
Flags: needinfo?(j03ll0b0)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: