comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Where to good the good ASIS version for my version of GNAT ?
Date: Sat, 06 Nov 2010 09:53:53 +0100
Date: 2010-11-06T09:53:53+01:00	[thread overview]
Message-ID: <87eiaysuhq.fsf@ludovic-brenta.org> (raw)
In-Reply-To: op.vlqjukunule2fv@garhos

"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:
> Le Fri, 05 Nov 2010 14:03:13 +0100, Ludovic Brenta
> <ludovic@ludovic-brenta.org> a écrit:
>> As for compiling any version of ASIS with FSF GCC, see the Debian
>> Policy for Ada[1], it provides a couple of hints.  Also look at
>> gnatvsn.ads in both GCC[2] and your source version of ASIS; they must
>> be identical, in particular the result of GNAT_Version_String.
>> Finally, the end of Stage 1 for GCC 4.5 was in September 2009, so the
>> version of ASIS closest to it is GPL 2009, not 2010.  This is also in
>> the Debian Policy for Ada.
>>
>> [1] http://people.debian.org/~lbrenta/debian-ada-policy.html#ASIS
>> [2]
>> http://git.infradead.org/gcc.git/blob/gcc-4_5-branch:/gcc/ada/gnatvsn.ads
>
> I've just tried to change the version string in asis-2009-src. Not
> better, the same message “raised PROGRAM_ERROR : Inconsistent versions
> of GNAT and  ASIS”. There must be another version tag somewhere (or a
> way to check it  programmatically in), or else the version strings are
> not identical. This  latter is unlikely to be, as I get the version
> string from MinGW source  for GNAT. It says “GNU Ada” (no version
> number, like with the FSF GCC).

As I explained in [1] above, you need more than just gnatvsn, you need
to replace all of the gnat subdirectory of ASIS with the corresponding
sources from GCC.  That's what I did by creating libgnatvsn in Debian.

(Note: this library also contains an object file, version.o, produced
from version.c, which is generated during the configure step of GCC).

I think you should have a look at Debian's patch to produce libgnatvsn
from the GCC sources:

http://green.ada-france.org:8081/revision/file/3e1634dcc6a0eebe6abb1ce86da217ef806dbfe3/debian/patches/ada-libgnatvsn.diff

-- 
Ludovic Brenta.



  reply	other threads:[~2010-11-06  8:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05  8:41 Where to good the good ASIS version for my version of GNAT ? Yannick Duchêne (Hibou57)
2010-11-05 10:44 ` Yannick Duchêne (Hibou57)
2010-11-05 11:00 ` sjw
2010-11-05 11:26   ` Yannick Duchêne (Hibou57)
2010-11-05 13:03     ` Ludovic Brenta
2010-11-06  0:37       ` Simon Wright
2010-11-06  3:25         ` Yannick Duchêne (Hibou57)
2010-11-06 13:55           ` Simon Wright
2010-11-06  5:28         ` Yannick Duchêne (Hibou57)
2010-11-06 12:14           ` Yannick Duchêne (Hibou57)
2010-11-06 14:11             ` Simon Wright
2010-11-08 17:51         ` Simon Wright
2010-11-06  3:22       ` Yannick Duchêne (Hibou57)
2010-11-06  6:19       ` Yannick Duchêne (Hibou57)
2010-11-06  8:53         ` Ludovic Brenta [this message]
2010-11-06 14:16           ` Simon Wright
2010-11-05 17:13 ` Vadim Godunko
2010-11-06  3:20   ` Yannick Duchêne (Hibou57)
2010-11-06  9:10   ` Yannick Duchêne (Hibou57)
2010-11-07  0:26 ` Yannick Duchêne (Hibou57)
replies disabled

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