comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ada-mode: Debian sid compilation failure
Date: Wed, 25 Mar 2020 20:03:14 +0000
Date: 2020-03-25T20:03:14+00:00	[thread overview]
Message-ID: <lyv9mskxrx.fsf@pushface.org> (raw)
In-Reply-To: 5811e1d3-d536-4998-a95c-c3cc3b42d14a@googlegroups.com

Per Jakobsen <pdj@knaldgas.dk> writes:

> søndag den 22. marts 2020 kl. 12.10.03 UTC+1 skrev Mart van de Wege:
>> Since gnat_util lives in gnatprj on Debian, I patched that in
>> ada_mode_wisi_parse.gpr.gp and build *seems* to work fine, until it
>> errors out with:
>> 
>>    compilation of wisitoken-parse-lr.adb failed
>
> Yep, drops out there with me as well.
>
> Although, before that, mine complains about:
> sal-gen_bounded_definite_stacks.ads:101:06: visibility of aspect for
> "Stack" changes after freeze point
> sal-gen_bounded_definite_stacks.ads:101:27: Meaning of "Top" differs
> because of declaration at line 96
>
> GPRBUILD Community 2019 (20190517) (x86_64-pc-linux-gnu)
> GNATMAKE 9.3.0

The messages on :101 are a problem with GCC 9. I don't have a
compilation to hand, but the reason for the overall failure is likely
that the compilation is done with -gnatwe (treat warnings as errors).

This is the current version of the code:

   type Stack (Size : Size_Type) is tagged record
      Top  : Base_Peek_Type := Invalid_Peek_Index; -- empty
      Data : Element_Array (1 .. Size);
      --  Top of stack is at Data (Top).
      --  Data (1 .. Top) has been set at some point.
   end record with
     Dynamic_Predicate => Stack.Top in 0 .. Stack.Size;

  parent reply	other threads:[~2020-03-25 20:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-22 11:02 ada-mode: Debian sid compilation failure Mart van de Wege
2020-03-25 11:11 ` Per Jakobsen
2020-03-25 14:14   ` Mart van de Wege
2020-03-25 20:03   ` Simon Wright [this message]
2020-03-26 13:38     ` Mart van de Wege
2020-03-26 15:23       ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox