From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: unknown error mesage Date: Wed, 17 Mar 2021 20:29:45 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <6050efa3$0$30044$e4fe514c@news.kpn.nl> <6051b1b4$0$31158$e4fe514c@news.kpn.nl> <60520150$0$20798$e4fe514c@news.kpn.nl> NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cancel-Lock: sha1:VxsjdRKNzO2VO7vZHt/f2Ey3K38= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61600 List-Id: ldries46 writes: > Op 17-3-2021 om 13:06 schreef Simon Wright: >> The complaint about mismatched versions is almost certainly derived from >> the version info in the first line of an ALI file. >> >> Here I see (from a collection of old StackOverflow-related >> investigations) >> >> First line Compiler >> ----------------- ------------ >> V "GNAT Lib v10" FSF GCC 10 >> V "GNAT Lib v11" FSF GCC 11 >> V "GNAT Lib v2019" GNAT CE 2019 >> V "GNAT Lib v2020" GNAT CE 2020 >> V "GNAT Lib v7" FSF GCC 7 >> V "GNAT Lib v8" FSF GCC 8 >> V "GNAT Lib v9" FSF GCC 9 >> >> Using a wrong ADA_PROJECT_PATH/GPR_PROJECT_PATH can lead to this. Using >> gprbuild -v can help. >> >> Also, >> >> * Compile unit U with A.gpr which puts the ALI in directory A_OBJ >> * Move unit U into the source tree for B.gpr which put the ALI in >> directory B_OBJ >> * Run gprclean on A.gpr, which doesn't delete U.ali because U is no logner >> one of its sources >> * Change compiler! I meant, if you run those steps in that order and then use a different compiler to rebuild your project, you'll have one of the old compiler's ALIs where it shouldn't be, and if gnatbind sees it you'll end up with mismatched compiler versions and no amount of gprclean will fix it. On the other hand, you have been reinstalling and rebuilding ... > This are the values: > GPR_PROJECT_PATH=C:\GNAT\GtkADA\lib\gnat;D:\ada\project\template-parser > ADA_PROJECT_PATH=C:\GNAT\GtkADA\lib\gnat;..... Sorry, no idea whether these are what they "should" be > I think The Path és are the same, I am using GNAT  Studio Community > version 2020 and all Gtk.ali are GNAT Lib v2020 > gprbuild -v did not change anything. But reading the output might show you what it did. Also, gprbuild ... -bargs -v might show you what gnatbind thinks it's doing. > Changing the compiler is the > worst thing I can do because I cannot find any straight forward method > os installing like the mthod from Adacore No, not suggesting you should change, but this problem might be a result of having changed in the past.