Update of already-installed net-libs/nodejs-14.2.0 to net-libs/nodejs-14.4.0 fails with an internal compiler error in x86_64-pc-linux-gnu-g++. Reproducible: Always babylon5:root:~:11 # gcc-config -l [1] x86_64-pc-linux-gnu-9.3.0 * babylon5:root:~:12 # emerge -pqv '=net-libs/nodejs-14.4.0::gentoo' [ebuild U ] net-libs/nodejs-14.4.0 [14.2.0] USE="icu inspector npm snapshot ssl system-ssl -debug -doc -pax_kernel -systemtap -test" CPU_FLAGS_X86="sse2" babylon5:root:~:13 # emerge --info '=net-libs/nodejs-14.4.0::gentoo' Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.30-r8, 5.5.19-gentoo-babylon5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.5.19-gentoo-babylon5-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.6 KiB Mem: 16399056 total, 3970008 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 10 Jun 2020 06:00:01 +0000 Head commit of repository gentoo: 46b1048c257e1074ddaaaaa6ee88ffbac431a6d7 Head commit of repository brother-overlay: 9ccba5d7c9fde9fdcb08e17695d25c3737089b71 Head commit of repository maggu2810-overlay: 33a9662e2c9e02daa43b9f583916effe2015735b Head commit of repository mysql: 4fc991d753db5c2c0c319acf981b4609c2ee64bb Head commit of repository palemoon: a670eb455168e1edfffbeafe55cee7c99f0c1318 Head commit of repository seeds: 301b6a8f2beb46e8e63da8f63f57a270b981edb0 sh bash 5.0_p17 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 app-shells/bash: 5.0_p17::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo dev-util/cmake: 3.17.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.33.1-r1::gentoo sys-devel/gcc: 9.3.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r8::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://minbar.caerllewys.net/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: brother-overlay location: /var/db/repos/brother-overlay sync-type: git sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git masters: gentoo gentoo-dev-alaric location: /var/lib/alaric masters: gentoo maggu2810-overlay location: /var/db/repos/maggu2810-overlay sync-type: git sync-uri: git://github.com/maggu2810/maggu2810-overlay.git masters: gentoo mysql location: /var/db/repos/mysql sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/mysql.git masters: gentoo palemoon location: /var/db/repos/palemoon sync-type: git sync-uri: https://github.com/deu/palemoon-overlay.git masters: gentoo seeds location: /var/db/repos/seeds sync-type: git sync-uri: git://github.com/vonavi/seeds.git masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb" 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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=amdfam10 -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --verbose-conflicts --keep-going" ENV_UNSET="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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.gtlib.gatech.edu/pub/gentoo http://mirrors.cs.wmich.edu/gentoo http://distfiles.gentoo.org " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US en" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" 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" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cddb cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fltk fortran gdbm gif gpm gtk iconv icu id3tag imagemagick ipv6 java jpeg jpeg2k lcms ldap libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin nvidia ogg opengl openmp opus pam pango pcre pcsc-lite pdf png policykit ppds qt5 readline sdl seccomp spell split-usr sse sse2 sse4 ssl startup-notification svg tcpd theora threads tiff tk tools truetype udev udisks unicode upower usb utils v4l v4l2 vdpau vorbis vpx wxwidgets x264 xattr xcb xml xpm xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="emu10k1 hda-intel" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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="evdev keyboard mouse" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 644318 [details] build.log
If this is still an issue, follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.
Does not crash for me: """ $ x86_64-pc-linux-gnu-g++-9.3.0 -o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj.target/v8_initializers/gen/torque-output-root/torque-generated/../../deps/v8/src/builtins/string-endswith-tq-csa.o /tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj/gen/torque-output-root/torque-generated/../../deps/v8/src/builtins/string-endswith-tq-csa.cc '-DNODE_OPENSSL_CERT_STORE' '-DV8_EMBEDDED_BUILTINS' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DV8_TARGET_ARCH_X64' '-DV8_EMBEDDER_STRING="-node.33"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DV8_INTL_SUPPORT' '-DV8_CONCURRENT_MARKING' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' -I../deps/v8 -I../deps/v8/include -I/tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj/gen/torque-output-root -I/tmp/portage/net-libs/nodejs-14.4.0/work/node-v14.4.0/out/Release/obj/gen/generate-bytecode-output-root -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++1y -march=amdfam10 -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt -c $ echo $? 0 """ Please extract preprocessed file, attach full command and post 'gcc -v'.
I'm getting same with nodejs-15.3.0 gcc-10.2. Will try clang, and then a bit more effort as per comment #2 May be out of memory, or certainly my (old) CPU runs hot building nodejs (and other things, but seems a bit worse with nodejs)
Built ok with clang, will try gcc-11
And built ok with gcc-11 % gcc --version gcc (Gentoo 11.0.0_pre9999 p4, commit 8e59ff5541889817a160afda130bcbcdb70c4b90) 11.0.0 20201128 (experimental)
And now, confusingly, it built fine with gcc-10 > gcc --versiom gcc (Gentoo 10.2.1_pre9999 p1, commit 677b80db41f5345b32ce18cd000e45ea39b80d8f) 10.2.1 20200723 whereas before it didn't, from /var/log/portage/net-libs:nodejs-15.3.0:20201128-004537.log ../deps/v8/src/wasm/wasm-code-manager.h:515:3: internal compiler error: Segmentation fault 515 | } | ^ but can't reproduce issue now.
Interesting. Oh well, at least it works now!