Closed Bug 1747228 Opened 2 years ago Closed 2 years ago

Perma OS X Cross Compiled build bustages gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:417: ../../dist/bin/firefox] Error 1 | after Undefined symbols for architecture x86_64 / ld: symbol(s) not found for architecture x86_64

Categories

(Firefox Build System :: General, defect, P5)

defect

Tracking

(firefox-esr91 unaffected, firefox95 unaffected, firefox96 unaffected, firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox95 --- unaffected
firefox96 --- unaffected
firefox97 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(2 files)

Filed by: imoraru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=362104213&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/HSf-qAt9TbO8OZKmls7cOQ/runs/0/artifacts/public/logs/live_backing.log


[task 2021-12-22T09:56:53.734Z] 09:56:53     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/browser/app'
[task 2021-12-22T09:56:53.734Z] 09:56:53     INFO -  browser/app/firefox
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  /builds/worker/fetches/clang/bin/clang++ --sysroot /builds/worker/fetches/MacOSX10.12.sdk -mmacosx-version-min=10.12 -stdlib=libc++ -std=gnu++17 --target=x86_64-apple-darwin -o ../../dist/bin/firefox -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Qunused-arguments -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat -Wcomma -Wenum-compare-conditional -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=backend-plugin -Wno-error=free-nonheap-object -Wno-error=return-std-move -Wno-error=atomic-alignment -Wno-error=deprecated-copy -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-psabi -Wno-unknown-warning-option -fno-sized-deallocation -fno-aligned-new -fcrash-diagnostics-dir=/builds/worker/artifacts -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g1 -Xclang -load -Xclang /builds/worker/workspace/obj-build/build/clang-plugin/libclang-plugin.so -Xclang -add-plugin -Xclang moz-check -O3 -fno-omit-frame-pointer -funwind-tables  -Wl,-filelist,/builds/worker/workspace/obj-build/browser/app/firefox.list    -coverage -L/builds/worker/fetches/clang/lib/clang/13.0.0/lib/darwin -fstack-protector-strong -Wl,-dead_strip   -pie ../../mozglue/build/libmozglue.dylib -lclang_rt.profile_osx
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  Undefined symbols for architecture x86_64:
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -    "_CFBundleGetMainBundle", referenced from:
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -        __ZN7mozilla10BinaryPath3GetEPc in nsBrowserApp.o
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -    "_CFBundleCopyExecutableURL", referenced from:
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -        __ZN7mozilla10BinaryPath3GetEPc in nsBrowserApp.o
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -    "_CFURLGetFileSystemRepresentation", referenced from:
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -        __ZN7mozilla10BinaryPath3GetEPc in nsBrowserApp.o
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -    "_CFRelease", referenced from:
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -        __ZN7mozilla10BinaryPath3GetEPc in nsBrowserApp.o
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  ld: symbol(s) not found for architecture x86_64
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
[task 2021-12-22T09:56:53.735Z] 09:56:53    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:417: ../../dist/bin/firefox] Error 1
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/browser/app'
[task 2021-12-22T09:56:53.735Z] 09:56:53    ERROR -  gmake[3]: *** [/builds/worker/checkouts/gecko/config/recurse.mk:72: browser/app/target] Error 2
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  gmake[3]: *** Waiting for unfinished jobs....
[task 2021-12-22T09:56:53.735Z] 09:56:53     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/js/src/jsapi-tests'

Hi Sylvestre! Can you please take a look at this?
Thank you!

Flags: needinfo?(sledru)

I see other build system changes
https://treeherder.mozilla.org/jobs?repo=mozilla-central&revision=78c7b6de318745c97e1861588ed28e2c118d7710

I think it is likely coming from elsewhere

Flags: needinfo?(sledru) → needinfo?(mh+mozilla)

More likely that this one :)

Flags: needinfo?(mh+mozilla)
Regressed by: 1029974
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Regressed by: 1747160
No longer regressed by: 1029974
Has Regression Range: --- → yes
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/1b9fd4030034
Fix OSX bustage on builds with sandbox disabled. r=firefox-build-system-reviewers,mhentges

In optimized builds, it's stripped out at link time, because it's been
unused since bug 1505445 moved the sandbox initialization into libxul.
But in non-optimized builds, it's not, and that pulls in CoreFoundation
symbols, but we're not linking plugin-container against CoreFoundation
(we do link firefox to it for other uses).

This wasn't a problem before bug 1747160 because we were linking
everything against CoreFoundation (indirectly).

Keywords: leave-open

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

Keywords: leave-open
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/cade4ba8ac7f
Don't link mozsandbox into plugin-container or firefox. r=firefox-build-system-reviewers,andi
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
See Also: → 1827436
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: