https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113208
Bug ID: 113208 Summary: [14 Regression] lto1: error: Alias and target's comdat groups differs Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- seen with trunk 20240101, building the poedit package with -flto. hints where to start the reduction are appreciated. [...] g++ -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/packages/gcc/tmp/poedit-3.4.2=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/home/packages/gcc/tmp/poedit-3.4.2=/usr/src/poedit-3.4.2-1 -pthread -I/usr/include -I/usr/include/libsecret-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.2 -I/usr/include/wx-3.2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/include/gtkspell-3.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/enchant-2 -pthread -I/usr/include/lucene++ -DHAVE_PUGIXML -g -Wall -O0 -DwxNO_UNSAFE_WXSTRING_CONV=1 "-DPOEDIT_PREFIX=\"/usr\"" -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,-z,relro -o poedit attentionbar.o cat_update.o cat_sorting.o catalog.o catalog_po.o catalog_json.o catalog_xliff.o chooselang.o colorscheme.o commentdlg.o concurrency.o configuration.o custom_buttons.o customcontrols.o custom_notebook.o edapp.o edframe.o editing_area.o edlistctrl.o export_html.o extractors/extractor.o extractors/extractor_gettext.o extractors/extractor_legacy.o filemonitor.o fileviewer.o findframe.o gexecute.o hidpi.o icons.o language.o languagectrl.o wx/main_toolbar.o manager.o menus.o pluralforms/pl_evaluate.o prefsdlg.o pretranslate.o progressinfo.o propertiesdlg.o qa_checks.o recent_files.o sidebar.o spellchecking.o syntaxhighlighter.o text_control.o titleless_window.o tm/suggestions.o tm/transmem.o tm/tmx_io.o unicode_helpers.o utility.o welcomescreen.o http_client.o http_client_casablanca.o cloud_accounts.o cloud_accounts_ui.o crowdin_client.o crowdin_gui.o localazy_client.o localazy_gui.o keychain/keytar_posix.o wx_backports/wx_gtk_activityindicator.o wx_backports/wx_gtk_nativewin.o compiled_xrc.o -L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk3u_xrc-3.2 -lwx_baseu_xml-3.2 -lwx_gtk3u_webview-3.2 -lwx_gtk3u_core-3.2 -lwx_baseu_net-3.2 -lwx_baseu-3.2 -llucene++ -lcld2 -lpugixml -lcpprest -lboost_iostreams -lboost_thread -lpthread -lboost_system -lssl -lcrypto -lsecret-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu -lboost_thread -lpthread -lboost_regex -lboost_system -licui18n -licuuc -licudata -lgtkspell3-3 -lenchant-2 -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 lto1: error: Alias and target's comdat groups differs _ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EEC2Ev/70336 (__ct_base ) Type: function definition analyzed Visibility: externally_visible semantic_interposition no_reorder prevailing_def_ironly public weak comdat comdat_group:_ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EEC2Ev one_only visibility_specified References: __gxx_personality_v0/23086 (addr) Referring: _ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EEC1Ev/327239 (alias) Read from file: catalog.o Unit id: 4 Function flags: merged_comdat Called by: _ZNSt10shared_ptrI7CatalogEC1Ev/70334 Calls: _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC1Ev/37977 _ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EEC1Ev/327239 (__ct_comp ) Type: function definition analyzed alias Visibility: externally_visible semantic_interposition prevailing_def_ironly public weak comdat comdat_group:_ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EEC5Ev one_only visibility_specified References: _ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EEC2Ev/70336 (alias) Referring: Read from file: edframe.o Unit id: 16 Function flags: merged_comdat Called by: _ZNSt12__shared_ptrI7CatalogLN9__gnu_cxx12_Lock_policyE2EE5resetEv/327343 Calls: during IPA pass: modref lto1: internal compiler error: verify_cgraph_node failed 0x6b5ef0 cgraph_node::verify_node() ../../src/gcc/cgraph.cc:3948 0x1a81c29 symtab_node::verify() ../../src/gcc/symtab.cc:1362 0x1a7c774 symtab_node::verify_symtab_nodes() ../../src/gcc/symtab.cc:1390 0x1a79917 symtab_node::checking_verify_symtab_nodes() ../../src/gcc/cgraph.h:686 0x1a79917 symbol_table::remove_unreachable_nodes(_IO_FILE*) ../../src/gcc/ipa.cc:678 0x686e54 read_cgraph_and_symbols(unsigned int, char const**) ../../src/gcc/lto/lto-common.cc:2978 0x1fcc99a lto_main() ../../src/gcc/lto/lto.cc:654 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-14/README.Bugs> for instructions. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status