Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905262 - sys-devel/gcc-13.1.0-r1: ICE when compiling www-client/firefox with -O2 -march=alderlake -g
Summary: sys-devel/gcc-13.1.0-r1: ICE when compiling www-client/firefox with -O2 -marc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-04-28 20:17 UTC by Johannes Penßel
Modified: 2023-05-27 02:10 UTC (History)
5 users (show)

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


Attachments
-freport-bug output, part 1 (ccvEbqGG.tar.xz.partaa,1000.00 KB, application/x-xz)
2023-04-28 20:27 UTC, Johannes Penßel
Details
-freport-bug output, part 2 (ccvEbqGG.tar.xz.partab,289.08 KB, application/octet-stream)
2023-04-28 20:28 UTC, Johannes Penßel
Details
Unified_cpp_dom_fetch1.ii, part 1 (Unified_cpp_dom_fetch1.tar.xz.partaa,1000.00 KB, application/x-xz)
2023-04-28 20:30 UTC, Johannes Penßel
Details
Unified_cpp_dom_fetch1.ii, part 2 (Unified_cpp_dom_fetch1.tar.xz.partab,285.25 KB, application/octet-stream)
2023-04-28 20:31 UTC, Johannes Penßel
Details
build log (www-client:firefox-112.0.2:20230428-174010.tar.xz,532.43 KB, application/x-xz)
2023-04-28 20:38 UTC, Johannes Penßel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Penßel 2023-04-28 20:17:39 UTC
during RTL pass: vartrack
In file included from Unified_cpp_dom_fetch1.cpp:11:
/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/ipc/ipdl/FetchTypes.cpp: In static member function ‘static mozilla::Maybe<mozilla::dom::ParentToParentStream> IPC::ParamTraits<mozilla::dom::ParentToParentStream>::Read(IPC::MessageReader*)’:
/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/ipc/ipdl/FetchTypes.cpp:118:1: internal compiler error: in simplify_subreg, at simplify-rtx.cc:7426
  118 | }
      | ^
0x6530b9 simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/simplify-rtx.cc:7426
0xdfeb2c simplify_context::simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/simplify-rtx.cc:7715
0x10e6695 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/rtl.h:3535
0x10e6695 vt_expand_loc_callback
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8524
0x9d4f92 cselib_expand_value_rtx_1
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1953
0x10e56bf cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1836
0x10e56bf vt_expand_var_loc_chain
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8420
0x10e67f6 vt_expand_loc_callback
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8583
0x9d518e cselib_expand_value_rtx_1
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1988
0x10e56bf cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1836
0x10e56bf vt_expand_var_loc_chain
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8420
0x10e67f6 vt_expand_loc_callback
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8583
0x10e56bf cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1836
0x10e56bf vt_expand_var_loc_chain
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8420
0x10e67f6 vt_expand_loc_callback
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8583
0x9d518e cselib_expand_value_rtx_1
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1988
0x10e56bf cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def* (*)(rtx_def*, bitmap_head*, int, void*), void*)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/cselib.cc:1836
0x10e56bf vt_expand_var_loc_chain
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8420
0x10e5ee1 vt_expand_1pvar
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8696
0x10e5ee1 emit_note_insn_var_location(variable**, emit_note_data*)
	/var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/gcc/var-tracking.cc:8750


exact command:
/usr/bin/x86_64-pc-linux-gnu-g++ -o Unified_cpp_dom_fetch1.o -c  -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/dist/stl_wrappers -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/dist/system_wrappers -include /var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DOS_POSIX=1 -DOS_LINUX=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/dom/fetch -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/dom/fetch -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/dom/base -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/netwerk/base -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/netwerk/protocol/data -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/netwerk/protocol/http -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/ipc/ipdl/_ipdlheaders -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox-112.0.2/ipc/chromium/src -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/dist/include -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/dist/include/nss -I/usr/include/libpng16 -I/usr/include/pixman-1 -DMOZILLA_CLIENT -include /var/tmp/notmpfs/portage/www-client/firefox-112.0.2/work/firefox_build/mozilla-config.h -fno-sized-deallocation -fno-aligned-new -pipe -march=native -Wall -fno-omit-frame-pointer -fno-omit-frame-pointer -fno-tree-loop-vectorize -fno-exceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4 -O2 -fomit-frame-pointer -funwind-tables -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-invalid-offsetof -Wc++2a-compat -Wcomma-subscript -Wvolatile -Wno-error=deprecated -Wno-error=deprecated-enum-enum-conversion -Wduplicated-cond -Wimplicit-fallthrough -Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wformat -Wformat-security -Wformat-overflow=2 -Wno-psabi -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/Unified_cpp_dom_fetch1.o.pp   Unified_cpp_dom_fetch1.cpp
Comment 1 Johannes Penßel 2023-04-28 20:20:15 UTC
$ gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/13/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/notmpfs/portage/sys-devel/gcc-13.1.0-r1/work/gcc-13.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/13 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/13/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 13.1.0-r1 p1' --with-gcc-major-version-only --enable-esp --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --enable-cet --enable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp --with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.0 (Gentoo Hardened 13.1.0-r1 p1)

$ emerge -pvq firefox

[ebuild   R   ] www-client/firefox-112.0.2 [112.0.2] USE="X -clang dbus gmp-autoupdate libproxy -lto openh264 pulseaudio screencast system-jpeg system-libevent system-png telemetry wayland wifi -debug -eme-free -geckodriver -hardened -hwaccel -jack -pgo (-selinux) -sndio -system-av1 -system-harfbuzz -system-icu -system-libvpx (-system-python-libs) -system-webp" 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 -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"

$ emerge --info

Portage 3.0.46 (python 3.10.11-final-0, default/linux/amd64/17.1/no-multilib/systemd/merged-usr, gcc-13, glibc-2.37-r2, 6.3.0-gentoo x86_64)
=================================================================
System uname: Linux-6.3.0-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i5-1240P-with-glibc2.37
KiB Mem:    32696312 total,  21080548 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 28 Apr 2023 15:33:52 +0000
Head commit of repository gentoo: fd24db95abb60bcd5c0079093b3f31f4cfc93184

Timestamp of repository guru: Wed, 26 Apr 2023 09:46:42 +0000
Head commit of repository guru: 60aaa63b25156a81fd2a3f54f778af19aa1964ef

Timestamp of repository wayland-desktop: Thu, 27 Apr 2023 13:18:55 +0000
Head commit of repository wayland-desktop: 34c014eccb01c6e0d3f9696fcf621600ad8f21c6

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p4) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.1::gentoo
dev-lang/python:           3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.3::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.2::gentoo
sys-devel/gcc:             13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.2::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::local
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

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

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

local
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 10
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
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"
F77FLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
FCFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native -g -Wall -fno-omit-frame-pointer -flto=auto -Wl,-z,pack-relative-relocs -Wl,--build-id=sha1"
LEX="flex"
MAKEOPTS="-j16"
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"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/zsh"
USE="X acl afp aio alsa amd64 amr apng apparmor appstream archive argon2 audit bcrypt blake2 bluetooth boost bpf brotli bs2b btrfs bzip2 cairo caps cet chromium cjk cli cloudproviders colord connection-sharing crypt cryptsetup cups curl cxx dbus device-mapper djvu dracut dri drm duktape eds egl eglfs elf evolution-data-server exif fat fdk ffmpeg firewalld flatpak fontconfig fonts fortran freetype fribidi gbm gdbm geolocation gif gles2 glib gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnuefi gsettings gssapi gstreamer gtk gtk3 gtk4 harfbuzz highlight hpn hsts ibus iconv icu idn idn2 introspection io-uring ios ipv6 jit jpeg jpeg2k jpegxl kbd kerberos ktls ladspa layers lcms ldap libaom libcanberra libdrm libevent libglvnd libidn2 libmount libnotify libproxy libssh2 libtirpc libv4l libxfce4windowing libxml2 lmdb lto lv2 lz4 lzma lzo minizip modemmanager mp3 mpc mpfr mtp natspec nautilus ncurses netlink networkmanager nfs nftables nls nptl numa oauth ogg openal openconnect opengl openh264 openmp opus pam pango pcap pcre pcre2 pdf perl pgo pie pipewire pkcs11 png policykit postproc postscript psl pulseaudio qml qsv qt6 raw readline rubberband samba sasl scanner screencast sdjournal seccomp speex spell sqlite ssl sssd startup-notification stemmer sudo svg sysprof system-info system-sqlite systemd systemtap taglib tdb test-rust theora threads thunderbolt tiff tpm tracker truetype udev udisks unicode unwind upower uuid v4l vaapi vala valgrind verify-sig vfat vorbis vpx vulkan wayland weather webengine webp widgets wifi woff2 x264 x265 xattr xcsecurity xft xinerama xml xscreensaver xv xvid xwidgets xxhash zeroconf zlib zram zstd" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64 pc coreboot" INPUT_DEVICES="libinput" KERNEL="linux" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby31 ruby32" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, 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, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Johannes Penßel 2023-04-28 20:27:59 UTC
Created attachment 860892 [details]
-freport-bug output, part 1
Comment 3 Johannes Penßel 2023-04-28 20:28:24 UTC
Created attachment 860893 [details]
-freport-bug output, part 2
Comment 4 Johannes Penßel 2023-04-28 20:30:11 UTC
Created attachment 860894 [details]
Unified_cpp_dom_fetch1.ii, part 1
Comment 5 Johannes Penßel 2023-04-28 20:31:58 UTC
Created attachment 860895 [details]
Unified_cpp_dom_fetch1.ii, part 2
Comment 6 Johannes Penßel 2023-04-28 20:38:16 UTC
Created attachment 860896 [details]
build log
Comment 7 Arsen Arsenović gentoo-dev 2023-04-28 21:09:02 UTC
Can reproduce.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-28 23:47:02 UTC
Arsen's handed this off to me as his machine is busy with some other work, I'm reducing now.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-28 23:47:18 UTC
(In reply to Sam James from comment #8)
> Arsen's handed this off to me as his machine is busy with some other work,
> I'm reducing now.

(-gdwarf-4 is the critical bit.)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-29 05:58:11 UTC
Thanks for the report. By the way, I ended up trying a non-unified build to make it easier to reduce, and it helped a bit (~13MB -> 8MB preprocessed, which does make a big difference, especially because if nothing else I could actually compress it to <1MB for bugzilla).

I've asked in #gentoo-mozilla on IRC if we could consider exposing --disable-unified-build because this might help a lot with debugging stuff like this, debugging LTO problems as well, and should reduce RAM requirements a bit for building.

See https://firefox-source-docs.mozilla.org/build/buildsystem/unified-builds.html.

My suggestion would be we have --enable-unified-build w/ USE=+jumbo-build but let people turn it off. Cool find in any case, I had no idea this existed!
Comment 11 Larry the Git Cow gentoo-dev 2023-05-01 17:49:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14bb75bbae34f7671c7dd622f7130d7580d0a226

commit 14bb75bbae34f7671c7dd622f7130d7580d0a226
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-05-01 17:42:59 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-05-01 17:49:44 +0000

    www-client/firefox: enable 'jumbo-build' for unified files
    
     - "jumbo-build" allows adjusting resource-usage on weaker hardware,
       e.g. x86 & arm. "Jumbo-build" has been default-enabled and should
       only be disabled to control resource usage, or if a build error
       happens.
     - making it possible to adjust FILES_PER_UNIFIED_FILE but going above
       the defaults always crashed the build for me.
    
    Bug: https://bugs.gentoo.org/905431
    Bug: https://bugs.gentoo.org/905262
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/firefox-112.0.2.ebuild | 20 +++++++++++++++++++-
 www-client/firefox/metadata.xml           |  1 +
 2 files changed, 20 insertions(+), 1 deletion(-)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 02:10:16 UTC
13.1.1_p20230520 is keyworded which fixes this. Thanks for the report!