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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4a64008f049d9bb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.212.113 with SMTP id nj17mr12875925wic.7.1366858150061; Wed, 24 Apr 2013 19:49:10 -0700 (PDT) Path: hg5ni23953wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Specifying an `--RTS` option in a GPR file, for a runtime library Date: Wed, 17 Apr 2013 11:43:46 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Wed, 17 Apr 2013 11:43:46 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="23710"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IceEHsM9fJe/wdj4zbYn+U2Bk9z9Jbzc=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:Oslw5KdmyS1q6kOXs7jJLV2KjM8= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2013-04-17T11:43:46+00:00 List-Id: 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 > 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 . If I run GNATMake from to > compile a `test.adb` file in 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