Both firefox and thunderbird fail to build here. First I thought it is related to #838373 but the build logs do not contain the error, actually they don't contain any useful error message at all. At least I did not see any. I already tried disabling cchache, reduced makeopts as well as explicitly specifying march for my cpu without success. Any clue what is failing or how to make the build more verbose to find the reason for the failure? emerge -pv firefox thunderbird These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild U ] www-client/firefox-91.10.0:esr::gentoo [91.9.1:esr::gentoo] USE="clang dbus gmp-autoupdate openh264 system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -pulseaudio -screencast (-selinux) -sndio -system-png -wayland -wifi" L10N="de -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" 0 KiB [ebuild R ] mail-client/thunderbird-91.10.0::gentoo USE="clang dbus openh264 system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -eme-free -hardened -hwaccel -jack -lto (-pgo) -pulseaudio (-selinux) -sndio -system-png -wayland -wifi" L10N="de -af -ar -ast -be -bg -br -ca -cak -cs -cy -da -dsb -el -en-CA -en-GB -es-AR -es-ES -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -id -is -it -ja -ka -kab -kk -ko -lt -lv -ms -nb -nl -nn -pa -pl -pt-BR -pt-PT -rm -ro -ru -sk -sl -sq -sr -sv -th -tr -uk -uz -vi -zh-CN -zh-TW" 0 KiB Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 0 KiB
Created attachment 787418 [details] Thunderbird build log
Created attachment 787421 [details] Firefox build log
Created attachment 787424 [details] emerge info
Can you show: emerge -pv --nodeps clang libcxx Clang-14 (or llvm-14) somehow broke libcxx and this looks like that issue again. You may have luck by modifying this patch to be -p1 compliant and placing it in /etc/portage/patches: https://cgit.freebsd.org/ports/tree/www/firefox-esr/files/patch-memory_mozalloc_throw__gcc.h (or just take a working one from firefox-101's patch set) I guess some recent stabilization hit ESR users with this error, as it's fixed in ~unstable firefox. To find errors from Mozilla's mach build system, search for "Error 1" and "Error 2". Match case when searching. I'll probably add this patch for a new ESR that's coming in 3 days.
Thanks for getting back to me so quickly. I tested the patch and now both firefox and thunderbird build fine. emerge -pv --nodeps clang libcxx These are the packages that would be merged, in order: [ebuild R ] sys-devel/clang-14.0.4:14::gentoo USE="default-compiler-rt default-libcxx default-lld llvm-libunwind (pie) static-analyzer xml -debug -doc -test" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB [ebuild R ] sys-libs/libcxx-14.0.4::gentoo USE="(libcxxabi) libunwind -static-libs -test" ABI_X86="32 (64) (-x32)" 0 KiB Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB
Maybe I'll leave this open until it's fixed in stable too.
Probably LLVM 14 stabilisation that has caused it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e50b6ea13f0cda61c47c5f2462c3a45d9dfb7f10 commit e50b6ea13f0cda61c47c5f2462c3a45d9dfb7f10 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-06-26 12:46:04 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-06-26 12:46:04 +0000 mail-client/thunderbird: update patchset to fix libcxx compat Closes: https://bugs.gentoo.org/854132 Signed-off-by: Joonas Niilola <juippis@gentoo.org> mail-client/thunderbird/Manifest | 2 +- mail-client/thunderbird/thunderbird-91.10.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aba42710bd5176e6777e20c7fa0fcc72e96cbd05 commit aba42710bd5176e6777e20c7fa0fcc72e96cbd05 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2022-06-26 12:45:41 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-06-26 12:45:41 +0000 www-client/firefox: update patchset to fix libcxx compat Bug: https://bugs.gentoo.org/854132 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-client/firefox/Manifest | 2 +- www-client/firefox/firefox-91.10.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Created attachment 813892 [details] build log for firefox-102.3.0 I am getting the same errors for www-client/firefox-102.3.0 now. For 91.10.0 grep "Error 1" www-client\:firefox-91.10.0\:20220623-194226.log 0:40.65 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: Unified_cpp_accessible_basetypes0.o] Error 1 0:44.76 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:675: ApplicationAccessibleWrap.o] Error 1 0:45.22 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: Unified_cpp_accessible_aom0.o] Error 1 0:46.23 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: DocAccessibleChild.o] Error 1 0:47.06 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:675: AccessibleWrap.o] Error 1 0:48.49 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: Unified_cpp_accessible_html0.o] Error 1 0:51.09 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: Unified_cpp_accessible_base0.o] Error 1 0:51.43 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: Unified_cpp_accessible_generic0.o] Error 1 0:54.66 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: RemoteAccessible.o] Error 1 0:59.18 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:676: Unified_cpp_accessible_base1.o] Error 1 grep "Error 2" /home/billie/Desktop/www-client\:firefox-91.10.0\:20220623-194226.log 0:40.65 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/basetypes/target-objects] Error 2 0:45.22 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/aom/target-objects] Error 2 0:47.06 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/atk/target-objects] Error 2 0:48.49 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/html/target-objects] Error 2 0:51.43 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/generic/target-objects] Error 2 0:54.66 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/ipc/other/target-objects] Error 2 0:59.18 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:72: accessible/base/target-objects] Error 2 8:30.14 gmake[2]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/recurse.mk:34: compile] Error 2 8:30.14 gmake[1]: *** [/var/portage/tmp/portage/www-client/firefox-91.10.0/work/firefox-91.10.0/config/rules.mk:355: default] Error 2 8:30.14 gmake: *** [client.mk:65: build] Error 2 For 102.3.0 grep -r "Error 1" /var/log/portage/www-client:firefox-102.3.0:20220922-191222.log 0:39.82 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_accessible_basetypes0.o] Error 1 0:41.37 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_ipc_extension_other0.o] Error 1 0:41.99 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_accessible_aom0.o] Error 1 0:44.84 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:668: AccessibleWrap.o] Error 1 0:46.29 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_accessible_html0.o] Error 1 0:46.32 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:668: AtkSocketAccessible.o] Error 1 0:46.42 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:668: ApplicationAccessibleWrap.o] Error 1 0:49.94 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_accessible_base0.o] Error 1 0:51.73 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_accessible_generic0.o] Error 1 0:56.22 gmake[4]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:669: Unified_cpp_accessible_base1.o] Error 1 grep -r "Error 2" /var/log/portage/www-client:firefox-102.3.0:20220922-191222.log 0:39.83 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/basetypes/target-objects] Error 2 0:41.37 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/ipc/extension/other/target-objects] Error 2 0:41.99 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/aom/target-objects] Error 2 0:46.29 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/html/target-objects] Error 2 0:46.43 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/atk/target-objects] Error 2 0:51.73 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/generic/target-objects] Error 2 0:56.22 gmake[3]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:72: accessible/base/target-objects] Error 2 11:29.82 gmake[2]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/recurse.mk:34: compile] Error 2 11:29.82 gmake[1]: *** [/var/portage/tmp/portage/www-client/firefox-102.3.0/work/firefox-102.3.0/config/rules.mk:361: default] Error 2 11:29.82 gmake: *** [client.mk:63: build] Error 2
If you take the patch that fixed it for 91, https://dev.gentoo.org/~juippis/mozilla/patchsets/0035-bmo-1754469-memory_mozalloc_throw.patch and apply it via /etc/portage/patches for example (make sure it's applied), does it work? PS I have no idea whether it'll apply for 102esr but thumbs up!
(In reply to Joonas Niilola from comment #10) > If you take the patch that fixed it for 91, > https://dev.gentoo.org/~juippis/mozilla/patchsets/0035-bmo-1754469- > memory_mozalloc_throw.patch > and apply it via /etc/portage/patches for example (make sure it's applied), > does it work? PS I have no idea whether it'll apply for 102esr but thumbs up! The patch applied clean and the build succeeded. Thanks!
Thanks for confirming. I'll add the patch (along with a ppc64 patch) to a new patchset and update 102esr, need to run tests on stable amd64 first to see that nothing breaks.