public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/105600] New: ICE with LTO when building Mumble from git on arm64
@ 2022-05-13 21:13 sam at gentoo dot org
  2022-05-13 21:55 ` [Bug lto/105600] " pinskia at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: sam at gentoo dot org @ 2022-05-13 21:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105600
           Summary: ICE with LTO when building Mumble from git on arm64
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sam at gentoo dot org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Reported this downstream at https://bugs.gentoo.org/843974 initially.

Apologies for not being able to give more information yet. I'm familiar with
reducing "normal" ICEs but I'm getting stuck with how to get more info because
of LTO.

One issue is it seems like I can't find a way to keep all the temporary files
required.

The bug seems similar to bug 102067 (same stacktrace?).

ICE occurs when building Mumble from their git repo
(https://github.com/mumble-voip/mumble) at
4f50172c5c8bc7c425efb350377106d3e83a7e79.

Needs LTO.

Occurs on arm64 with GCC 11.3.0 and GCC 12.1.0.

I've reduced it down to:
```
$ /usr/bin/c++ -freport-bug -flto=99 -o /dev/null -O2 -fsanitize=undefined -O3
-DNDEBUG -Wl,-z,relro -Wl,-z,now
/root/mumble/build/src/tests/TestSettingsJSONSerialization/CMakeFiles/TestSettingsJSONSerialization.dir/TestSettingsJSONSerialization.cpp.o
/root/mumble/build/src/tests/TestSettingsJSONSerialization/../../mumble/CMakeFiles/mumble_client_object_lib.dir/JSONSerialization.cpp.o
during IPA pass: icf
lto1: internal compiler error: Segmentation fault
0xb13af3 crash_signal
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/toplev.cc:322
0xdc3e64 varpool_node::get_constructor()
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/varpool.cc:300
0x15b8f53 ipa_icf::sem_variable::equals(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*,
simple_hashmap_traits<default_hash_traits<symtab_node*>, ipa_icf::sem_item*>
>&)
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/ipa-icf.cc:1695
0x15b9f67 ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(bool)
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/ipa-icf.cc:2732
0x15c0683 ipa_icf::sem_item_optimizer::execute()
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/ipa-icf.cc:2464
0x15c1d6f ipa_icf_driver
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/ipa-icf.cc:3600
0x15c1d6f ipa_icf::pass_ipa_icf::execute(function*)
        /usr/src/debug/sys-devel/gcc-12.1.0/gcc-12.1.0/gcc/ipa-icf.cc:3647
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/aarch64-unknown-linux-gnu/12.1.0/../../../../aarch64-unknown-linux-gnu/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
```

What more information do you need? I can give access to the environment if
required. Cheers.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-06-23 10:12 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 21:13 [Bug lto/105600] New: ICE with LTO when building Mumble from git on arm64 sam at gentoo dot org
2022-05-13 21:55 ` [Bug lto/105600] " pinskia at gcc dot gnu.org
2022-05-17 10:18 ` [Bug ipa/105600] " acoplan at gcc dot gnu.org
2022-05-17 10:29 ` acoplan at gcc dot gnu.org
2022-05-18  9:25 ` acoplan at gcc dot gnu.org
2022-05-18  9:26 ` acoplan at gcc dot gnu.org
2022-05-18  9:50 ` acoplan at gcc dot gnu.org
2022-05-18 11:04 ` marxin at gcc dot gnu.org
2022-05-18 11:40 ` [Bug ipa/105600] [12/13 Regression] ICE with LTO when building Mumble since r12-5696-g53caa4723d8de73f marxin at gcc dot gnu.org
2022-05-18 12:09 ` marxin at gcc dot gnu.org
2022-05-18 22:15 ` sam at gentoo dot org
2022-05-19  7:11 ` marxin at gcc dot gnu.org
2022-05-19  7:44 ` acoplan at gcc dot gnu.org
2022-05-20  7:02 ` [Bug ipa/105600] [9/10/11/12/13 " rguenth at gcc dot gnu.org
2022-05-20  9:22 ` [Bug ipa/105600] [9/10/11/12/13 Regression] ICE with LTO when building Mumble acoplan at gcc dot gnu.org
2022-05-20 11:44 ` marxin at gcc dot gnu.org
2022-05-27  9:48 ` [Bug ipa/105600] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-23  4:08 ` cvs-commit at gcc dot gnu.org
2022-06-23  4:08 ` [Bug ipa/105600] [10/11/12 " marxin at gcc dot gnu.org
2022-06-23 10:10 ` cvs-commit at gcc dot gnu.org
2022-06-23 10:12 ` cvs-commit at gcc dot gnu.org
2022-06-23 10:12 ` marxin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).