From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: Specifying an `--RTS` option in a GPR file, for a runtime library
Date: Wed, 17 Apr 2013 11:43:46 +0000 (UTC)
Date: 2013-04-17T11:43:46+00:00 [thread overview]
Message-ID: <kkm1ti$n4u$1@dont-email.me> (raw)
In-Reply-To: op.wvkxvpkuule2fv@cardamome
On Mon, 15 Apr 2013 13:22:27 +0200, Yannick Duchêne (Hibou57) wrote:
> Le Mon, 15 Apr 2013 10:19:32 +0200, Brian Drummond
> <brian@shapes.demon.co.uk> a écrit:
>> This error is "cannot find system.ads" -
> Write_Line ("fatal error, run-time library not installed);
> Write_Line ("cannot locate file system.ads");
> …but this was not displayed (I checked it with two different terminal
> emulators). Is this the expected behaviour?
Not to me ... unless GPRbuild suppresses some of the raw tool output.
Does it have more verbose options?
I haven't got to grips with it yet.
> I tried with GNATMake, although it seems to not understand the project
> file (it compiles files, but does not link an executable), I still
> tried.
>
> * say `runtime` is in <dir>. If I run GNATMake from <dir> to
> compile a `test.adb` file in <dir> too, seems to be OK with the
> `--RTS=runtime` option.
So Gnatmake accepts "." as a starting point for the RTS= option, and an
absolute path.
The other valid root for RTS= options is in the compiler installation
"lib" directory. I don't know exactly where that would be in your
installation, but by analogy with a couple of mine :
if the path to my compiler (msp430-gnatmake) is /usr/local/msp430/bin
the root path for RTS= search is
/usr/local/msp430/lib/gcc/msp430/4.7.2/
so that "RTS=rts/msp430f2xx" translates to
/usr/local/msp430/lib/gcc/msp430/4.7.2/rts/msp430f2xx
and the compiler expects to find
/usr/local/msp430/lib/gcc/msp430/4.7.2/rts/msp430f2xx/adainclude/
system.ads
Similarly my AVR-Ada compiler installed in
/opt/avr_472_gnat/bin
expects to see the RTS root path in
/opt/avr_472_gnat/lib/gcc/avr/4.7.2/
so that "RTS=rts/avr5" looks in
/opt/avr_472_gnat/lib/gcc/avr/4.7.2/rts/avr5
I can only guess that GPRbuild looks here for the RTS and is more
restricted in its other possibilities.
- Brian
next prev parent reply other threads:[~2013-04-17 11:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-14 19:54 Specifying an `--RTS` option in a GPR file, for a runtime library Yannick Duchêne (Hibou57)
2013-04-14 20:07 ` Yannick Duchêne (Hibou57)
2013-04-14 20:36 ` Yannick Duchêne (Hibou57)
2013-04-15 8:19 ` Brian Drummond
2013-04-15 11:22 ` Yannick Duchêne (Hibou57)
2013-04-15 22:28 ` Yannick Duchêne (Hibou57)
2013-04-17 11:43 ` Brian Drummond [this message]
2013-04-18 22:10 ` Yannick Duchêne (Hibou57)
2013-04-15 13:27 ` Yannick Duchêne (Hibou57)
2013-04-15 13:29 ` Yannick Duchêne (Hibou57)
2013-04-23 1:26 ` Yannick Duchêne (Hibou57)
2013-04-23 17:22 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox