-
Notifications
You must be signed in to change notification settings - Fork 36
Compile Issues #1
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
Comments
Hi @mgwoo , thanks for reporting this issue! $ flex -o ./verilog_lexer.yy.cc parser-verilog/verilog_lexer.l I didn't get any compilation error. Here is the generated This file is the same as your lexer file by flex-2.6.4. The following command also works using the generated lexer file:
I try both Could you please provide the compilation error messages so I can dig into this further? Thanks! |
Thanks for the quick response. compile_error.log Could you check this? |
Hi @mgwoo , I have checked the log file and I think the problem is caused by the out-of-sync Flex package. This stackoverflow post reports a compilation error message similar to your log file. To verify this, I suggest you build the latest Flex package from source code. Please follow below steps to build the Flex binary: First download the source code $ tar zxvf flex-2.6.4.tar.gz
$ cd flex-2.6.4
$ ./autogen.sh
$ mkdir build
$ ./configure --prefix=absolute_path_to_the_build_folder
$ make
$ make install Above steps will only install the Flex binary inside flex-2.6.4/build/bin/flex -o ./verilog_lexer.yy.cc parser-verilog/verilog_lexer.l If you get the same compilation error, please let me know. Note: you can clear the built Flex package by removing the Thanks! |
Thank you for pointing out this problem...! |
Thanks for really great work!
I've found two compile issues regarding with this Verilog parser.
Flex 2.5.37 is compile-able, but flex 2.6.4 generated compile error.
Below command,
the verilog_lexer.yy.cc from Flex 2.5.37 is working for me, but the verilog_lexer.yy.cc from Flex 2.6.4 generated compile error.
I've attached compiled verilog_lexer_yy.cc file just in case.
( Compile environment: Centos 7 / GCC 8.2.0 )
verilog_lexer.zip
The below command was working in my environments.
The text was updated successfully, but these errors were encountered: