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.2 required=5.0 tests=BAYES_00,URI_TRY_3LD autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a05:660c:a4d:: with SMTP id j13mr8741263itl.116.1560009310261; Sat, 08 Jun 2019 08:55:10 -0700 (PDT) X-Received: by 2002:a9d:6b83:: with SMTP id b3mr23528103otq.82.1560009310098; Sat, 08 Jun 2019 08:55:10 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!news.muarf.org!nntpfeed.proxad.net!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!s188no422903itb.0!news-out.google.com!l135ni471itc.0!nntp.google.com!s188no422902itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 8 Jun 2019 08:55:09 -0700 (PDT) In-Reply-To: <47f671ea-bd40-4a98-8a34-8e99d94622cb@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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Starting learning ADA From: joakimds@kth.se Injection-Date: Sat, 08 Jun 2019 15:55:10 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56560 Date: 2019-06-08T08:55:09-07:00 List-Id: Den l=C3=B6rdag 8 juni 2019 kl. 17:26:15 UTC+2 skrev Ricardo Brand=C3=A3o: > Hi, >=20 > This is my first contact with Ada language.=20 >=20 > I'm following the tutorial in Learn Adacore site [1], and so far it's ok.= I'm compiling the codes in Windows (using gprbuild.exe) and Linux Ubuntu (= using gnatmake). >=20 > But my idea is create more complex programs, running in IoT, desktop, and= servers. And as I'm doing my doctorate and need to do a prototype of a sec= ure protocol to an IoT network, my idea is use Ada to force me learn Ada in= an "almost" real application. >=20 > But, I'm a bit confused on how to search, install, get some examples of l= ibraries that I'll use to achieve my goal. >=20 > For instance, googling some library to deal with Json files, I found out = the GNATCOOL.JSON package [2].=20 >=20 > Trying to find where to download and install, I reached the Github repo [= 3]. I cloned it in Windows and Linux, but I didn't get to install it. >=20 > In Windows: > - I got to repository directory and: > - make setup > - make install >=20 > The output: >=20 > > make setup > > make install > gprinstall -p -f --target=3Dexecutable:gcc.exe -XGNATCOLL_MMAP=3Dyes -XGN= ATCOLL_MADVISE=3Dyes -XGNATCOLL_VERSION=3D0.0 -XGNATCOLL_OS=3Dunix -XBUILD= =3DPROD --sources-subdir=3Dinclude/gnatcoll --prefix=3D/d/GNAT/2019/bin/..= -XLIBRARY_TYPE=3Dstatic -XXMLADA_BUILD=3Dstatic -XGPR_BUILD=3Dstatic \ > --build-name=3Dstatic -XGNATCOLL_MMAP=3Dyes -XGNATCOLL_MA= DVISE=3Dyes -XGNATCOLL_VERSION=3D0.0 -XGNATCOLL_OS=3Dunix -XBUILD=3DPROD \ > --build-var=3DLIBRARY_TYPE --build-var=3DGNATCOLL_BUILD \ > --build-var=3DGNATCOLL_CORE_BUILD 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:24:06: unknown project file: "gpr" > gprinstall: "gnatcoll.gpr" processing failed > make: *** [install-static] Error 4: >=20 > In Linux: >=20 > $ make setup > make: gprconfig: Command not found > Makefile:71: *** No toolchain found for target "x86_64-linux-gnu". Stop. >=20 > # So, I tried to install gprconfig (Ubuntu gprbuild package) > $ sudo apt-get install gprbuild >=20 > # Tried make setup again > $ make setup >=20 > raised STORAGE_ERROR : stack overflow or erroneous memory access > Makefile:71: *** No toolchain found for target "x86_64-linux-gnu". Stop. >=20 > So, what are the "correct" paths to search, install, and test libraries?= =20 >=20 > Thanks >=20 >=20 > [1] https://learn.adacore.com/index.html > [2] http://docs.adacore.com/live/wave/gnatcoll/html/gnatcoll_ug/json.html= ?highlight=3Djson > [3] https://github.com/AdaCore/gnatcoll-core >=20 > -- > Ricardo Brand=C3=A3o Hi Ricardo, I wouldn't recommend cloning the github repository of gnatcoll directly bec= ause it's probably "the latest development version" and may use features of= the latest development version of the GNAT compiler. I therefore wouldn't = expect to be able to build that code with an older compiler. However, a ver= sion of gnatcoll is installed with the GNAT Community Edition. In the 2019 = version of GNAT CE the gnatcoll.gpr file can be found in C:\GNAT\2019\share= \gpr It should be possible to with "gnatcoll.gpr"; in your gpr-file to be good t= o go. Best regards, Joakim