Build error with recent default branch

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Build error with recent default branch

Torsten-3
Since a couple of days, I get the following error when building octave
(default branch, last cset e6d3f4f9473c):

  CXX
libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-pt-eval.lo
libinterp/parse-tree/oct-parse.yy: In function ‘octave_value_list
Fassignin(octave::interpreter&, const octave_value_list&, int)’:
libinterp/parse-tree/oct-parse.yy:5651:27: error: ‘valid_identifier’ was
not declared in this scope
   if (valid_identifier (nm))
                           ^
libinterp/parse-tree/oct-parse.yy:5651:27: note: suggested alternative:
In file included from libinterp/parse-tree/oct-parse.yy:82:0:
../libinterp/corefcn/utils.h:44:15: note:   ‘octave::valid_identifier’
   extern OCTINTERP_API bool valid_identifier (const std::string& s);
               ^

This even happens after a "make distclean".

Is anyone else seeing this error?

Torsten

Reply | Threaded
Open this post in threaded view
|

Re: Build error with recent default branch

John W. Eaton
Administrator
On 07/24/2018 03:33 PM, Torsten wrote:

> Since a couple of days, I get the following error when building octave
> (default branch, last cset e6d3f4f9473c):
>
>    CXX
> libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-pt-eval.lo
> libinterp/parse-tree/oct-parse.yy: In function ‘octave_value_list
> Fassignin(octave::interpreter&, const octave_value_list&, int)’:
> libinterp/parse-tree/oct-parse.yy:5651:27: error: ‘valid_identifier’ was
> not declared in this scope
>     if (valid_identifier (nm))
>                             ^
> libinterp/parse-tree/oct-parse.yy:5651:27: note: suggested alternative:
> In file included from libinterp/parse-tree/oct-parse.yy:82:0:
> ../libinterp/corefcn/utils.h:44:15: note:   ‘octave::valid_identifier’
>     extern OCTINTERP_API bool valid_identifier (const std::string& s);
>                 ^
>
> This even happens after a "make distclean".
>
> Is anyone else seeing this error?

No, I just did a complete build in a clean directory and it worked for
me.  I ran bootstrap in the source tree and built in a separate directory.

A possible reason for this failure is that I recently removed
oct-parse.in.yy.  Now we have oct-parse.yy in the source tree instead of
generating it from oct-parse.in.yy.  Do you still have a generated
oct-parse.yy file in the build tree?  If so, remove it and see if this
problem goes away.

jwe


Reply | Threaded
Open this post in threaded view
|

Re: Build error with recent default branch

Daniel Sebald
In reply to this post by Torsten-3
On 07/24/2018 02:33 PM, Torsten wrote:

> Since a couple of days, I get the following error when building octave
> (default branch, last cset e6d3f4f9473c):
>
>    CXX
> libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-pt-eval.lo
> libinterp/parse-tree/oct-parse.yy: In function ‘octave_value_list
> Fassignin(octave::interpreter&, const octave_value_list&, int)’:
> libinterp/parse-tree/oct-parse.yy:5651:27: error: ‘valid_identifier’ was
> not declared in this scope
>     if (valid_identifier (nm))
>                             ^
> libinterp/parse-tree/oct-parse.yy:5651:27: note: suggested alternative:
> In file included from libinterp/parse-tree/oct-parse.yy:82:0:
> ../libinterp/corefcn/utils.h:44:15: note:   ‘octave::valid_identifier’
>     extern OCTINTERP_API bool valid_identifier (const std::string& s);
>                 ^
>
> This even happens after a "make distclean".
>
> Is anyone else seeing this error?

After doing the distclean, did you verify that the
libinterp/parse-tree/oct-parse.yy file is gone?  You may need to use

https://savannah.gnu.org/bugs/?54308#comment1
'make maintainer-clean' followed by bootstrap, configure, make sequence.

Dan

Reply | Threaded
Open this post in threaded view
|

Re: Build error with recent default branch

Torsten-3
On 24.07.2018 21:57, Daniel J Sebald wrote:

> On 07/24/2018 02:33 PM, Torsten wrote:
>> Since a couple of days, I get the following error when building octave
>> (default branch, last cset e6d3f4f9473c):
>>
>>    CXX
>> libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-pt-eval.lo
>> libinterp/parse-tree/oct-parse.yy: In function ‘octave_value_list
>> Fassignin(octave::interpreter&, const octave_value_list&, int)’:
>> libinterp/parse-tree/oct-parse.yy:5651:27: error: ‘valid_identifier’ was
>> not declared in this scope
>>     if (valid_identifier (nm))
>>                             ^
>> libinterp/parse-tree/oct-parse.yy:5651:27: note: suggested alternative:
>> In file included from libinterp/parse-tree/oct-parse.yy:82:0:
>> ../libinterp/corefcn/utils.h:44:15: note:   ‘octave::valid_identifier’
>>     extern OCTINTERP_API bool valid_identifier (const std::string& s);
>>                 ^
>>
>> This even happens after a "make distclean".
>>
>> Is anyone else seeing this error?
>
> After doing the distclean, did you verify that the
> libinterp/parse-tree/oct-parse.yy file is gone?  You may need to use
>
> https://savannah.gnu.org/bugs/?54308#comment1
> 'make maintainer-clean' followed by bootstrap, configure, make sequence.
>
> Dan

A 'maintainer-clean' was not successful, I had to remove my '.build'
directory. The next configure/make cycle worked.

Torsten