comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Specifying an `--RTS` option in a GPR file, for a runtime library
Date: Fri, 19 Apr 2013 00:10:15 +0200
Date: 2013-04-19T00:10:15+02:00	[thread overview]
Message-ID: <op.wvrbvdk4ule2fv@cardamome> (raw)
In-Reply-To: kkm1ti$n4u$1@dont-email.me

Le Wed, 17 Apr 2013 13:43:46 +0200, Brian Drummond  
<brian@shapes.demon.co.uk> a écrit:
> So Gnatmake accepts "." as a starting point for the RTS= option, and an
> absolute path.

I may have said an error about GNATMake (will be back on that a later day).

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

You right and what you describe match what I've just read in  
`<prefix>/share/gprconfig/compilers.xml`, lines 332 .. 334, which shows  
GPRBuild defaults to paths with precise patterns, relatives to the GNAT  
compiler location GPRConfig found:

     \.\./lib/gcc/$TARGET/$gcc_version/adalib/
     \.\./lib/gcc/$TARGET/$gcc_version/ada_source_path
     \.\./lib/gcc/$TARGET/$gcc_version/rts-(.*)/adalib/

That's the place where it's specified.


-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2013-04-18 22:10 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
2013-04-18 22:10         ` Yannick Duchêne (Hibou57) [this message]
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