Nicolas Boulenguez <nicolas.bouleng...@free.fr> writes:

> Hello. Thanks for packaging this promising tool.

You're welcome.

> The first example of the tutorial fails:
>
> $ cd first_steps
> $ make default.cgpr
> gprconfig --batch --config Ada,,default  --config C -o default.cgpr
> Error: no matching compiler found for --config=Ada
> Creating configuration file: default.cgpr

I get this as well. The cause is that gcc is still at 4.3.4, while
gnat is at 4.4.3; gprconfig tries to find an Ada runtime for 4.4.3 by
searching in the gcc directories for 4.3.4 (which is a little odd, but
it works if everything is consistent).

Ludovic: this is similar to the gcc problem I had before, but that's
fixed; any suggestions.

In particular, this works in my unstable schroot that has gcc 4.4.2 and
gnat 4.4.2 installed.

You can see this in detail if you run gprconfig -v -v.

The question then is; why is gcc still at 4.3.4, when gnat-4.4 directly
depends on gcc-4.4? Here's what 'aptitude show' says:

ste...@shevek$ aptitude show gcc
Package: gcc
State: installed
Automatically installed: yes
Version: 4:4.3.4-1
Priority: optional
Section: devel
Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org>
Uncompressed Size: 65.5k
Depends: cpp (>= 4:4.3.4-1), gcc-4.3 (>= 4.3.4-1)

ste...@shevek$ aptitude show gnat-4.4
Package: gnat-4.4
New: yes
State: installed
Automatically installed: no
Version: 4.4.2-6
Priority: optional
Section: devel
Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org>
Uncompressed Size: 59.5M
Depends: gnat-4.4-base (= 4.4.2-6), gcc-4.4 (>= 4.4.2-1), libgnat-4.4 (=
         4.4.2-6), libc6-dev (>= 2.9-21), libc6 (>= 2.2), libgcc1 (>= 1:4.1.1),
         libgmp3c2, libgnatprj4.4 (>= 4.4.2-6), libgnatvsn4.4 (>= 4.4.2-6),
         libmpfr1ldbl

ste...@shevek$ aptitude show gcc-4.4
Package: gcc-4.4
New: yes
State: installed
Automatically installed: yes
Version: 4.4.2-3
Priority: optional
Section: devel
Maintainer: Debian GCC Maintainers <debian-...@lists.debian.org>
Uncompressed Size: 4,694k
Depends: gcc-4.4-base (= 4.4.2-3), cpp-4.4 (= 4.4.2-3), binutils (>= 2.20),
         libgcc1 (>= 1:4.4.2-3), libgomp1 (>= 4.4.2-3), libc6 (>= 2.7)

yet 'gcc --version' gives:

ste...@shevek$ gcc --version
gcc (Debian 4.3.4-2) 4.3.4

ste...@shevek$ schroot -- gcc --version
I: [sid chroot] Running command: “gcc --version”
gcc (Debian 4.4.2-7) 4.4.2

> More details that may be of interest:
>
> $ gprconfig --help
> Invalid command line switch: --
> ...
>             The known compilers are: 
> ...

I get this in the schroot as well. I'll see if I can debug it.

> There seems to be an upstream bug (--help and -h differ) 

Yes. GNAT GPL 2009 does not have this bug; gprbuild 1.2.0 is based on
GNAT GPL 2008.

> and a packaging bug (the XML description of the GNAT compiler does
> not match the debian default).

Actually, it seems to be a problem with the gcc version dependencies.

I will leave my main system broken for the moment, in case someone has
a debug/test suggestion. In the meantime, can you verify what version
of gcc you have, and try to get it truly upgraded to gcc 4.4.2 to see
if gprconfig works then?

-- 
-- Stephe



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to