comp.lang.ada
 help / color / mirror / Atom feed
From: porton.victor@gmail.com
Subject: Re: Upgrading GNAT GPS 5.0 -> 5.3
Date: Fri, 15 Aug 2014 05:07:29 -0700 (PDT)
Date: 2014-08-15T05:07:29-07:00	[thread overview]
Message-ID: <5e628ace-887e-456b-a8a4-54c238582d7f@googlegroups.com> (raw)
In-Reply-To: <lyy4uqkd8m.fsf@pushface.org>

On Thursday, August 14, 2014 11:50:01 PM UTC+3, Simon Wright wrote:
> Victor Porton <porton@narod.ru> writes:
> 
> 
> 
> > Simon Wright wrote:
> 
> >
> 
> >> Victor Porton <porton@narod.ru> writes:
> 
> >> 
> 
> >>> Dmitry A. Kazakov wrote:
> 
> >> 
> 
> >>>> If there is any bugs then in gprbuild. Try to build your project
> 
> >>>> manually:
> 
> >>>> 
> 
> >>>>    gnatmake -P<project>.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.

  reply	other threads:[~2014-08-15 12:07 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13 17:50 Upgrading GNAT GPS 5.0 -> 5.3 Victor Porton
2014-08-13 19:17 ` Victor Porton
2014-08-13 19:28 ` Simon Wright
2014-08-13 19:33   ` Victor Porton
2014-08-13 19:41     ` Per Sandberg
2014-08-13 20:10       ` Victor Porton
2014-08-13 20:29         ` Björn Lundin
2014-08-13 20:36           ` Victor Porton
2014-08-13 22:36             ` Björn Lundin
2014-08-14 12:03               ` Victor Porton
2014-08-14  7:19         ` Egil H H
2014-08-14  7:32           ` Simon Wright
2014-08-14  8:00           ` Dmitry A. Kazakov
2014-08-14 12:14           ` Victor Porton
2014-08-14 12:18           ` Victor Porton
2014-08-14 15:56             ` Dmitry A. Kazakov
2014-08-14 15:59               ` Victor Porton
2014-08-14 16:09                 ` Dmitry A. Kazakov
2014-08-14 16:15                   ` Victor Porton
2014-08-14 16:49                     ` Simon Wright
2014-08-14 17:18                       ` Victor Porton
2014-08-14 17:22                     ` Dmitry A. Kazakov
2014-08-14 17:27                       ` Victor Porton
2014-08-14 17:32                         ` Simon Wright
2014-08-14 17:43                           ` Victor Porton
2014-08-14 20:03                             ` Dmitry A. Kazakov
2014-08-14 20:27                               ` Victor Porton
2014-08-15  7:00                                 ` Dmitry A. Kazakov
2014-08-15 12:06                                   ` porton.victor
2014-08-16 11:53                                   ` Stephen Leake
2014-08-15  6:36                               ` Simon Wright
2014-08-14 20:50                             ` Simon Wright
2014-08-15 12:07                               ` porton.victor [this message]
2014-08-16 11:55                                 ` Stephen Leake
2014-08-16 16:11                                 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox