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 X-Received: by 10.50.43.168 with SMTP id x8mr24550949igl.4.1408104449225; Fri, 15 Aug 2014 05:07:29 -0700 (PDT) X-Received: by 10.140.25.162 with SMTP id 31mr15806qgt.9.1408104449195; Fri, 15 Aug 2014 05:07:29 -0700 (PDT) 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!news.glorb.com!r2no190515igi.0!news-out.google.com!j6ni190qas.0!nntp.google.com!m5no59983qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 15 Aug 2014 05:07:29 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=84.228.50.24; posting-account=5t-ZfgkAAACU7ydoC4Cq-xVNAFsq481f NNTP-Posting-Host: 84.228.50.24 References: <53ebbf4c$0$32613$862e30e2@ngroups.net> <3261a000-e171-4e03-b3ec-af1bc5cad9d7@googlegroups.com> <68fn1tyynoal.1la5dyi9o49z9$.dlg@40tude.net> <1oacgorukz06m.19lkc26ly0rts.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5e628ace-887e-456b-a8a4-54c238582d7f@googlegroups.com> Subject: Re: Upgrading GNAT GPS 5.0 -> 5.3 From: porton.victor@gmail.com Injection-Date: Fri, 15 Aug 2014 12:07:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:21782 Date: 2014-08-15T05:07:29-07:00 List-Id: On Thursday, August 14, 2014 11:50:01 PM UTC+3, Simon Wright wrote: > 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? https://github.com/vporton/redland-bindings/tree/ada2012 > 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.