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: Specifying an `--RTS` option in a GPR file, for a runtime library Date: Sun, 14 Apr 2013 21:54:20 +0200 Organization: Ada @ Home Message-ID: 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 Xref: news.eternal-september.org comp.lang.ada:15000 Date: 2013-04-14T21:54:20+02:00 List-Id: Hi people once again, I'm failing fixing an issue I have with a custom runtime. First, the context: * I created a library project in a `runtime` directory; * It contains the directories `runtime/adalib` `runtime/adainclude` a= nd = `runtime/build`; * the library project file holds these attributes: for Library_Name use "gnat-4.6"; for Library_Kind use "static"; for Source_Dirs use ("runtime/adainclude"); for Library_Dir use "runtime/adalib"; for Object_Dir use "runtime/build"; for Library_Version use "1"; Now I have a test project. I wanted to add an `--RTS` option in the = Builder package, but the RTS seems to either be ignored (first case) or = = cause the compilation of the test project to fail (second case). If in the test project file I specify an absolute path like with Switches :=3D ("-s", "--RTS=3D//runtime"); I get this message from `gprbuild`: =E2=80=9Cwarning: RTS for language a= da is = discarded (full path)=E2=80=9D. Well, it compiles the test project, but = `ldd` = shows it does not use the expected runtime. If in the test project file I specify a relative path like with Switches :=3D ("-s", "--RTS=3Druntime"); I get this message from `gprbuild`: =E2=80=9Cwarning: no compiler specif= ied for = language "Ada", ignoring all its sources=E2=80=9D then below =E2=80=9C"t= est" is not a = source of project "test" gprbuild: problems with main sources=E2=80=9D, = and the = compilation fails. I can't understand what's wrong, according to http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Switches-for-gnatma= ke.html it should works as follow: (documentations says) > --RTS=3Drts-path > Specifies the default location of the runtime library.GNAT looks for t= he = > runtime in the following directories,and stops as soon as a valid = > runtime is found (adaincludeor ada_source_path, and adalib or = > ada_object_path present): > > /$rts_path > /$rts_path > /rts-$rts_path My test project resides in the directory containing the `runtime` = directory, so the relative path should be OK. Anyway, it does not work = neither with an absolute path, and the result is surprisingly different.= In your opinion, is this just a search path issue or is it something wro= ng = with the runtime library? (which is unmodified so far). -- = =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