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!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: Re: Upgrading GNAT GPS 5.0 -> 5.3 Date: Thu, 14 Aug 2014 23:27:58 +0300 Organization: Aioe.org NNTP Server Message-ID: References: <53ebbf4c$0$32613$862e30e2@ngroups.net> <3261a000-e171-4e03-b3ec-af1bc5cad9d7@googlegroups.com> <68fn1tyynoal.1la5dyi9o49z9$.dlg@40tude.net> <1oacgorukz06m.19lkc26ly0rts.dlg@40tude.net> <1a49ajoy5da58$.1b780oq834ue3.dlg@40tude.net> NNTP-Posting-Host: AnnUDmZwVERVUXyHDyOl5A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.12.4 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:21773 Date: 2014-08-14T23:27:58+03:00 List-Id: Dmitry A. Kazakov wrote: > 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=... gnatmake -Ptest.gpr -XRUNTIME=full -XMODE=Install works. > 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?) There are three libraries in librdf.org: Raptor Rasqal RDF > 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. Have you notices my Makefile.am? -- Victor Porton - http://portonvictor.org