[Bug 279140] firefox-126.0_2,2 fails to build - ld.lld error
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279140 --- Comment #4 from makot...@pm.me --- (In reply to Olivier Certner from comment #3) Thanks for your answer. I was looking for this file, but I couldn't find it anywhere. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 279140] firefox-126.0_2,2 fails to build - ld.lld error
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279140 --- Comment #3 from Olivier Certner --- (In reply to makoto90 from comment #2) >From the root of the ports tree, it is at 'Mk/bsd.gecko.mk'. Just substitute 'llvm:17' by 'llvm:18' there. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 279140] firefox-126.0_2,2 fails to build - ld.lld error
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279140 --- Comment #2 from makot...@pm.me --- (In reply to Olivier Certner from comment #1) Hi. Yes, I enabled the LTO flag. Where is located bsd.gecko.mk? Thanks for your help. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 279140] firefox-126.0_2,2 fails to build - ld.lld error
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279140 Olivier Certner changed: What|Removed |Added CC||o...@freebsd.org --- Comment #1 from Olivier Certner --- I had the same problem. You are compiling Firefox with option LTO, which has been broken since Rust's last update. The new Rust indeed relies on LLVM 18, which apparently produces LTO output unrecognized by LLVM 17. Two possible workarounds: - Either disable LTO and rebuild. - Or keep LTO, and alter bsd.gecko.mk so that LLVM 18 is used. I'm writing this from a Firefox recently built with the second alternative. -- You are receiving this mail because: You are the assignee for the bug.
maintainer-feedback requested: [Bug 279140] firefox-126.0_2,2 fails to build - ld.lld error
Bugzilla Automation has asked freebsd-gecko (Nobody) for maintainer-feedback: Bug 279140: firefox-126.0_2,2 fails to build - ld.lld error https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279140 --- Description --- In Freebsd 14.0-p6, poudriere fails to build firefox-126.0_2,2. Log: ld.lld: warning: Linking two modules of different data layouts: '/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build/../../../tool s/profiler/Unified_cpp_tools_profiler0.o' is 'e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128' whereas '/wrkdirs/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release/libg krust.a(gecko_profiler-2cbfbde1e8f07db6.gecko_profiler.c060a87e5129ab9e-cgu0.r cgu.o at 150992188)' is 'e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S12 8' ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/rules.mk:541: libxul.so] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build' gmake[2]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/recurse.mk:72: toolkit/library/build/target] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build' gmake[1]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/recurse.mk:34: compile] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build' gmake: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/rules.mk:361: all] Error 2 *** Error code 1 Stop. make: stopped in /usr/ports/www/firefox =>> Cleaning up wrkdir ===> Cleaning for firefox-126.0_2,2 build of www/firefox | firefox-126.0_2,2 ended at Sat May 18 16:13:11 -04 2024 build time: 02:01:30 !!! build failure encountered !!!
[Bug 279140] firefox-126.0_2,2 fails to build - ld.lld error
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279140 Bug ID: 279140 Summary: firefox-126.0_2,2 fails to build - ld.lld error Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ge...@freebsd.org Reporter: makot...@pm.me Flags: maintainer-feedback?(ge...@freebsd.org) Assignee: ge...@freebsd.org In Freebsd 14.0-p6, poudriere fails to build firefox-126.0_2,2. Log: ld.lld: warning: Linking two modules of different data layouts: '/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build/../../../tools/profiler/Unified_cpp_tools_profiler0.o' is 'e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128' whereas '/wrkdirs/usr/ports/www/firefox/work/.build/x86_64-unknown-freebsd/release/libgkrust.a(gecko_profiler-2cbfbde1e8f07db6.gecko_profiler.c060a87e5129ab9e-cgu.0.rcgu.o at 150992188)' is 'e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128' ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: Invalid record (Producer: 'LLVM18.1.2-rust-1.78.0-stable' Reader: 'LLVM 17.0.6') ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/rules.mk:541: libxul.so] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build/toolkit/library/build' gmake[2]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/recurse.mk:72: toolkit/library/build/target] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build' gmake[1]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/recurse.mk:34: compile] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build' gmake: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-126.0/config/rules.mk:361: all] Error 2 *** Error code 1 Stop. make: stopped in /usr/ports/www/firefox =>> Cleaning up wrkdir ===> Cleaning for firefox-126.0_2,2 build of www/firefox | firefox-126.0_2,2 ended at Sat May 18 16:13:11 -04 2024 build time: 02:01:30 !!! build failure encountered !!! -- You are receiving this mail because: You are the assignee for the bug.