www-client/firefox-130.0 fails to emerge with: <...snip...> 824:42.71 In file included from /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/nsISupportsUtils.h:18, 824:42.71 from /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/nsISupports.h:71, 824:42.71 from /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/Mutex.h:14, 824:42.71 from /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/StaticMutex.h:11, 824:42.71 from /var/tmp/portage/www-client/firefox-130.0/work/firefox-130.0/gfx/layers/ipc/SharedSurfacesParent.h:12, 824:42.72 from /var/tmp/portage/www-client/firefox-130.0/work/firefox-130.0/gfx/layers/ipc/SharedSurfacesParent.cpp:7: 824:42.72 /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/RefPtr.h: In instantiation of 'static void mozilla::RefPtrTraits<U>::Release(U*) [with U = mozill a::layers::TextureSource]': 824:42.72 /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/RefPtr.h:409:69: required from 'static void RefPtr<T>::ConstRemovingRefPtrTraits<U>::Release(U* ) [with U = mozilla::layers::TextureSource; T = mozilla::layers::TextureSource]' 824:42.72 409 | static void Release(U* aPtr) { mozilla::RefPtrTraits<U>::Release(aPtr); } 824:42.72 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ 824:42.73 /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/RefPtr.h:80:44: required from 'RefPtr<T>::~RefPtr() [with T = mozilla::layers::TextureSource]' 824:42.73 80 | ConstRemovingRefPtrTraits<T>::Release(mRawPtr); 824:42.73 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 824:42.73 /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/webrender/RenderTextureHost.h:93:12: required from here 824:42.73 93 | return nullptr; 824:42.73 | ^~~~~~~ 824:42.73 /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/RefPtr.h:49:40: error: invalid use of incomplete type 'class mozilla::layers::TextureSource' 824:42.74 49 | static void Release(U* aPtr) { aPtr->Release(); } 824:42.74 | ~~~~~~^~~~~~~ 824:42.74 In file included from /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/webrender/RenderTextureHostSWGL.h:11, 824:42.74 from /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/webrender/RenderSharedSurfaceTextureHost.h:10, 824:42.74 from /var/tmp/portage/www-client/firefox-130.0/work/firefox-130.0/gfx/layers/ipc/SharedSurfacesParent.cpp:17: 824:42.74 /var/tmp/portage/www-client/firefox-130.0/work/firefox_build/dist/include/mozilla/webrender/RenderTextureHost.h:26:7: note: forward declaration of 'class mozilla::layers::TextureS ource' 824:42.74 26 | class TextureSource; 824:42.75 | ^~~~~~~~~~~~~ <...snip...> Reproducible: Always Steps to Reproduce: # emerge -av firefox These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 13.07 s (backtrack: 0/20). [ebuild U ~] www-client/firefox-130.0:rapid::gentoo [129.0.2:rapid::gentoo] USE="X dbus gmp-autoupdate hwaccel lto openh264 pulseaudio telemetry wayland -clang -debug -eme-free -hardened -jack -jumbo-build -libproxy -pgo (-selinux) -sndio -system-av1 -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-png -system-webp (-valgrind) -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -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 -sc -sco -si -sk -skr -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="18 -17" 0 KiB Total: 1 package (1 upgrade), Size of downloads: 0 KiB ... Actual Results: Tried with both gcc:13 and gcc:14, the result is the same. # emerge --info Portage 3.0.65 (python 3.12.5-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-14, glibc-2.40, 6.10.7-gentoo x86_64) ================================================================= System uname: Linux-6.10.7-gentoo-x86_64-13th_Gen_Intel-R-_Core-TM-_i9-13900-with-glibc2.40 KiB Mem: 131591104 total, 32250544 free KiB Swap: 16777212 total, 16777212 free Timestamp of repository gentoo: Tue, 03 Sep 2024 16:18:56 +0000 Head commit of repository gentoo: c9d532be094f58d09a3a8967ef0c37df4f242f63 sh bash 5.2_p32-r1 ld GNU ld (Gentoo 2.42 p3) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p32-r1::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.30.2::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.1::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.9_p2::gentoo, 3.12.5_p1::gentoo, 3.13.0_rc1_p3::gentoo dev-lang/rust-bin: 1.80.1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54.2::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 18.1.8::gentoo sys-devel/gcc: 13.3.1_p20240614::gentoo, 14.2.1_p20240817::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo sys-devel/llvm: 16.0.6::gentoo, 18.1.8-r4::gentoo sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.40::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False sync-git-verify-commit-signature: yes localrepo location: /var/db/repos/localrepo masters: gentoo priority: 10 volatile: True Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j24" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr elogind encode eselect-ldso exif flac gdbm gif gpm grub2 gtk3 gui hwaccel iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc lvm mad mng mp3 mp4 mpeg multilib ncurses networkmanager numa offensive ogg opencl opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseadio pulseaudio qml qt5 qt6 readline screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg synaptics test-rust tiff truetype udev udisks unicode upower usb vim-syntax vorbis vulkan wayland webengine webp widgets wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias http2 proxy remoteip session auth_digest" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="BPF NVPTX WebAssembly X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="nvidia i915 i965 intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 901994 [details] build.log compressed with xz /var/tmp/portage/www-client/firefox-130.0/temp/build.log of the latest try with: gcc (Gentoo 14.2.1_p20240817 p4) 14.2.1 20240817 Expands to about 29 MB uncompressed.
Hmm, from a quick glance it's probably something to do with the combination of -jumbo-build -system-icu. Can't test right now if I can duplicate.
(In reply to Joonas Niilola from comment #2) > Hmm, from a quick glance it's probably something to do with the combination > of -jumbo-build -system-icu. Can't test right now if I can duplicate. Yes, you're right, re-enabling USE=jumbo-build did it. Emerged successfully (GCC 14) with: # emerge -av firefox These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 5.91 s (backtrack: 0/20). [ebuild R ~] www-client/firefox-130.0:rapid::gentoo USE="X dbus gmp-autoupdate hwaccel jumbo-build lto openh264 pulseaudio telemetry wayland -clang -debug -eme-free -hardened -jack -libproxy -pgo (-selinux) -sndio -system-av1 -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-png -system-webp (-valgrind) -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -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 -sc -sco -si -sk -skr -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="18 -17" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] ... Thanks.
this is related to non-unfied build, upstream bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=1914774
unrelated to your firefox issue, but you might want to update your gentoobinhost configuration to point to the 23.0 packages, to match your 23.0 profile (or, if you don't use binpkgs, simply remove the binrepos.conf)
Hmm, this seems to be related to "-clang +jumbo-build" after all, so I can quite confidently reproduce when attempting to build using gcc, but it seems to work out pretty well when using clang. Then again "-clang -jumbo-build" works with "some use flag configuration" so what a mess. I may force -jumbo-build to require +clang for now to mitigate possible downfall while waiting for the linked upstream bug to be resolved.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88744d55600613c2d534fc5e49d1f721c61c24a4 commit 88744d55600613c2d534fc5e49d1f721c61c24a4 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2024-09-18 10:20:27 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-09-18 10:20:27 +0000 www-client/firefox: add 130.0.1 - rebase gcc-15 patches to include latest upstream commit(s), - restrict 'jumbo-build' to be usable only when compiling with clang, because gcc causes seemingly random compile crashes. Closes: https://bugs.gentoo.org/939004 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-client/firefox/Manifest | 102 +++ www-client/firefox/firefox-130.0.1.ebuild | 1370 +++++++++++++++++++++++++++++ 2 files changed, 1472 insertions(+)
*** Bug 939825 has been marked as a duplicate of this bug. ***
I am still seeing this on 130.0.1 with USE="-jumbo-build -clang".
Created attachment 903295 [details] build.log
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9b8e58b330889384123fc20e0e8c8d9f1a65822 commit b9b8e58b330889384123fc20e0e8c8d9f1a65822 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2024-09-18 17:39:18 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-09-18 17:41:04 +0000 www-client/firefox: invert the REQUIRED_USE logic for jumbo-build in 130 - it crashes with -jumbo-build. Bug: https://bugs.gentoo.org/939825 Bug: https://bugs.gentoo.org/939004 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-client/firefox/firefox-130.0.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)