New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flex error building verilator under SLES #1219
Comments
Original Redmine Comment Sorry, this should just work. It's probably a bug in the "flex" package, which has been buggy in the past. The file with the error is generated. Please attach V3Lexer_pregen.yy.cpp, and maybe we can find a workaround short of upgrading flex. You also didn't indicate the Verilator version - I assume it is the latest? |
Original Redmine Comment Please find attached V3Lexer_pregen.yy.cpp and V3ParseGrammar.cpp which are both giving me errors under above tool versions. Yes this is on latest version but I've also tried 3.853 with the same results. Thanks, |
Original Redmine Comment V3Lexer_pregen.yy.cpp was not attached. What errors do you get from V3ParseGrammar? |
Original Redmine Comment In file incldued from ../V3ParseGrammar.cpp:25:0: Everytime I try to attach V3Lexer_pregen.yy.cpp I am getting 'Internal Sever Error'. Fault on my side or yours? Thanks, |
Original Redmine Comment It's only included from V3ParseGrammer, not an error in V3Parse grammar. Not sure why it isn't posting; you could post as a comment the lines near the error (verilog.c line 19828 and /usr/include/FlexLexer.h line 130) But no need as I googled the FlexLexer message and it's a known bug in flex 2.5.4 which they fixed in 2.5.4a. You'll need a newer flex. Sorry. |
Original Redmine Comment Thanks Wilson, an upgrade to versions of flex and bison fixed the compilation problems. Could you help me out with one last thing - When I make and install verilator it all looks good, ~/bin and ~/share contain the executables and directories. However when I go to run this against RTL to generate a model via a render script the script is searching in /usr/local/share/. for the vlstd dir containing vpi_user.h instead of my ~/share/include/verilator/vlstd, even though I thought this should be specified when --prefix was used by the configure script. Is there a way to change the include path? Thanks, |
Original Redmine Comment configure --datadir says what to use for includes, but prefix should default that. You can always set VERILATOR_ROOT (to a dir with include/vltstd under it) in your environment to override. |
Author Name: Moira Richmond
Original Redmine Issue: 1219 from https://www.veripool.org
Hi,
My system is using the following OS and tool versions:
Is the build only compatible with Redhat?
Thanks & Regards
The text was updated successfully, but these errors were encountered: