octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51805] error: ‘yylex’ was not declared in thi


From: David Laxer
Subject: [Octave-bug-tracker] [bug #51805] error: ‘yylex’ was not declared in this scope
Date: Sun, 20 Aug 2017 14:51:48 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:54.0) Gecko/20100101 Firefox/54.0

URL:
  <http://savannah.gnu.org/bugs/?51805>

                 Summary: error: ‘yylex’ was not declared in this scope
                 Project: GNU Octave
            Submitted by: dbl001
            Submitted on: Sun 20 Aug 2017 06:51:47 PM UTC
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: dbl001
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I'm trying to build Octave on Ubuntu 14.04LTS with support for
64bit indexes.

I tried with bison 3.0.2 as well as with bison 2.7

address@hidden:~/octave$ bison --version
bison (GNU Bison) 2.7
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
address@hidden:~/octave$ yacc --version
bison (GNU Bison) 2.7
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
address@hidden:~/octave$ g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

address@hidden:~/octave$ 

I get the following errors:


ibinterp/parse-tree/oct-parse.cc: In function ‘int
yyparse(octave::base_parser&)’:
libinterp/parse-tree/oct-parse.cc:3099:39: error: ‘yylex’ was not declared
in this scope
       yychar = yylex (&yylval, scanner);
                                       ^
libinterp/parse-tree/oct-parse.yy: In constructor
‘octave::base_parser::base_parser(octave::base_lexer&)’:
libinterp/parse-tree/oct-parse.yy:2148:37: error: ‘yypstate_new’ was not
declared in this scope
       m_parser_state (yypstate_new ())
                                     ^
libinterp/parse-tree/oct-parse.yy: In destructor
‘octave::base_parser::~base_parser()’:
libinterp/parse-tree/oct-parse.yy:2165:34: error: expected type-specifier
before ‘yypstate’
     yypstate_delete (static_cast<yypstate *> (m_parser_state));
                                  ^
libinterp/parse-tree/oct-parse.yy:2165:34: error: expected ‘>’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:2165:34: error: expected ‘(’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:2165:34: error: ‘yypstate’ was not
declared in this scope
libinterp/parse-tree/oct-parse.yy:2165:44: error: expected primary-expression
before ‘>’ token
     yypstate_delete (static_cast<yypstate *> (m_parser_state));
                                            ^
libinterp/parse-tree/oct-parse.yy: In member function ‘void
octave::base_parser::reset()’:
libinterp/parse-tree/oct-parse.yy:2191:34: error: expected type-specifier
before ‘yypstate’
     yypstate_delete (static_cast<yypstate *> (m_parser_state));
                                  ^
libinterp/parse-tree/oct-parse.yy:2191:34: error: expected ‘>’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:2191:34: error: expected ‘(’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:2191:34: error: ‘yypstate’ was not
declared in this scope
libinterp/parse-tree/oct-parse.yy:2191:44: error: expected primary-expression
before ‘>’ token
     yypstate_delete (static_cast<yypstate *> (m_parser_state));
                                            ^
libinterp/parse-tree/oct-parse.yy:2192:36: error: ‘yypstate_new’ was not
declared in this scope
     m_parser_state = yypstate_new ();
                                    ^
libinterp/parse-tree/oct-parse.yy: In member function ‘int
octave::parser::run()’:
libinterp/parse-tree/oct-parse.yy:4288:5: error: ‘yypstate’ was not
declared in this scope
     yypstate *pstate = static_cast<yypstate *> (m_parser_state);
     ^
libinterp/parse-tree/oct-parse.yy:4288:15: error: ‘pstate’ was not
declared in this scope
     yypstate *pstate = static_cast<yypstate *> (m_parser_state);
               ^
libinterp/parse-tree/oct-parse.yy:4288:36: error: expected type-specifier
before ‘yypstate’
     yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                                    ^
libinterp/parse-tree/oct-parse.yy:4288:36: error: expected ‘>’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:4288:36: error: expected ‘(’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:4288:46: error: expected primary-expression
before ‘>’ token
     yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                                              ^
libinterp/parse-tree/oct-parse.yy:4288:64: error: expected ‘)’ before
‘;’ token
     yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                                                                ^
libinterp/parse-tree/oct-parse.yy:4292:50: error: ‘octave_pull_parse’ was
not declared in this scope
         status = octave_pull_parse (pstate, *this);
                                                  ^
libinterp/parse-tree/oct-parse.yy: In member function ‘int
octave::push_parser::run(const string&, bool)’:
libinterp/parse-tree/oct-parse.yy:4352:9: error: ‘yypstate’ was not
declared in this scope
         yypstate *pstate = static_cast<yypstate *> (m_parser_state);
         ^
libinterp/parse-tree/oct-parse.yy:4352:19: error: ‘pstate’ was not
declared in this scope
         yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                   ^
libinterp/parse-tree/oct-parse.yy:4352:40: error: expected type-specifier
before ‘yypstate’
         yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                                        ^
libinterp/parse-tree/oct-parse.yy:4352:40: error: expected ‘>’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:4352:40: error: expected ‘(’ before
‘yypstate’
libinterp/parse-tree/oct-parse.yy:4352:50: error: expected primary-expression
before ‘>’ token
         yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                                                  ^
libinterp/parse-tree/oct-parse.yy:4352:68: error: expected ‘)’ before
‘;’ token
         yypstate *pstate = static_cast<yypstate *> (m_parser_state);
                                                                    ^
libinterp/parse-tree/oct-parse.yy:4356:68: error: ‘octave_push_parse’ was
not declared in this scope
             status = octave_push_parse (pstate, token, &lval, *this);
                                                                    ^
libinterp/parse-tree/oct-parse.yy:4385:22: error: ‘YYPUSH_MORE’ was not
declared in this scope
     while (status == YYPUSH_MORE);
                      ^
make[2]: ***
[libinterp/parse-tree/libinterp_parse_tree_libparse_tree_la-oct-parse.lo]
Error 1
make[2]: Leaving directory `/home/ubuntu/octave'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/octave'
make: *** [all] Error 2
address@hidden:~/octave$ 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51805>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]