https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117519
Bug ID: 117519 Summary: LTO ICE when building gloox: lto1: internal compiler error: symtab_node::verify failed Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: csfore at posteo dot net Target Milestone: --- Created attachment 59572 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59572&action=edit original preprocessed clientbase.ii and instantmucroom.ii Notes: -ansi is required, -fno-inline seems to be what is causing the ICE. ``` $ g++ clientbase.ii instantmucroom.ii -O2 -flto -fno-inline -ansi lto1: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. _ZN5gloox7MUCRoom8handleIqERKNS_2IQE/4950 (handleIq) Type: function definition analyzed Visibility: externally_visible semantic_interposition undef public weak comdat comdat_group:_ZN5gloox7MUCRoom8handleIqERKNS_2IQE one_only section:.text._ZN5gloox7MUCRoom8handleIqERKNS_2IQE (implicit_section) virtual Address is taken. References: Referring: *.LTHUNK0/571 (alias) _ZTVN5gloox14InstantMUCRoomE/5920 (addr) Read from file: /tmp/ccEI4KT2.o Unit id: 2 Function flags: count:1073741824 (estimated locally) Called by: Calls: _ZThn16_N5gloox7MUCRoom8handleIqERKNS_2IQE/572 (_ZThn16_N5gloox7MUCRoom8handleIqERKNS_2IQE) Type: function definition analyzed Visibility: externally_visible semantic_interposition prevailing_def_ironly public weak comdat comdat_group:_ZN5gloox7MUCRoom8handleIqERKNS_2IQE one_only section:.text._ZN5gloox7MUCRoom8handleIqERKNS_2IQE (implicit_section) virtual artificial Same comdat group as: *.LTHUNK0/571 Address is taken. References: Referring: _ZTVN5gloox14InstantMUCRoomE/5920 (addr) Read from file: /tmp/cc6QyeIG.o Unit id: 1 Function flags: calls_comdat_local merged_comdat indirect_call_target Thunk fixed offset -16 virtual value 0 indirect_offset 0 has virtual offset 0 Called by: Calls: *.LTHUNK0/571 (can throw external) during IPA pass: modref lto1: internal compiler error: symtab_node::verify failed Please submit a full bug report, with preprocessed source (by using -freport-bug). 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 ``` -- ``` $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.0_pre20241103/work/gcc-15-20241103/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-languages=c,c++,go,fortran,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.0_pre20241103 p21' --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-libgomp --disable-libssp --disable-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.0 20241103 (experimental) (Gentoo Hardened 15.0.0_pre20241103 p21) ```