comp.lang.ada
 help / color / mirror / Atom feed
* Starting learning ADA
@ 2019-06-08 15:26 Ricardo Brandão
  2019-06-08 15:53 ` Simon Wright
  2019-06-08 15:55 ` joakimds
  0 siblings, 2 replies; 18+ messages in thread
From: Ricardo Brandão @ 2019-06-08 15:26 UTC (permalink / raw)


Hi,

This is my first contact with Ada language. 

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).

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 secure protocol to an IoT network, my idea is use Ada to force me learn Ada in an "almost" real application.

But, I'm a bit confused on how to search, install, get some examples of libraries that I'll use to achieve my goal.

For instance, googling some library to deal with Json files, I found out the GNATCOOL.JSON package [2]. 

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.

In Windows:
- I got to repository directory and:
  - make setup
  - make install

The output:

> make setup
> make install
gprinstall -p -f --target=executable:gcc.exe -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD  --sources-subdir=include/gnatcoll --prefix=/d/GNAT/2019/bin/.. -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static \
                --build-name=static -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD \
                --build-var=LIBRARY_TYPE --build-var=GNATCOLL_BUILD \
                --build-var=GNATCOLL_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:

In Linux:

$ make setup
make: gprconfig: Command not found
Makefile:71: *** No toolchain found for target "x86_64-linux-gnu".  Stop.

# So, I tried to install gprconfig (Ubuntu gprbuild package)
$ sudo apt-get install gprbuild

# Tried make setup again
$ make setup

raised STORAGE_ERROR : stack overflow or erroneous memory access
Makefile:71: *** No toolchain found for target "x86_64-linux-gnu".  Stop.

So, what are the "correct" paths to search, install, and test libraries? 

Thanks


[1] https://learn.adacore.com/index.html
[2] http://docs.adacore.com/live/wave/gnatcoll/html/gnatcoll_ug/json.html?highlight=json
[3] https://github.com/AdaCore/gnatcoll-core

--
Ricardo Brandão

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-06-10 17:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-08 15:26 Starting learning ADA Ricardo Brandão
2019-06-08 15:53 ` Simon Wright
2019-06-08 17:07   ` Ricardo Brandão
2019-06-09  1:42     ` Dennis Lee Bieber
2019-06-09  7:25       ` Niklas Holsti
2019-06-08 15:55 ` joakimds
2019-06-08 17:10   ` Ricardo Brandão
2019-06-08 17:46     ` joakimds
2019-06-08 20:10       ` Simon Wright
2019-06-09 14:39         ` Ricardo Brandão
2019-06-09 17:44           ` Simon Wright
2019-06-09 18:12             ` Ricardo Brandão
2019-06-09 19:29               ` Dmitry A. Kazakov
2019-06-10 17:40               ` Dennis Lee Bieber
2019-06-09 18:23             ` Dennis Lee Bieber
2019-06-09 14:31       ` Ricardo Brandão
2019-06-09 19:35         ` Dmitry A. Kazakov
2019-06-10 12:28           ` Ricardo Brandão

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox