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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!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: Mon, 15 Apr 2013 13:22:27 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: EZs00999Z6cgGCagYQSUTQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:15008 Date: 2013-04-15T13:22:27+02:00 List-Id: Le Mon, 15 Apr 2013 10:19:32 +0200, Brian Drummond = a =C3=A9crit: > On Sun, 14 Apr 2013 22:07:58 +0200, Yannick Duch=C3=AAne (Hibou57) wro= te: > >> Le Sun, 14 Apr 2013 21:54:20 +0200, Yannick Duch=C3=AAne (Hibou57) >> a =C3=A9crit: > >> It still starts with =E2=80=9Cwarning: RTS for language ada is discar= ded (full >> path)=E2=80=9D as before with the absolute path variant, but now `gpr= build` also >> returns this additional message: =E2=80=9Craised TYPES.UNRECOVERABLE_= ERROR : >> targparm.adb:177=E2=80=9D. >> >> This must be a file from the compiler source, as I could not find thi= s >> in the runtime source files. > > This error is "cannot find system.ads" - I figured it later, when I get targparm.adb to have a look inside. Just = = above line 177, there is=E2=80=A6 Write_Line ("fatal error, run-time library not installed correctly"= ); Write_Line ("cannot locate file system.ads"); =E2=80=A6but this was not displayed (I checked it with two different ter= minal = emulators). Is this the expected behaviour? That's strange there are two= = `Write_Line` just before the raise statement, and I only get the excepti= on = message without the =E2=80=9Cfatal error, run=E2=80=91time [=E2=80=A6] c= annot locate file = system.ads=E2=80=9D message. > first make sure your RTS > directory contains adainclude/system.ads, and then figure out why the = -- > RTS=3D option is ignored/wrong/broken. It contains `system.ads`, and the `adalib` contains the static library a= nd = ALI files. > As of a couple of revisions ago, some tools (FSF tree, gnatclean+?) we= re > looking for system.ads in the wrong place (ignoring --RTS) but that > didn't affect normal builds. > > As a crosscheck, have you tried building with gnatmake and a direct > command line (no gpr), which DOES honour the --RTS=3D option? This may= > yield some light on what's wrong. 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=3Druntime` option. * say a directory `source-test` is in and a `test.gpr` is in , then it's not OK anymore, it says the `--RTS=3Druntime= ` is not valid and is missing `adainclude` and `adalib`. * With the same as above, but with an absolute path given for the argument of the RTS options, GNATMake does not complain any more. Trying the second and the third with GPRBuild, it complains in both case= = (with either an absolute or relative path). The only way seems to = specifically assign `ADA_INCLUDE_PATH` and `ADA_OBJECTS_PATH` environmen= t = variables, but this can't be done from a GPR file (or is so, I don't kno= w = how to do). -- = =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