From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,432c3b9d4763b8fe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Where to good the good ASIS version for my version of GNAT ? Date: Sat, 06 Nov 2010 09:53:53 +0100 Organization: A noiseless patient Spider Message-ID: <87eiaysuhq.fsf@ludovic-brenta.org> References: <2381c925-4186-4bcd-b38d-1857c71d8b44@t35g2000yqj.googlegroups.com> <48810eb0-9f2c-4268-bd8b-78e48eb46c0f@32g2000yqz.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="d5B4u77VYwqgEhUvmkKy+A"; logging-data="17923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q/uSqJaU31z23OIIgNrnx" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:dJLNSKNyjZ3+bnlqC+cu28+MtHY= sha1:5TjAme76DPoMHs2TUz0yWF2d9M4= Xref: g2news1.google.com comp.lang.ada:15321 Date: 2010-11-06T09:53:53+01:00 List-Id: "Yannick Duchêne (Hibou57)" writes: > Le Fri, 05 Nov 2010 14:03:13 +0100, Ludovic Brenta > 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.