https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93214
Bug ID: 93214
Summary: Ada LTO bootstrap fails with undefined reference to
__gnat_debug_raise_assert_failure
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: jamborm at gcc dot gnu.org
CC: hubicka at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux
Target: x86_64-linux
Since r279563, Ada LTO bootstrap fails because of undefined reference
to __gnat_debug_raise_assert_failure, undefined reference to
__gnat_debug_raise_exception and undefined reference to
__gnat_unhandled_exception.
(Note that in the past I incorrectly claimed this was happening only
with an old system compiler but that was a mistake). This is
reproducible for example also on compile farms gcc67, just configure
with --enable-languages=c,c++,ada --disable-werror
--with-build-config=bootstrap-lto and run make.
In the run up to the failure, there is also a number of
-Wlto-type-mismatch warnings about various types not matching their
"original declarations."