Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917688 - www-client/firefox-120.0 build failure
Summary: www-client/firefox-120.0 build failure
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 20:33 UTC by Sebastian Hamann
Modified: 2023-11-24 17:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,736.17 KB, application/gzip)
2023-11-21 20:34 UTC, Sebastian Hamann
Details
build log (VB.firefox.120.0.build.log.txt.gz,482.65 KB, application/gzip)
2023-11-24 06:50 UTC, Sevilla, Larry
Details
environment (VB.firefox.120.0.environment.txt,239.43 KB, text/plain)
2023-11-24 06:51 UTC, Sevilla, Larry
Details
emerge --info (VB.firefox.120.0.info.txt,6.05 KB, text/plain)
2023-11-24 06:51 UTC, Sevilla, Larry
Details
emerge -pqv (VB.firefox.120.0.pqv.txt,945 bytes, text/plain)
2023-11-24 06:52 UTC, Sevilla, Larry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Hamann 2023-11-21 20:33:25 UTC
Building firefox-120.0 fails for me. 119.0.1 did build just fine.

My firefox USE flags:

[ebuild     U ~] www-client/firefox-120.0:rapid::gentoo [119.0.1:rapid::gentoo] USE="clang dbus hardened jumbo-build pulseaudio screencast system-av1 system-harfbuzz system-jpeg system-libevent system-libvpx system-webp telemetry wayland -X -debug -eme-free -geckodriver (-gmp-autoupdate) -hwaccel -jack -libproxy -lto -openh264 -pgo (-selinux) -sndio -system-icu -system-png (-system-python-libs) (-valgrind) -wifi" L10N="en-GB -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -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 -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" 0 KiB


Possibly the relevant errors:

27:50.62 b'/usr/bin/node: OpenSSL configuration error:\n401EEA26B37F0000:error:07000068:configuration file routines:str_copy:variable has no value:../openssl-3.0.11/crypto/conf/conf_def.c:768:line 10\n\n\n'
[...]
27:50.67 gmake[3]: *** [backend.mk:934: devtools/client/debugger/src/actions/sources/.deps/node.stub.stub] Error 104


Package versions that may or may not be relevant here:
dev-libs/openssl 3.0.11
net-libs/nodejs 20.6.1

Reproducible: Didn't try

Steps to Reproduce:
1. emerge '=www-client/firefox-120.0'

Actual Results:  
Build fails.

Expected Results:  
Build complete successfully.

Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-13, glibc-2.37-r7, 6.6.1-gentoo-dist-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.1-gentoo-dist-hardened-x86_64-AMD_Ryzen_5_PRO_7530U_with_Radeon_Graphics-with-glibc2.37
KiB Mem:    15139256 total,   5190852 free
KiB Swap:   20692984 total,  20692728 free
Timestamp of repository gentoo: Tue, 21 Nov 2023 16:45:01 +0000
Head commit of repository gentoo: 700917f1f8c3f4de1aa13aec42935fc1f03b94a8
Timestamp of repository guru: Tue, 21 Nov 2023 15:16:45 +0000
Head commit of repository guru: 16b6b266978cdeb0800d4e7789fabbdfc1411bf8

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.5-r1::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 10
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

Installed sets: @secureboot-rebuild
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb/symbols/gb /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --alert=y --autounmask=y --autounmask-write=n --load-average=12"
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="-O2 -march=native -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 multilib-strict network-sandbox news nodoc noinfo parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j12 -l12"
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/zsh"
USE="a52 aac acl acpi alsa amd64 apparmor appindicator bluetooth branding bzip2 cairo caps cdda cdr cet cli crypt cups dbus dist-kernel dri dts dvdr encode exif fam filecaps flac fortran gdbm gif gnome-keyring gpm gtk gui hardened iconv icu ipv6 jpeg keyring lcms libnotify libtirpc mad mng modules-sign mp3 mp4 mpeg mtp ncurses networkmanager nls nptl ogg opengl pam pango pcre pdf pie pipewire png policykit ppds readline sdl seccomp secureboot smp sound spell ssl ssp startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis vulkan wayland wifi wxwidgets x264 xattr xcb xft xml xtpax xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, 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, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sebastian Hamann 2023-11-21 20:34:41 UTC
Created attachment 875305 [details]
build.log
Comment 2 Gino McCarty 2023-11-22 05:22:49 UTC
same problem for me


---
58:08.41 /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firefox-120.0/too
lkit/components/protobuf/src/google/protobuf/generated_message_tctable_lite.cc:1631:10: warning
: 'return' will never be executed [-Wunreachable-code-return]
58:08.42   return Error(PROTOBUF_TC_PARAM_PASS);
58:08.42          ^~~~~
58:09.14 In file included from /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/
work/firefox-120.0/toolkit/components/remote/nsDBusRemoteClient.cpp:9:
58:09.14 In file included from /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/wor
k/firefox-120.0/toolkit/components/remote/nsDBusRemoteClient.h:15:
58:09.14 In file included from /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/wor
k/firefox_build/dist/include/mozilla/DBusHelpers.h:10:
58:09.15 /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firefox_build/dis
t/system_wrappers/dbus/dbus.h:3:15: fatal error: 'dbus/dbus.h' file not found
58:09.15 #include_next <dbus/dbus.h>
58:09.15               ^~~~~~~~~~~~~
58:09.82 1 error generated.
58:09.84 gmake[4]: *** [/var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firef
ox-120.0/config/rules.mk:690: nsDBusRemoteClient.o] Error 1
58:09.85 gmake[4]: Leaving directory '/var/tmp/portage-ondisk/portage/www-client/firefox-12
0.0/work/firefox_build/toolkit/components/remote'
58:09.86 gmake[3]: *** [/var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firef
ox-120.0/config/recurse.mk:72: toolkit/components/remote/target-objects] Error 2
58:09.87 gmake[3]: *** Waiting for unfinished jobs....
---
Comment 3 Gino McCarty 2023-11-22 05:44:59 UTC
(In reply to Gino McCarty from comment #2)
> same problem for me
> 
> 
> ---
> 58:08.41
> /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firefox-120.0/
> too
> lkit/components/protobuf/src/google/protobuf/generated_message_tctable_lite.
> cc:1631:10: warning
> : 'return' will never be executed [-Wunreachable-code-return]
> 58:08.42   return Error(PROTOBUF_TC_PARAM_PASS);
> 58:08.42          ^~~~~
> 58:09.14 In file included from
> /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/
> work/firefox-120.0/toolkit/components/remote/nsDBusRemoteClient.cpp:9:
> 58:09.14 In file included from
> /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/wor
> k/firefox-120.0/toolkit/components/remote/nsDBusRemoteClient.h:15:
> 58:09.14 In file included from
> /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/wor
> k/firefox_build/dist/include/mozilla/DBusHelpers.h:10:
> 58:09.15
> /var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firefox_build/
> dis
> t/system_wrappers/dbus/dbus.h:3:15: fatal error: 'dbus/dbus.h' file not found
> 58:09.15 #include_next <dbus/dbus.h>
> 58:09.15               ^~~~~~~~~~~~~
> 58:09.82 1 error generated.
> 58:09.84 gmake[4]: ***
> [/var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firef
> ox-120.0/config/rules.mk:690: nsDBusRemoteClient.o] Error 1
> 58:09.85 gmake[4]: Leaving directory
> '/var/tmp/portage-ondisk/portage/www-client/firefox-12
> 0.0/work/firefox_build/toolkit/components/remote'
> 58:09.86 gmake[3]: ***
> [/var/tmp/portage-ondisk/portage/www-client/firefox-120.0/work/firef
> ox-120.0/config/recurse.mk:72: toolkit/components/remote/target-objects]
> Error 2
> 58:09.87 gmake[3]: *** Waiting for unfinished jobs....
> ---

sorry this isn't my issue, I found mine here - #917684
Comment 4 Joonas Niilola gentoo-dev 2023-11-22 12:42:11 UTC
Did 119.0.1 build fine after 120.0 failed? Or did it build fine weeks ago? 

Looks like broken nodejs/openssl to me. You could recompile those and take out any possible optimizations like lto.
Comment 5 Sebastian Hamann 2023-11-22 20:32:06 UTC
(In reply to Joonas Niilola from comment #4)
> Did 119.0.1 build fine after 120.0 failed? Or did it build fine weeks ago? 

It did build fine on 2023-11-18. Not exactly weeks ago, but I did not try after building Firefox 120.0.

> Looks like broken nodejs/openssl to me. You could recompile those and take
> out any possible optimizations like lto.

Both OpenSSL and NodeJS are the same I used for Firefox 119.0.1. NodeJS was built on 2023-11-17 and OpenSSL is straight from the stage3 tarball (this is a fairly fresh install).

I don't use LTO and I don't use any fancy CFLAGS. Is there anything else I should be aware of?

I'll try rebuilding some packages and updating other systems.
Comment 6 Sevilla, Larry 2023-11-24 06:50:23 UTC
Created attachment 875457 [details]
build log

Under VirtualBox 7.0 (Windows 10)
with Gentoo as guest.

Firefox 120.0 build log.
Comment 7 Sevilla, Larry 2023-11-24 06:51:18 UTC
Created attachment 875458 [details]
environment

Under VirtualBox 7.0 (Windows 10)
with Gentoo as guest.

Firefox 120.0 environment.
Comment 8 Sevilla, Larry 2023-11-24 06:51:57 UTC
Created attachment 875459 [details]
emerge --info

Under VirtualBox 7.0 (Windows 10)
with Gentoo as guest.

Firefox 120.0: emerge --info
Comment 9 Sevilla, Larry 2023-11-24 06:52:32 UTC
Created attachment 875460 [details]
emerge -pqv

Under VirtualBox 7.0 (Windows 10)
with Gentoo as guest.

Firefox 120.0: emerge -pqv
Comment 10 Joonas Niilola gentoo-dev 2023-11-24 07:09:33 UTC
(In reply to Sevilla, Larry from comment #6)
> Created attachment 875457 [details]
> build log
> 
> Under VirtualBox 7.0 (Windows 10)
> with Gentoo as guest.
> 
> Firefox 120.0 build log.

Your error is not related to this exact bug - it's more got something to do with clang, your cpu and skia, and clang/skia enabling some parameters not supported by your CPU. Use specific -march (not native) or compile firefox with gcc (-clang use flag).
Comment 11 Sebastian Hamann 2023-11-24 17:30:16 UTC
I tried rebuilding Firefox 119.0.1 and that failed with the same error. Looks like there really is something broken on my end. I'll try figuring out what exactly it is.

Closing as INVALID.