using g++ (Gentoo 10.2.0-r5 p6) 10.2.0 emerge --update firefox fails with an internal compiler error: 279:25.67 cargo:warning= 279:25.67 cargo:warning=# .MEM_365270 = VDEF <.MEM_365269> 279:25.67 cargo:warning=*retvalptr.413089_327777.D.33198.data = _327780; 279:25.67 cargo:warning=during GIMPLE pass: fixup_cfg 279:25.67 cargo:warning=src/rasterize.h:986:20: internal compiler error: verify_gimple failed 279:25.67 cargo:warning=Please submit a full bug report, 279:25.67 cargo:warning=with preprocessed source if appropriate. 279:25.67 cargo:warning=See <https://bugs.gentoo.org/> for instructions. 279:25.67 exit code: 1 279:25.67 --- stderr 279:25.67 error occurred: Command "/usr/bin/x86_64-pc-linux-gnu-g++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-std=gnu++17" "-I/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/stl_wrappers" "-I/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/system_wrappers" "-include" "/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/toolkit/library/rust" "-I/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/toolkit/library/rust" "-I/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/include" "-I/usr/include/nspr" "-I/usr/include/nss" "-I/usr/include/nspr" "-I/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/include/nss" "-I/usr/include/pixman-1" "-fPIC" "-DMOZILLA_CLIENT" "-include" "/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/mozilla-config.h" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wwrite-strings" "-Wno-invalid-offsetof" "-Wc++2a-compat" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wunused-function" "-Wunused-variable" "-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" "-Wno-error=deprecated-copy" "-Wformat" "-Wformat-security" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-march=native" "-mtune=native" "-fno-omit-frame-pointer" "-pipe" "-fno-tree-loop-vectorize" "-fno-exceptions" "-fno-strict-aliasing" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/gfx/wr/webrender/res" "-I" "src" "-I" "/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/x86_64-unknown-linux-gnu/release/build/swgl-a2c1275f2d5e8bf4/out" "-std=c++17" "-UMOZILLA_CONFIG_H" "-fno-exceptions" "-fno-rtti" "-fno-math-errno" "-D_GLIBCXX_USE_CXX11_ABI=0" "-o" "/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/x86_64-unknown-linux-gnu/release/build/swgl-a2c1275f2d5e8bf4/out/src/gl.o" "-c" "src/gl.cc" with args "x86_64-pc-linux-gnu-g++" did not execute successfully (status code exit code: 1). 279:25.67 gmake[4]: *** [/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/config/makefiles/rust.mk:350: force-cargo-library-build] Error 101 279:25.67 gmake[4]: Leaving directory '/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build/toolkit/library/rust' 279:25.67 gmake[3]: *** [/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2 279:25.67 gmake[3]: Leaving directory '/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build' 279:25.67 gmake[2]: *** [/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/config/recurse.mk:34: compile] Error 2 279:25.67 gmake[2]: Leaving directory '/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build' 279:25.67 gmake[1]: *** [/scratch/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/config/rules.mk:355: default] Error 2 279:25.67 gmake[1]: INTERNAL: Exiting with 9 jobserver tokens available; should be 8! 279:25.67 gmake[1]: Leaving directory '/scratch/tmp/portage/www-client/firefox-87.0/work/firefox_build' 279:25.67 gmake: *** [client.mk:89: build] Error 2 279:25.67 11 compiler warnings present. * ERROR: www-client/firefox-87.0::gentoo failed (compile phase): Reproducible: Always Steps to Reproduce: 1.emerge --update firefox 2. 3. Actual Results: error message from g++ Expected Results: intalled firefox emerge --info: Portage 3.0.13 (python 3.9.2-final-0, default/linux/amd64/17.0, gcc-10.2.0, glibc-2.32-r7, 5.11.5-gentoo x86_64) ================================================================= System uname: Linux-5.11.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-glibc2.32 KiB Mem: 16299568 total, 8439624 free KiB Swap: 53513300 total, 53367892 free Timestamp of repository gentoo: Tue, 23 Mar 2021 10:00:01 +0000 Head commit of repository gentoo: 574bc4dbbf3dd670e34f6432dc326f868021c4e1 sh bash 5.0_p18 ld GNU ld (Gentoo 2.35.1 p2) 2.35.1 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18_p7::gentoo, 3.6.13::gentoo, 3.7.10::gentoo, 3.8.8::gentoo, 3.9.2::gentoo, 3.10.0_alpha6-r1::gentoo dev-util/cmake: 3.19.7::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.21::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.25.1-r1::gentoo, 2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo, 2.30-r4::gentoo, 2.31.1-r6::gentoo, 2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.1-r1::gentoo sys-devel/gcc: 4.5.4::gentoo, 4.8.5::gentoo, 4.9.3::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 7.2.0-r1::gentoo, 8.2.0-r6::gentoo, 8.3.0-r3::gentoo, 9.1.0-r1::gentoo, 9.2.0-r4::gentoo, 9.3.0-r2::gentoo, 10.2.0-r5::gentoo sys-devel/gcc-config: 2.3.3::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 science location: /var/lib/layman/science masters: gentoo priority: 1 unity-gentoo location: /var/lib/layman/unity-gentoo masters: gentoo priority: 2 crossdev location: /opt/portage masters: gentoo science priority: 3 x-portage location: /local/portage masters: gentoo priority: 4 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -mtune=native -fno-omit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb /var/lib/i2pd/certificates" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -mtune=native -fno-omit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks 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" GENTOO_MIRRORS="http://gentoo.supp.name/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://147.251.48.205/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://86.49.49.49/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://141.76.119.131/pub/mirrors/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.supp.name/ rsync://gentoo.mirror.dkm.cz/gentoo/ http://gentoo.mirror.web4u.cz/" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" 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="/scratch/tmp" USE="X acl aes alsa amd64 berkdb bluetooth bzip2 cli crypt cups dri fortran gcj gdbm hal iconv ipv6 lapack latex libglvnd libtirpc linguas_cs linguas_de linguas_en linguas_nl linguas_sk mbox mmx multilib multislot ncurses nls nptl openmp pam pcre readline seccomp split-usr sse sse2 sse3 sse4 ssl static-libs systemtap tcpd tetex unicode webp xattr zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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="keyboard mouse evdev synaptics" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_8 python3_9" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau nv vesa fbdev v4l vga" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to recompile with -j1 * attach the logs and * paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket AFAIK, this can also be caused by bad RAM. Please check your RAM and confirm, that there is no bad memory. Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Created attachment 693273 [details] somewhat similar error on arm please see my build log from armv7, also with gcc-10, maybe its related?
Created attachment 693279 [details] output from emerge --info (cross-target)
propably most interesting part of the build log: 50:42.23 cargo:warning=src/vector_type.h:502:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct glsl::vec4' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 50:42.23 cargo:warning= 502 | memcpy(&v, p, sizeof(v)); 50:42.23 cargo:warning= | ~~~~~~^~~~~~~~~~~~~~~~~~ 50:42.23 cargo:warning=In file included from src/gl.cc:78: 50:42.23 cargo:warning=src/glsl.h:1772:8: note: 'struct glsl::vec4' declared here 50:42.23 cargo:warning= 1772 | struct vec4 { 50:42.23 cargo:warning= | ^~~~ 50:42.23 cargo:warning={standard input}: Assembler messages: 50:42.23 cargo:warning={standard input}:3671132: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3673040: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3674289: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3675624: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3675934: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3676329: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3676821: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3677335: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3678632: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3679222: Error: conditional branch out of range 50:42.23 cargo:warning={standard input}:3679867: Error: conditional branch out of range 50:42.23 exit code: 1 50:42.23 --- stderr 50:42.23 error occurred: Command "/usr/bin/armv7a-unknown-linux-gnueabihf-g++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=armv7-a" "-mfpu=neon-vfpv4" "-mthumb" "-mfloat-abi=hard" "-std=gnu++17" "-I/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/stl_wrappers" "-I/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/system_wrappers" "-include" "/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/config/gcc_hidden.h" "-U_FORTIFY_SOURCE" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-DNDEBUG=1" "-DTRIMMED=1" "-I/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/toolkit/library/rust" "-I/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/toolkit/library/rust" "-I/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/include" "-I/usr/armv7a-unknown-linux-gnueabihf/usr/include/nspr" "-I/usr/armv7a-unknown-linux-gnueabihf/usr/include/nss" "-I/usr/armv7a-unknown-linux-gnueabihf/usr/include/nspr" "-I/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/dist/include/nss" "-I/usr/armv7a-unknown-linux-gnueabihf/usr/include/pixman-1" "-fPIC" "-DMOZILLA_CLIENT" "-include" "/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/mozilla-config.h" "-Wall" "-Wempty-body" "-Wignored-qualifiers" "-Wpointer-arith" "-Wsign-compare" "-Wtype-limits" "-Wunreachable-code" "-Wwrite-strings" "-Wno-invalid-offsetof" "-Wc++2a-compat" "-Wduplicated-cond" "-Wimplicit-fallthrough" "-Wunused-function" "-Wunused-variable" "-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" "-Wno-error=deprecated-copy" "-Wformat" "-Wformat-security" "-Wformat-overflow=2" "-Wno-psabi" "-fno-sized-deallocation" "-fno-aligned-new" "-pipe" "-fomit-frame-pointer" "-fno-tree-loop-vectorize" "-mthumb" "-mno-thumb-interwork" "-mfpu=neon" "-mfloat-abi=hard" "-fno-exceptions" "-fno-strict-aliasing" "-fno-rtti" "-ffunction-sections" "-fdata-sections" "-fno-exceptions" "-fno-math-errno" "-pthread" "-pipe" "-O2" "-fomit-frame-pointer" "-funwind-tables" "-DMOZILLA_CONFIG_H" "-I" "/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox-87.0/gfx/wr/webrender/res" "-I" "src" "-I" "/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/thumbv7neon-unknown-linux-gnueabihf/release/build/swgl-c461939dc1cecd73/out" "-std=c++17" "-UMOZILLA_CONFIG_H" "-fno-exceptions" "-fno-rtti" "-fno-math-errno" "-D_GLIBCXX_USE_CXX11_ABI=0" "-o" "/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-87.0/work/firefox_build/thumbv7neon-unknown-linux-gnueabihf/release/build/swgl-c461939dc1cecd73/out/src/gl.o" "-c" "src/gl.cc" with args "armv7a-unknown-linux-gnueabihf-g++" did not execute successfully (status code exit code: 1). it doesn't show internal compiler error, but seems its the same spot of failure here.
you should try again with recently bumped patchset, it adds a fix for webrender which caused problems with insane amounts of ram usage also it could help to sort out your binutils and gcc mix