Verilator のビルド

http://www.veripool.org/wiki/verilator/Installing

ダウンロード, 伸張, cd verilator-3.840; ./configure から。

/bin/flex -d -oV3Lexer_pregen.yy.cpp ../verilog.l
/bin/perl ../flexfix V3Lexer V3Lexer.yy.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG (中略) -c ../V3ParseLex.cpp
In file included from ../V3ParseLex.cpp:37:0:
V3Lexer_pregen.yy.cpp:393:23: fatal error: FlexLexer.h: No such file or directory

FlexLexer.h は /include にあるので ./configure --help からでる文字列から察するに --oldinclude か --prefix にしたほうがよさそう。やってみたら --prefix のほうでビルドが通った。

make test のほうは gdbコマンドラインの解釈が違うようなエラーメッセージ。make test はそういうものと以前きいたような気がするのでここでおわり。