Forums » Installation »
installation erro
Added by sachin patel 6 months ago
I am trying to install verilator on Linux 2.6.9-89.0.25.0.1.ELlargesmp x86_64 GNU/Linux
I done
./configure make install
but getting following error
/usr/bin/flex --version /usr/bin/flex version 2.5.4 /usr/bin/flex -d -oV3Lexer_pregen.yy.cpp ../verilog.l /usr/bin/perl ../flexfix V3Lexer <V3Lexer_pregen.yy.cpp >V3Lexer.yy.cpp g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -Wno-unused -c ../V3ParseLex.cpp
In file included from V3Lexer_pregen.yy.cpp:243, from ../V3ParseLex.cpp:38: /usr/local/include/FlexLexer.h:130: error: expected unqualified-id before numeric constant In file included from ../V3ParseLex.cpp:38: V3Lexer_pregen.yy.cpp: In member function `virtual int V3LexerBase::yylex()': V3Lexer_pregen.yy.cpp:3387: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp:7137: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp:7160: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In constructor `V3LexerBase::V3LexerBase(std::istream*, std::ostream*)': V3Lexer_pregen.yy.cpp:7277: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In destructor `virtual V3LexerBase::~V3LexerBase()': V3Lexer_pregen.yy.cpp:7289: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::switch_streams(std::istream*, std::ostream*)': V3Lexer_pregen.yy.cpp:7296: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `int V3LexerBase::yy_get_next_buffer()': V3Lexer_pregen.yy.cpp:7349: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `void V3LexerBase::yyunput(int, char*)': V3Lexer_pregen.yy.cpp:7544: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `int V3LexerBase::yyinput()': V3Lexer_pregen.yy.cpp:7586: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::yyrestart(std::istream*)': V3Lexer_pregen.yy.cpp:7644: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp:7647: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::yy_switch_to_buffer(yy_buffer_state*)': V3Lexer_pregen.yy.cpp:7654: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp:7657: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp:7665: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `void V3LexerBase::yy_load_buffer_state()': V3Lexer_pregen.yy.cpp:7679: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::yy_delete_buffer(yy_buffer_state*)': V3Lexer_pregen.yy.cpp:7716: error: `yy_current_buffer' was not declared in this scope V3Lexer_pregen.yy.cpp: In member function `void V3LexerBase::yy_flush_buffer(yy_buffer_state*)': V3Lexer_pregen.yy.cpp:7757: error: `yy_current_buffer' was not declared in this scope make2: *** [V3ParseLex.o] Error 1 make1: *** [../verilator_bin_dbg] Error 2 make: *** [verilator_exe] Error 2
Could any one help to solve error
Thanks Sachin
Replies (4)
RE: installation erro - Added by sachin patel 6 months ago
In file included from V3Lexer_pregen.yy.cpp:243,
from ../V3ParseLex.cpp:38:
/usr/local/include/FlexLexer.h:130: error: expected unqualified-id before numeric constant
In file included from ../V3ParseLex.cpp:38:
V3Lexer_pregen.yy.cpp: In member function `virtual int V3LexerBase::yylex()':
V3Lexer_pregen.yy.cpp:3387: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp:7137: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp:7160: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In constructor `V3LexerBase::V3LexerBase(std::istream*, std::ostream*)':
V3Lexer_pregen.yy.cpp:7277: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In destructor `virtual V3LexerBase::~V3LexerBase()':
V3Lexer_pregen.yy.cpp:7289: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::switch_streams(std::istream*, std::ostream*)':
V3Lexer_pregen.yy.cpp:7296: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `int V3LexerBase::yy_get_next_buffer()':
V3Lexer_pregen.yy.cpp:7349: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `void V3LexerBase::yyunput(int, char*)':
V3Lexer_pregen.yy.cpp:7544: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `int V3LexerBase::yyinput()':
V3Lexer_pregen.yy.cpp:7586: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::yyrestart(std::istream*)':
V3Lexer_pregen.yy.cpp:7644: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp:7647: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::yy_switch_to_buffer(yy_buffer_state*)':
V3Lexer_pregen.yy.cpp:7654: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp:7657: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp:7665: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `void V3LexerBase::yy_load_buffer_state()':
V3Lexer_pregen.yy.cpp:7679: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `virtual void V3LexerBase::yy_delete_buffer(yy_buffer_state*)':
V3Lexer_pregen.yy.cpp:7716: error: `yy_current_buffer' was not declared in this scope
V3Lexer_pregen.yy.cpp: In member function `void V3LexerBase::yy_flush_buffer(yy_buffer_state*)':
V3Lexer_pregen.yy.cpp:7757: error: `yy_current_buffer' was not declared in this scope
make[2]: *** [V3ParseLex.o] Error 1
make[1]: *** [../verilator_bin_dbg] Error 2
make: *** [verilator_exe] Error 2
RE: installation erro - Added by Wilson Snyder 6 months ago
It's probably a flex problem.
What's line 130 of your /usr/local/include/FlexLexer.h? Actually attach the whole thing please, it's GNU licensed so ok.
RE: installation erro - Added by Wilson Snyder 6 months ago
This is a known installation problem with flex in your distribution and is not related to verilator specifically.
"/usr/local/include/FlexLexer.h:130: error: expected unqualified-id before numeric constant"
for example see http://www.daemonforums.org/showthread.php?t=2469
(1-4/4)
![[logo]](/img/veripool_small.png)