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: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.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: Sun, 14 Apr 2013 22:36:22 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: uwos+1ZhmnbuJ+99C4yJ/Q.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 X-Original-Bytes: 2454 Xref: number.nntp.dca.giganews.com comp.lang.ada:181064 Date: 2013-04-14T22:36:22+02:00 List-Id: Le Sun, 14 Apr 2013 22:07:58 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > It still starts with =E2=80=9Cwarning: RTS for language ada is discard= ed (full = > path)=E2=80=9D as before with the absolute path variant, but now `gprb= uild` also = > returns this additional message: =E2=80=9Craised TYPES.UNRECOVERABLE_E= RROR : = > targparm.adb:177=E2=80=9D. More about this error. I fetched GCC 4.6 source files, and here is what'= s = in `targparm.adb`, around line 177: if Text =3D null then Write_Line ("fatal error, run-time library not installed = correctly"); Write_Line ("cannot locate file system.ads"); raise Unrecoverable_Error; end if; And `Text` is declared as `Text : Source_Buffer_Ptr;`. So, the runtime library is not installed correctly, but what is not = correct, remains to be answered. If the exception is raised when a `Text= ` = parameter is `null` and that `Text` parameter seems to be related to = source file, does this means it can't find the source file? But the layo= ut = of the `runtime` directory looks OK, it contains the `adainclude` = subdirectory, with a copy of all of the runtime source files. -- = =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