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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:2792:: with SMTP id g140mr9144420ita.81.1560015967089; Sat, 08 Jun 2019 10:46:07 -0700 (PDT) X-Received: by 2002:a9d:1b21:: with SMTP id l30mr18731870otl.5.1560015966840; Sat, 08 Jun 2019 10:46:06 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!s188no436581itb.0!news-out.google.com!l126ni410itl.0!nntp.google.com!s188no436575itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 8 Jun 2019 10:46:06 -0700 (PDT) In-Reply-To: <441bc6de-05c5-4e2f-b601-110e8400cec7@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.150.24.77; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 188.150.24.77 References: <47f671ea-bd40-4a98-8a34-8e99d94622cb@googlegroups.com> <441bc6de-05c5-4e2f-b601-110e8400cec7@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0f5a2a6b-d467-434c-8f3e-0964793e93ef@googlegroups.com> Subject: Re: Starting learning ADA From: joakimds@kth.se Injection-Date: Sat, 08 Jun 2019 17:46:07 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56565 Date: 2019-06-08T10:46:06-07:00 List-Id: Den l=C3=B6rdag 8 juni 2019 kl. 19:10:20 UTC+2 skrev Ricardo Brand=C3=A3o: > Hi Joakim, >=20 > > I wouldn't recommend cloning the github repository of gnatcoll directly= because it's probably "the latest development version" and may use feature= s of the latest development version of the GNAT compiler. I therefore would= n't expect to be able to build that code with an older compiler. However, a= version of gnatcoll is installed with the GNAT Community Edition. In the 2= 019 version of GNAT CE the gnatcoll.gpr file can be found in C:\GNAT\2019\s= hare\gpr > > It should be possible to with "gnatcoll.gpr"; in your gpr-file to be go= od to go. > > >=20 > To run it from command line, how to inform the gprbuild to look a package= in a specif directory? >=20 > Thanks >=20 > -- > Ricardo Brand=C3=A3o Hi Ricardo, In the past I've used an environment variable ADA_PROJECT_PATH to specify t= his, but I don't think it's necessary anymore. It is nowadays sufficient to= specify the PATH variable to find the GNAT compiler and from that gprbuild= can figure out where the gpr-files should be. >From what I understand you have installed two different GNAT compilers on y= our computer and that's what causes the issues you see. First GNAT CE 2019 = has been installed and then the FSF GNAT compiler by "sudo apt install gnat= " and the FSF version of gprbuild by "sudo apt install gprbuild". The GNAT = CE and FSF GNAT compilers are two different compilers and the binaries they= produce are not compatible with each other (others in this forum can expla= in why much better than I can). In the GNAT CE installation, the gnatcoll l= ibrary is pre-compiled by the GNAT CE compiler. Those binaries cannot be us= ed by the FSF GNAT compiler. To get the computer in working order I suggest= de-installing the FSF version of GNAT and gprbuild and then use the normal= command prompt for using gprbuild (GNAT CE 2019 version). When opening the normal command prompt in Windows 10 and one executes "gcc = --version" it should say it is the GNAT Community 2019 version of the compi= ler. You could try that in the Ubuntu Subsystem and I predict is will say g= cc is the FSF version. Best regards, Joakim