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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a5e:c00a:: with SMTP id u10mr28975077iol.24.1560013634373; Sat, 08 Jun 2019 10:07:14 -0700 (PDT) X-Received: by 2002:a9d:6298:: with SMTP id x24mr13609854otk.206.1560013634117; Sat, 08 Jun 2019 10:07:14 -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.216.MISMATCH!g15no425820itd.0!news-out.google.com!l135ni478itc.0!nntp.google.com!g15no425815itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 8 Jun 2019 10:07:13 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=179.176.43.109; posting-account=1Xv-6QoAAACDoVuHxsOQybzr2Y_PgwKz NNTP-Posting-Host: 179.176.43.109 References: <47f671ea-bd40-4a98-8a34-8e99d94622cb@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Starting learning ADA From: =?UTF-8?Q?Ricardo_Brand=C3=A3o?= Injection-Date: Sat, 08 Jun 2019 17:07:14 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56561 Date: 2019-06-08T10:07:13-07:00 List-Id: Hi Simon >=20 > Earlier, you said you'd installed CE 2019, the Mac (Darwin) version of > this already includes GNATCOLL.Core (& therefore GNATCOLL.JSON). >=20 I'm using Windows 10, and I found out, following the message from Joakim, i= t's really have the gnatcool package on GNAT CE installation on directory \= GNAT\2019\share\gpr. The files are: gnacool.gpr gnacool_gmp.gpr gnacool_iconv.gpr > > In Windows: > > - I got to repository directory and: > > - make setup > > - make install > > > > The output: > > > >> make setup >=20 > Looks as though you need 'make build' in between these two. >=20 > >> make install > > gprinstall -p -f --target=3Dexecutable:gcc.exe -XGNATCOLL_MMAP=3Dyes > > -XGNATCOLL_MADVISE=3Dyes -XGNATCOLL_VERSION=3D0.0 -XGNATCOLL_OS=3Dunix >=20 > Something seriously wrong here. The target should be something like > x86_64-pc-mingw32 (here, it's x86_64-apple-darwin15). The OS should of > course be Windows. >=20 Even if I change unix for x86_64-pc-mingw32 the problem continue. I imagine it's some PATH, or installation problem. The last line says that = could not find gnatcool.gpr file, so I copied it from \GNAT\2019\share\gpr = and tried to run again, and I got a lot of errors saying that don't find to= olchains, project file, etc. gprbuild -p -m --target=3Dexecutable:gcc.exe -j0 -XGNATCOLL_MMAP=3Dyes -XG= NATCOLL_MADVISE=3Dyes -XGNATCOLL_VERSION=3D0.0 -XGNATCOLL_OS=3Dunix -XBUILD= =3DPROD -XLIBRARY_TYPE=3Dstatic -XXMLADA_BUILD=3Dstatic -XGPR_BUILD=3Dstat= ic \ -XGNATCOLL_MMAP=3Dyes -XGNATCOLL_MADVISE=3Dyes -XGNATCOLL_V= ERSION=3D0.0 -XGNATCOLL_OS=3Dunix -XBUILD=3DPROD gnatcoll.gpr gprconfig: can't find a toolchain for the following configuration: gprconfig: language 'c', target 'executable:gcc.exe', default runtime gprconfig: can't find a toolchain for the following configuration: gprconfig: language 'ada', target 'executable:gcc.exe', default runtime gnatcoll.gpr:3:06: unknown project file: "xmlada_dom" gnatcoll.gpr:4:06: unknown project file: "xmlada_input" gnatcoll.gpr:5:06: unknown project file: "xmlada_unicode" gnatcoll.gpr:6:06: unknown project file: "xmlada_sax" gnatcoll.gpr:7:06: unknown project file: "xmlada_schema" gnatcoll.gpr:8:06: unknown project file: "gpr" gprbuild: "gnatcoll.gpr" processing failed make: *** [build-static] Error 4 > You said that the Linux attempt couldn't find gprconfig. Were you using > the CE 2019 suite? What was the PATH? Actually I'm using Ubuntu Subsystem for Windows 10. It's a command line sys= tem. So, to compile Ada programs, I installed gnat using: sudo apt-get install gnat And when it doesn't find gprconfig, I installed gprbuild as I mentioned in = the first message of this thread. So, my question is: to run Ada from a command line Linux OS, install gnat f= rom apt-get is the best way? And if yes, how to download and install librar= ies? Thanks Ricardo Brand=C3=A3o