Jordan Bettis writes:
> Package: asis-programs
> Version: 2007-2
> Severity: important
>
>
> gnatpp is not usable with gnat 4.3:
>
> [murat:~/projects/ada]$ gnatpp test_array.adb 
> gcc: error trying to exec 'gnat1': execvp: No such file or directory
> gnatpp: /home/jordanb/projects/ada/test_array.adb is not a legal Ada source
>
> (note that 'test_array.adb' is a valid ada program that compiles fine).

The problem is that gnatpp calls gcc (which doesn't know Ada) instead
of gnatgcc (which does).  This is a bug in the package; I've corrected
it and will upload momentarily.

> I've searched for 'gnat1' in apt-file, and it is appearently provided
> by gnat-4.1 but not gnat-4.3.

gnat-4.3 provides /usr/lib/gcc/x86_64-linux-gnu/4.3/gnat1 and gnatgcc
normally calls it.  For it to work, you must have gnat (>= 4.3)
installed in addition to gnat-4.3; I've tightened the dependencies of
asis-programs to that effect.

Thanks for th bug report.

-- 
Ludovic Brenta.

Attachment: pgppSZhfVO58z.pgp
Description: PGP signature

Reply via email to