From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Can .ads be compiled alone?
Date: Fri, 7 Nov 2014 20:01:41 -0600
Date: 2014-11-07T20:01:41-06:00 [thread overview]
Message-ID: <m3jti8$ar1$1@loke.gir.dk> (raw)
In-Reply-To: wccppczx79i.fsf@shell01.TheWorld.com
"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wccppczx79i.fsf@shell01.TheWorld.com...
...
>> Did it actually say "compile error"? I get a very different message
>> when I try it, and that message *is* further information.
>> Specifically, I get this:
>>
>> cannot generate code for file machinery_1_3.ads (package spec)
>> to check package spec for errors, use -gnatc
>
> Recent versions of gnat leave out the second line above.
> It's kind of pointless -- either you saw some error messages
> (other than the "cannot generate code" one), or you didn't.
> Either way, there's no point in then typing:
>
> gcc -gnatc -c machinery_1_3.ads
>
> because you already have the information you were looking for.
Not quite true: it's certainly useful for the guy who's writing batch files
for new ACATS tests and left out the -gnatc on a package specification
(usually of a B-Test). The second part is helpful for such users. (That may
be a community of one. ;-)
OTOH, most users should be using Gnatmake or GPRBuild to compile things and
would never see this message either way; Ada users compiling individual
files usually have missed the big picture. (Even for the ACATS, I use
Gnatmake to compile ACATS C-Tests. B-Tests unfortunately have to be compiled
individually so that the errors can be tied to a particular source unit.)
Randy.
next prev parent reply other threads:[~2014-11-08 2:01 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 5:21 Can .ads be compiled alone? moixa
2014-11-07 6:09 ` Jeffrey Carter
2014-11-07 17:26 ` Robert A Duff
2014-11-07 17:41 ` Jeffrey Carter
2014-11-07 6:20 ` J-P. Rosen
2014-11-07 7:48 ` Chris Moore
2014-11-07 14:54 ` Tero Koskinen
2014-11-07 15:49 ` Björn Lundin
2014-11-07 16:29 ` G.B.
2014-11-08 13:01 ` moixa
2014-11-08 14:55 ` G.B.
2014-11-07 16:29 ` G.B.
2014-11-07 16:44 ` Adam Beneschan
2014-11-07 17:14 ` Shark8
2014-11-08 21:31 ` Chris Moore
2014-11-07 16:50 ` Adam Beneschan
2014-11-07 17:14 ` Robert A Duff
2014-11-08 2:01 ` Randy Brukardt [this message]
2014-11-15 12:54 ` rriehle
2014-11-15 19:17 ` Robert A Duff
2014-11-15 19:19 ` Robert A Duff
2014-11-17 15:52 ` Adam Beneschan
2014-11-17 0:07 ` rriehle
2014-11-17 6:50 ` Simon Wright
2014-11-24 3:16 ` rriehle
2014-11-24 6:34 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox