comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Yet another gnat bug
Date: Fri, 01 Feb 2019 23:17:17 +0000
Date: 2019-02-01T23:17:17+00:00	[thread overview]
Message-ID: <ly7eejyu82.fsf@pushface.org> (raw)
In-Reply-To: 62cfed2a-f9b8-4df4-be2f-af3b9343cc66@googlegroups.com

George Shapovalov <gshapovalov@gmail.com> writes:

> On Friday, February 1, 2019 at 9:41:08 PM UTC+1, Simon Wright wrote:
>> but I get
>> 
>> $ gprbuild -p -P wann
>> wann.gpr:5:32: "../../libs/ada_common/src" is not a valid directory
>> gprbuild: "wann" processing failed
>
> Oops, that's a stale import of an extra lib I thought to use at one
> point but then rolled back. Apparently I forgot to remove the path,
> and I obviously still have that lib on my system, even if its not
> withed any more..
>
> Removed, you should be able to proceed now. Sorry about that.

OK, and all the compilers I have here fail in the same way:

FSF GCC 6, 7, 8, 9
GNAT 2016, 2017, 2018

For GCC 9, the relevant code in decl.c is

  /* If we get here, it means we have not yet done anything with this entity.
     If we are not defining it, it must be a type or an entity that is defined
     elsewhere or externally, otherwise we should have defined it already.  */
  gcc_assert (definition
	      || type_annotate_only
	      || is_type
	      || kind == E_Discriminant
	      || kind == E_Component
	      || kind == E_Label
	      || (kind == E_Constant && Present (Full_View (gnat_entity)))
	      || Is_Public (gnat_entity));

... and we are none the wiser.

I tried
  gprbuild -p -P wann.gpr -c -u -f wann-nets-vectors.adb
and it compiled OK except for loads of 'unimplemented' warnings.

Poking around at your main program, it seems that things go wrong at the
line

    package PNetV  is new PNet.vectors;

(i.e., I deleted stuff starting at the bottom, by the time I'd deleted
this line it compiled "OK".

> One other note: at first build the compiler may complain about missing
> obj/dbg dir. Please just run:
> mkdir -p obj/dbg 
> from the project dir (not src, one level above it).

'gprbuild -p' will create missing directories.

Or you could add

   for Create_Missing_Dirs use "true";

to your GPR (recent ones only).


  reply	other threads:[~2019-02-01 23:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-01 14:51 Yet another gnat bug George Shapovalov
2019-02-01 18:47 ` Dmitry A. Kazakov
2019-02-01 21:32   ` George Shapovalov
2019-02-01 20:41 ` Simon Wright
2019-02-01 21:26   ` George Shapovalov
2019-02-01 23:17     ` Simon Wright [this message]
2019-02-02  7:16       ` George Shapovalov
2019-02-02  2:00     ` Jere
2019-02-02  7:04       ` George Shapovalov
2019-02-01 21:22 ` Per Sandberg
2019-02-01 21:34   ` George Shapovalov
2019-02-01 21:36     ` George Shapovalov
2019-02-02  7:13       ` Per Sandberg
2019-02-02 19:05         ` George Shapovalov
2019-02-02 21:37           ` Per Sandberg
2019-02-04 12:28             ` George Shapovalov
2019-02-04 15:30               ` joakimds
2019-02-04 16:11               ` Simon Wright
2019-02-05 19:16                 ` George Shapovalov
2019-02-05 20:37                   ` Simon Wright
2019-02-06 10:53                     ` George Shapovalov
replies disabled

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