This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/80590] [8 regression] non-bootstrap build failure of Ada runtime
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Sep 2017 08:26:59 +0000
- Subject: [Bug ada/80590] [8 regression] non-bootstrap build failure of Ada runtime
- Auto-submitted: auto-generated
- References: <bug-80590-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80590
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
--- Comment #14 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Something like this would fix it:
> ...
> diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
> index 081a63a..1d5a476 100644
> --- a/gcc/ada/gcc-interface/misc.c
> +++ b/gcc/ada/gcc-interface/misc.c
> @@ -330,6 +330,8 @@ internal_error_function (diagnostic_context *context,
> const char *msgid,
> sp.Array = buffer;
>
> xloc = expand_location (input_location);
> + if (!xloc.file)
> + xloc.file = "<unknown>";
> if (context->show_column && xloc.column != 0)
> loc = xasprintf ("%s:%d:%d", xloc.file, xloc.line, xloc.column);
> else
This only papers over the issue though, the problem is here:
#9 0x000000000087e9de in __gnat_eh_personality ()
at gcc/ada/raise.c:87
#10 0x00007ffff69eda43 in _Unwind_RaiseException (exc=0x3bd6d60)
at /scratch/gcc/w/gcc-4.7.3/linux/gcc-2012.09-90/libgcc/unwind.inc:113
#11 0x000000000087fc3f in __gnat_Unwind_RaiseException (e=0x3bd6d60)
at gcc/ada/raise-gcc.c:1427
The base compiler you're using is not binary compatible with GCC 8 so you need
to bootstrap the compiler instead of just building it, or upgrade it.
There is no plan to fix this in the immediate future.