https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119067

            Bug ID: 119067
           Summary: ICE when building firefox-135.0.1 with LTO (tree
                    check: expected none of vector_type, have vector_type
                    in odr_types_equivalent_p, at ipa-devirt.cc:1262)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 60611
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60611&action=edit
ff-ice.tar.xz

```
$ ./test.sh
[...]
+ g++ SkBlitRow_opts_hsw.o SkSwizzler_opts_hsw.o -shared
lto1: internal compiler error: tree check: expected none of vector_type, have
vector_type in odr_types_equivalent_p, at ipa-devirt.cc:1262
0x55bd6b575bad internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517
0x55bd68aa6506 tree_not_check_failed(tree_node const*, char const*, int, char
const*, ...)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree.cc:9139
0x55bd68952e4a tree_not_check(tree_node*, char const*, int, char const*,
tree_code)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree.h:3696
0x55bd68952e4a odr_types_equivalent_p
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-devirt.cc:1262
0x55bd6966eddd odr_subtypes_equivalent_p
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-devirt.cc:627
0x55bd6966f5fe odr_types_equivalent_p
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-devirt.cc:1377
0x55bd69670317 odr_types_equivalent_p(tree_node*, tree_node*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-devirt.cc:1598
0x55bd692a6a56 warn_type_compatibility_p
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto-symtab.cc:212
0x55bd692a90a2 lto_symtab_merge
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto-symtab.cc:335
0x55bd692a90a2 lto_symtab_merge_decls_2
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto-symtab.cc:645
0x55bd692a90a2 lto_symtab_merge_decls_1
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto-symtab.cc:869
0x55bd692a90a2 lto_symtab_merge_decls()
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto-symtab.cc:895
0x55bd692b6e62 read_cgraph_and_symbols(unsigned int, char const**)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto-common.cc:2931
0x55bd6928a32d lto_main()
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/lto/lto.cc:660
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.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
```

---

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python
--enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 15.0.9999 p, commit
2f960908caaad18d54ce7cb764ac470656e664c4' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3
bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250225 (experimental)
1b9e4fe2ff5f4711406cdcf0e6e183b247d9f42b (Gentoo Hardened 15.0.9999 p, commit
2f960908caaad18d54ce7cb764ac470656e664c4)
```

Reply via email to