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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4a64008f049d9bb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.24.132 with SMTP id u4mr8089573wif.6.1366323018949; Thu, 18 Apr 2013 15:10:18 -0700 (PDT) Path: hg5ni19165wib.1!nntp.google.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Specifying an `--RTS` option in a GPR file, for a runtime library Date: Fri, 19 Apr 2013 00:10:15 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: HTNzb+4SByHkS42i54ry6A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-04-19T00:10:15+02:00 List-Id: Le Wed, 17 Apr 2013 13:43:46 +0200, Brian Drummond = a =C3=A9crit: > So Gnatmake accepts "." as a starting point for the RTS=3D option, and= an > absolute path. I may have said an error about GNATMake (will be back on that a later da= y). > The other valid root for RTS=3D options is in the compiler installatio= n > "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=3D search is > /usr/local/msp430/lib/gcc/msp430/4.7.2/ > so that "RTS=3Drts/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=3Drts/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 = `/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. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity