Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904455 - sys-devel/gcc: ICE in in vectorizable_live_operation, at tree-vect-loop.cc when building www-client/chromium
Summary: sys-devel/gcc: ICE in in vectorizable_live_operation, at tree-vect-loop.cc wh...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 904817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-17 11:53 UTC by Kenton Groombridge
Modified: 2023-04-26 13:27 UTC (History)
6 users (show)

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


Attachments
Part 1 of build.log, used spllit as it was too big. (build.log.1.xz,980.66 KB, application/x-xz)
2023-04-17 11:57 UTC, Kenton Groombridge
Details
Part 2 of build.log, used spllit as it was too big. (build.log.2.xz,485.20 KB, application/x-xz)
2023-04-17 11:57 UTC, Kenton Groombridge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenton Groombridge 2023-04-17 11:53:28 UTC
I am probably a moron, but I have been mucking with this trying to get it to build since this version hit portage. Two of my systems have no issue with this build, but I have one system that has constantly stopped building with this same error:

../../v8/src/maglev/x64/maglev-assembler-x64.cc:515:6: internal compiler error: in vectorizable_live_operation, at tree-vect-loop.cc:9050
0x1bc088e internal_error(char const*, ...)


Use flags for chromium are the same as another system so I am a bit befuddled.

 emerge --info
Portage 3.0.46 (python 3.11.3-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-12, glibc-2.37-r2, 6.2.11-gentoo x86_64)
=================================================================
System uname: Linux-6.2.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-6800K_CPU_@_3.40GHz-with-glibc2.37
KiB Mem:    65795680 total,  60631432 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 16 Apr 2023 23:31:57 +0000
Head commit of repository gentoo: 4a0b66bc789969a026911324263930089e3d550d

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-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.68.2::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.1::gentoo
sys-devel/gcc:             12.2.1_p20230304::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.1::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    volatile: True

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ace
    location: /var/lib/layman/ace
    masters: gentoo
    priority: 50
    volatile: True

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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="ftp://server/ http://mirror.leaseweb.com/gentoo/ http://gentoo.osuosl.org/ http://mirrors.aliyun.com/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j13"
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"
SHELL="/bin/bash"
USE="X a52 aac aacplus acpi activities afpacket alsa alsa-plugin amd64 bbswitch binary-drivers bluetooth branding bzip2 cairo caps-ng cdda cdr cli client crypt cups dbus declarative dri3 dts dvb dvd dvdr efi efiemu encode evdev exif external-fuse extra fdk ff-card ffmpeg file-inspect flac flash fortran gdbm gentoo-vm gif git gles2 gpm gstreamer gtk gtk3 gui harfbuzz hex hpcups hpn http2 iconv icu ipv6 java javascript jit jpeg kmod kwallet lcms legacy-systray libglvnd libnotify libtirpc lightdm lm_sensors mad mariadb maxminddb mjpeg mng mp3 mp4 mpeg multilib ncurses networkmanager nfs nfsv4 nls nptl nsplugin nss ntfs ntfsprogs ntp nvidia offensive ogg openal opengl openmp openssl ovftool ozone pam pango pcre pcsc-lite pdf pipewire pipewire-alsa pkcs11 plasma png policykit ppds projectm proprietary-codecs pulseaudio python qemu qml qt5 rar rdp readline realtime samba scanner scp sdl seccomp secure-delete semantic-desktop sensors shm smartcard sna sound sound-server spell sqlite ssl startup-notification svc svg system-mitkrb5 systemd test-rust theora threads tiff touchpad truetype udev udisks unicode usb uvm uxa v4l v4l2 vaapi vdpau vix vnc vorbis vpx vulkan wayland widevine widgets winbind wma wxwidgets x264 x265 xattr xcb xft xml xnest xorg xv xvid xvmc zip zlib" 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 sse sse2 sse3 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US" 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_11" PYTHON_TARGETS="python3_11" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="nvidia" 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 Kenton Groombridge 2023-04-17 11:57:31 UTC
Created attachment 860241 [details]
Part 1 of build.log, used spllit as it was too big.
Comment 2 Kenton Groombridge 2023-04-17 11:57:52 UTC
Created attachment 860242 [details]
Part 2 of build.log, used spllit as it was too big.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-17 12:00:02 UTC
[31mFAILED: [0mobj/v8/v8_base_without_compiler/maglev-assembler-x64.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/v8/v8_base_without_compiler/maglev-assembler-x64.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DV8_INTL_SUPPORT -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -DUSE_SYSTEM_ZLIB=1 -I../.. -Igen -I../../v8 -I../../v8/include -Igen/v8 -Igen/v8/include -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -Igen/shim_headers/zlib_shim -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -fno-omit-frame-pointer -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -Wno-int-in-bool-context -Wno-deprecated -Wno-narrowing -Wno-class-memaccess -std=gnu++2a -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -pipe -march=native -mtune=native -c ../../v8/src/maglev/x64/maglev-assembler-x64.cc -o obj/v8/v8_base_without_compiler/maglev-assembler-x64.o
during GIMPLE pass: slp
../../v8/src/maglev/x64/maglev-assembler-x64.cc: In member function ‘void v8::internal::maglev::MaglevAssembler::Prologue(v8::internal::maglev::Graph*)’:
../../v8/src/maglev/x64/maglev-assembler-x64.cc:515:6: internal compiler error: in vectorizable_live_operation, at tree-vect-loop.cc:9050
  515 | void MaglevAssembler::Prologue(Graph* graph) {
      |      ^~~~~~~~~~~~~~~
0x1bc088e internal_error(char const*, ...)
	???:0
0x697a72 fancy_abort(char const*, int, char const*)
	???:0
0x1b80662 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*)
	???:0
0xffda93 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&)
	???:0
0x1000995 vect_slp_function(function*)
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-17 12:00:55 UTC
Would you mind following https://wiki.gentoo.org/wiki/GCC_ICE_reporting_guide as much as you can, and we can help with any bits you get stuck on?
Comment 5 Kenton Groombridge 2023-04-17 13:03:24 UTC
Will do. Thanks.
Comment 6 Maciej S. Szmigiero 2023-04-20 09:14:45 UTC
I've hit the same problem when building www-client/chromium-112.0.5615.121 with sys-devel/gcc-12.2.1_p20230304 and "-march=ivybridge".
It did *not* happen with "-march=skylake".

Adding "-fno-tree-vectorize" to CXXFLAGS made chromium build successfully for me.

That's a bit strange since AFAIK tree vectorization should *not* be enabled by default at -O2 level, only -O3.
Comment 7 Maciej S. Szmigiero 2023-04-20 09:21:24 UTC
The above is obviously just a workaround to make chromium build, GCC should not ICE even with all the optimization options turned on.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-20 10:24:37 UTC
(In reply to Maciej S. Szmigiero from comment #6)
> That's a bit strange since AFAIK tree vectorization should *not* be enabled
> by default at -O2 level, only -O3.

GCC 12 introduces vectorisation at -O2 using -fvect-cost-model=very-cheap ('very-cheap' being a new level they introduced in the 12 release).
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-20 17:21:10 UTC
Reproduced:

```
FAILED: obj/v8/v8_base_without_compiler/maglev-assembler-x64.o
g++-12 -MMD -MF obj/v8/v8_base_without_compiler/maglev-assembler-x64.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DV8_INTL_SUPPORT -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_MAGLEV -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_STATIC_ROOTS -DV8_USE_ZLIB -DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_SLIM_WRITE_BARRIER -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -DUSE_SYSTEM_ZLIB=1 -I../.. -Igen -I../../v8 -I../../v8/include -Igen/v8 -Igen/v8/include -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -Igen/shim_headers/zlib_shim -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -fno-omit-frame-pointer -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -Wno-int-in-bool-context -Wno-deprecated -Wno-narrowing -Wno-class-memaccess -std=gnu++2a -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -march=ivybridge -pipe -O2 -march=ivybridge -pipe -c ../../v8/src/maglev/x64/maglev-assembler-x64.cc -o obj/v8/v8_base_without_compiler/maglev-assembler-x64.o
during GIMPLE pass: slp
../../v8/src/maglev/x64/maglev-assembler-x64.cc: In member function 'void v8::internal::maglev::MaglevAssembler::Prologue(v8::internal::maglev::Graph*)':
../../v8/src/maglev/x64/maglev-assembler-x64.cc:515:6: internal compiler error: in vectorizable_live_operation, at tree-vect-loop.cc:9060
  515 | void MaglevAssembler::Prologue(Graph* graph) {
      |      ^~~~~~~~~~~~~~~
0x67dc34 vectorizable_live_operation(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*, int, bool, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-loop.cc:9060
0x1bc9120 can_vectorize_live_stmts
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-stmts.cc:11059
0x1beebe2 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*)
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-stmts.cc:11451
0x10293a0 vect_schedule_slp_node
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:7385
0x103981c vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:7580
0x10395d2 vect_schedule_scc
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:7561
0x1039d5c vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&)
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:7697
0x103b91e vect_slp_region
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:6045
0x103ca49 vect_slp_bbs
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:6157
0x103cdd7 vect_slp_function(function*)
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vect-slp.cc:6245
0x1044041 execute
        /usr/src/debug/sys-devel/gcc-12.2.1_p20230415/gcc-12-20230415/gcc/tree-vectorizer.cc:1506
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

Reporting upstream.
Comment 10 David 2023-04-21 14:34:09 UTC
The issue is fixed on my IvyBridge systems with the following upstream patch for sys-devel/gcc-12.2.1_p20230121-r1


https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=cddfe6bc40b3dc0806e260bbfb4cac82d609a258
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-21 14:42:14 UTC
(In reply to David from comment #10)
> The issue is fixed on my IvyBridge systems with the following upstream patch
> for sys-devel/gcc-12.2.1_p20230121-r1
> 
> 
> https://gcc.gnu.org/git/?p=gcc.git;a=patch;
> h=cddfe6bc40b3dc0806e260bbfb4cac82d609a258

Yeah, my intention is to chuck it in to today's 12 snapshot (which will be created tonight). It'll get backported upstream eventually too, probably/hopefully in time for 12.3.
Comment 12 Morton Pellung 2023-04-21 21:43:14 UTC
[after spending a day compiling...]
gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121
chromium 112.0.5615.121

fails with
-O2 -march=haswell
Comment 13 Stephan Hartmann (RETIRED) gentoo-dev 2023-04-22 10:43:19 UTC
*** Bug 904817 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2023-04-22 10:51:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04451d884241269c61aa5c1797f1cdf72041fe9a

commit 04451d884241269c61aa5c1797f1cdf72041fe9a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-22 10:50:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-22 10:51:22 +0000

    sys-devel/gcc: add 12.2.1_p20230421
    
    Unkeyworded at first like usual. I don't intend on keywording this one
    given 12.3 will be out soon enough.
    
    Bug: https://bugs.gentoo.org/904455
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  2 ++
 sys-devel/gcc/gcc-12.2.1_p20230421.ebuild | 54 +++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)
Comment 15 Larry the Git Cow gentoo-dev 2023-04-22 23:29:04 UTC
The bug has been referenced in the following commit(s):

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

commit b80bfab7c8aba8c3a358b2fa87a1e00e335376d3
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-04-22 23:26:46 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-04-22 23:28:44 +0000

    www-client/chromium: add 112.0.5615.165
    
    Bug: https://bugs.gentoo.org/904455
    Bug: https://bugs.gentoo.org/904725
    Bug: https://bugs.gentoo.org/904560
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/Manifest                       |    1 +
 www-client/chromium/chromium-112.0.5615.165.ebuild | 1259 ++++++++++++++++++++
 .../chromium/files/chromium-112-swiftshader.patch  |   74 ++
 3 files changed, 1334 insertions(+)
Comment 16 Larry the Git Cow gentoo-dev 2023-04-23 02:41:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=ffa606b25a8535e81f34e661ef0da04dee80d72b

commit ffa606b25a8535e81f34e661ef0da04dee80d72b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-22 10:35:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-22 10:35:44 +0000

    12.2.0: add chromium ICE patch
    
    Bug: https://bugs.gentoo.org/904455
    Signed-off-by: Sam James <sam@gentoo.org>

 ...573_12_ICE-in-vectorizable_live_operation.patch | 131 +++++++++++++++++++++
 12.2.0/gentoo/README.history                       |   3 +
 2 files changed, 134 insertions(+)
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-23 07:02:23 UTC
chromium-112.0.5615.165.ebuild has a workaround - adding -fno-tree-vectorize for gcc and newer GCCs are fixed, including the upcoming GCC 12.3 (in gentoo at least, unclear if backport will be done in time upstream).

AFAIK older stable chromium was never a problem, just newly stabled 112, so closing.
Comment 18 Larry the Git Cow gentoo-dev 2023-04-26 13:27:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58875b7c918212a9e9efeb5a6d9f54ec029ba3d4

commit 58875b7c918212a9e9efeb5a6d9f54ec029ba3d4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-26 13:25:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-26 13:27:17 +0000

    sys-devel/gcc: add 13.1.0-r1 w/ backports
    
    This includes the chromium ICE fix for bug #904455 as well as two
    miscompilation fixes which just missed the 13.1.0 tag.
    
    Bug: https://bugs.gentoo.org/904455
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest             |  2 ++
 sys-devel/gcc/gcc-13.1.0-r1.ebuild | 61 ++++++++++++++++++++++++++++++++++++++
 sys-devel/gcc/gcc-13.2.9999.ebuild |  4 +--
 3 files changed, 65 insertions(+), 2 deletions(-)