comp.lang.ada
 help / color / mirror / Atom feed
From: "Ricardo Brandão" <rbrandao.br@gmail.com>
Subject: Re: Starting learning ADA
Date: Sat, 8 Jun 2019 10:07:13 -0700 (PDT)
Date: 2019-06-08T10:07:13-07:00	[thread overview]
Message-ID: <adf5d31e-0827-4377-9bf3-44d8cdd6db31@googlegroups.com> (raw)
In-Reply-To: <lyftok5azu.fsf@pushface.org>

Hi Simon

> 
> Earlier, you said you'd installed CE 2019, the Mac (Darwin) version of
> this already includes GNATCOLL.Core (& therefore GNATCOLL.JSON).
> 

I'm using Windows 10, and I found out, following the message from Joakim, it'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
> 
> Looks as though you need 'make build' in between these two.
> 


> >> make install
> > gprinstall -p -f --target=executable:gcc.exe -XGNATCOLL_MMAP=yes
> > -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix
> 
> 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.
> 
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 toolchains, project file, etc.

gprbuild -p -m --target=executable:gcc.exe  -j0 -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD  -XLIBRARY_TYPE=static -XXMLADA_BUILD=static -XGPR_BUILD=static \
                -XGNATCOLL_MMAP=yes -XGNATCOLL_MADVISE=yes -XGNATCOLL_VERSION=0.0 -XGNATCOLL_OS=unix -XBUILD=PROD 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 system. 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 from apt-get is the best way? And if yes, how to download and install libraries?

Thanks

Ricardo Brandão


  reply	other threads:[~2019-06-08 17:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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