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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Upgrading GNAT GPS 5.0 -> 5.3 Date: Thu, 14 Aug 2014 22:03:23 +0200 Organization: cbb software GmbH Message-ID: <1a49ajoy5da58$.1b780oq834ue3.dlg@40tude.net> References: <53ebbf4c$0$32613$862e30e2@ngroups.net> <3261a000-e171-4e03-b3ec-af1bc5cad9d7@googlegroups.com> <68fn1tyynoal.1la5dyi9o49z9$.dlg@40tude.net> <1oacgorukz06m.19lkc26ly0rts.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: pFv5JukiA5DRwd1gSNRC4g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:21772 Date: 2014-08-14T22:03:23+02:00 List-Id: On Thu, 14 Aug 2014 20:43:02 +0300, Victor Porton wrote: > Simon Wright wrote: > >> Victor Porton writes: >> >>> Dmitry A. Kazakov wrote: >> >>>> If there is any bugs then in gprbuild. Try to build your project >>>> manually: >>>> >>>> gnatmake -P.gpr >>> >>> $ gnatmake -Ptest.gpr >>> test.gpr:10:04: no value defined for "runtime" >>> test.gpr:10:30: warning: undefined external reference >>> test.gpr:13:04: no value defined for "mode" >>> test.gpr:13:36: warning: undefined external reference >>> librdf.gpr:11:25: warning: undefined external reference >>> librdf.gpr:12:28: warning: undefined external reference >>> librdf.gpr:15:04: no value defined for "runtime" >>> librdf.gpr:15:30: warning: undefined external reference >>> librdf.gpr:16:04: no value defined for "mode" >>> librdf.gpr:16:36: warning: undefined external reference >>> gnatmake: "test.gpr" processing failed >> >> You need to define the scenario variables runtime & mode: >> >> $ gnatmake -Ptest.gpr -Xruntime=... -Xmode=... > > $ gnatmake -Ptest.gpr -Xruntime=full -Xmode=checks > test.gpr:10:04: no value defined for "runtime" I believe it is case-sensitive: gnatmake -Ptest.gpr -XRUNTIME=full -XMODE=... BTW, you can set a default value, e.g.: Runtime : Runtime_Type := external ("RUNTIME", "default"); And since the library project Librdf has: for Linker_Options use ("-lraptor2"); (why is it Librdf and not LibRaptor?) You do not need to repeat that in the project Test. Especially because Linker_Options won't have no effect there, anyway. The only thing you need in a test project is for Main use ("run_all_tests.adb"); anything else is just not needed. P.S. If you are going to package the stuff, you would have to generate project files for each target individually because Linux distributions have their own unique policies regarding project files, directories etc. You won't be able to have one project file for all. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de