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 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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Upgrading GNAT GPS 5.0 -> 5.3 Date: Thu, 14 Aug 2014 21:50:01 +0100 Organization: A noiseless patient Spider 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="b814ca014269fd1fa21bc4c05b94dd9e"; logging-data="29705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JX8auCcwTatKXdewgY3AuBpTMMb0FKZA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:LqyWorCOeQhPU9Gk9fZ2TeNW4RI= sha1:SC1RUqMt3SOxhRdthnNd1UTIxeU= Xref: news.eternal-september.org comp.lang.ada:21774 Date: 2014-08-14T21:50:01+01:00 List-Id: Victor Porton writes: > 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" > 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 Oh. Well, I guess the next thing is for you to show us test.gpr and librdf.gpr. This could have gone quicker if you'd done that in the first place. Please, try to put yourself in our shoes. How could you possibly help us if we asked you that question with just that information? Actually, I think there *is* an error in gnatmake/gprbuild: maybe that should have been RUNTIME and MODE. I wrote this in a GPR type Var_Type is ("foo", "bar"); Var : Var_Type := external ("VAR"); and then $ gprbuild -P test2 -Xvar=foo test2.gpr:19:04: no value defined for "var" test2.gpr:19:24: warning: undefined external reference whereas $ gprbuild -P test2 -XVAR=foo works fine. So the error message is confusing; the undefined symbol is shown in lower case, disregarding the actual case required. I've reported this to AdaCore.