Firefox build fails #222

Open
opened 2023-12-17 13:41:24 +01:00 by BS86 · 9 comments

I tried building Firefox on my own (with v4 and -03 optimized build) but it failed, too. It always got killed by OOM in the link phase (ld-lld using crazy amounts of RAM - 32GB are not enough)
Applying the "fix" from here lead to a working build:
https://bbs.archlinux.org/viewtopic.php?id=290946

Change:
ac_add_options --enable-lto=cross,full
to
ac_add_options --enable-lto=cross

not sure if that is also the case and fix for the build fails here

I tried building Firefox on my own (with v4 and -03 optimized build) but it failed, too. It always got killed by OOM in the link phase (`ld-lld` using crazy amounts of RAM - 32GB are not enough) Applying the "fix" from here lead to a working build: https://bbs.archlinux.org/viewtopic.php?id=290946 Change: `ac_add_options --enable-lto=cross,full` to `ac_add_options --enable-lto=cross` not sure if that is also the case and fix for the build fails here
Owner

I am pretty certain our ff build is not oom reaped. It takes about 56gig to build currently, and we have that available.

I am pretty certain our ff build is not oom reaped. It takes about 56gig to build currently, and we have that available.
anonfunc added the
build-failure
label 2023-12-19 00:18:19 +01:00
Owner

Upstream llvm issue: https://github.com/llvm/llvm-project/issues/68929

Seems like the fix already made it to main, but is not released yet.

Upstream `llvm` issue: https://github.com/llvm/llvm-project/issues/68929 Seems like the fix already made it to main, but is not released yet.
anonfunc added the
blocked upstream
label 2023-12-20 05:04:15 +01:00
Author

might be a long wait then - seeing how Arch waits about half a year until releasing new clang/llvm versions - but on the other hand, that might also make it possible that the fix itself makes it into the next version that is released on Arch (if it is included in another 17.x release - if it is only released with 18.x, we won't see it for another year at least xD)

might be a long wait then - seeing how Arch waits about half a year until releasing new clang/llvm versions - but on the other hand, that might also make it possible that the fix itself makes it into the next version that is released on Arch (if it is included in another 17.x release - if it is only released with 18.x, we won't see it for another year at least xD)
Author

well, llvm/clang 18 is already in RC state and Arch didn't even roll out llvm/clang 17 yet xD
let's see when this is fixed and coming to Arch ...

well, llvm/clang 18 is already in RC state and Arch didn't even roll out llvm/clang 17 yet xD let's see when this is fixed and coming to Arch ...
Owner

And it seems we run into the next llvm bug with the new version. 🫥

Guess it will be fixed with llvm 19.

And it seems we run into the [next llvm bug](https://github.com/llvm/llvm-project/issues/87894) with the new version. 🫥 Guess it will be fixed with llvm 19.
Author

at least Arch also sees the problem of their ultra late llvm/clang updates:
https://gitlab.archlinux.org/archlinux/packaging/packages/llvm/-/issues/3

at least Arch also sees the problem of their ultra late llvm/clang updates: https://gitlab.archlinux.org/archlinux/packaging/packages/llvm/-/issues/3
Author

@anonfunc llvm/clang 19 seems to finally fix the firefox build, at least I could now build it in a clean chroot with v4 optimizations.

@anonfunc llvm/clang 19 seems to finally fix the firefox build, at least I could now build it in a clean chroot with v4 optimizations.
Owner

@BS86 I'll trigger the rebuilds.

@BS86 I'll trigger the rebuilds.
Author

sorry false alarm. Just realized that something undid my changes to the build scripts in /usr/share/devtools/makepkg.conf.d without generating pacnew's or pacsave's -.-

With v4 optimizations it still fails, this time with:

12:01.19    Compiling glean v62.0.0
12:01.24 warning: Unified_cpp_gfx_thebes1.cpp: function control flow change detected (hash mismatch) _ZN17gfxGraphiteShaper8ShutdownEv Hash = 742261418966908927 up to 10 count discarded [-Wbackend-plugin]
12:01.88    Compiling minidump-analyzer v0.1.0 (/build/firefox/src/firefox-134.0/toolkit/crashreporter/minidump-analyzer)
12:02.86 1 warning generated.
12:03.14    Compiling mozilla-central-workspace-hack v0.1.0 (/build/firefox/src/firefox-134.0/build/workspace-hack)
12:44.88     Finished `release` profile [optimized] target(s) in 1m 04s
12:45.10 toolkit/crashreporter/client/app/crashreporter
12:45.11 make[2]: *** [/build/firefox/src/firefox-134.0/config/recurse.mk:34: compile] Error 2
12:45.11 make[1]: *** [/build/firefox/src/firefox-134.0/config/rules.mk:359: default] Error 2
12:45.11 make: *** [client.mk:60: build] Error 2
12:45.21 W 150 compiler warnings present.
 Config object not found by mach.
sorry false alarm. Just realized that something undid my changes to the build scripts in /usr/share/devtools/makepkg.conf.d without generating pacnew's or pacsave's -.- With v4 optimizations it still fails, this time with: ``` 12:01.19 Compiling glean v62.0.0 12:01.24 warning: Unified_cpp_gfx_thebes1.cpp: function control flow change detected (hash mismatch) _ZN17gfxGraphiteShaper8ShutdownEv Hash = 742261418966908927 up to 10 count discarded [-Wbackend-plugin] 12:01.88 Compiling minidump-analyzer v0.1.0 (/build/firefox/src/firefox-134.0/toolkit/crashreporter/minidump-analyzer) 12:02.86 1 warning generated. 12:03.14 Compiling mozilla-central-workspace-hack v0.1.0 (/build/firefox/src/firefox-134.0/build/workspace-hack) 12:44.88 Finished `release` profile [optimized] target(s) in 1m 04s 12:45.10 toolkit/crashreporter/client/app/crashreporter 12:45.11 make[2]: *** [/build/firefox/src/firefox-134.0/config/recurse.mk:34: compile] Error 2 12:45.11 make[1]: *** [/build/firefox/src/firefox-134.0/config/rules.mk:359: default] Error 2 12:45.11 make: *** [client.mk:60: build] Error 2 12:45.21 W 150 compiler warnings present. Config object not found by mach. ```
Sign in to join this conversation.
No description provided.