Stephen Leake writes: > 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.
The package gcc provides the symlink /usr/bin/gcc -> gcc-x.y and depends on the package gcc-x.y. Here, x.y=4.3. The package gnat provides the symlink /usr/bin/gnatgcc -> gcc-x.y and depends on the package gcc-x.y. Here, x.y = 4.4. Therefore, the proper fix is to patch gprmake to call gnatgcc instead of gcc. This ensures that gprmake always call the same version of gcc as gnat does. (Also, you can have both gcc-4.3 and gcc-4.4 installed at the same time; this is indeed your case.) -- Ludovic Brenta. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org