pliu6 / vhd2vl

vhd2vl is designed to translate synthesizable VHDL into Verilog 2001.
26 stars 9 forks source link

Problem compiling #3

Open ccc2716 opened 6 years ago

ccc2716 commented 6 years ago

I have tried to compile this for a current CentOS 7 installation and get this output.

I can find no hint about -lfl ? I am used to working in C but no experience with lex/yacc - flex/bison

$ make gcc -Wall -W -O2 -g -o vhd2vl lex.yy.c vhd2vl.tab.c -lfl lex.yy.c: In function 'yy_scan_bytes': lex.yy.c:2130:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( i = 0; i < _yybytes_len; ++i ) ^ vhd2vl.y: In function 'yyparse': vhd2vl.y:1133:17: warning: variable 'size' set but not used [-Wunused-but-set-variable] int size; ^ vhd2vl.y:1161:17: warning: variable 'size' set but not used [-Wunused-but-set-variable] int size; ^ /usr/bin/ld: cannot find -lfl collect2: error: ld returned 1 exit status make: *** [vhd2vl] Error 1

pliu6 commented 6 years ago

Have you tried to install flex? More information: https://unix.stackexchange.com/questions/37971/usr-bin-ld-cannot-find-lfl

ccc2716 commented 6 years ago

Might be that simple, thanks.

On 02/08/2018 16.39, Peng Liu wrote:

Have you tried to install flex? More information: https://unix.stackexchange.com/questions/37971/usr-bin-ld-cannot-find-lfl

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pliu6/vhd2vl/issues/3#issuecomment-409949567, or mute the thread https://github.com/notifications/unsubscribe-auth/ACgWpJIkAmLjPIaFERw9qMkyBAF31OZhks5uMw8RgaJpZM4VsRsP.

ccc2716 commented 6 years ago

Actually flex is installed and up to date, bison as well.

On 02/08/2018 16.39, Peng Liu wrote:

Have you tried to install flex? More information: https://unix.stackexchange.com/questions/37971/usr-bin-ld-cannot-find-lfl

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pliu6/vhd2vl/issues/3#issuecomment-409949567, or mute the thread https://github.com/notifications/unsubscribe-auth/ACgWpJIkAmLjPIaFERw9qMkyBAF31OZhks5uMw8RgaJpZM4VsRsP.

MJoergen commented 5 years ago

You might want to run the following command:

sudo apt install libfl-dev

This worked on Linux Mint.

iDoka commented 4 years ago

I successful build it on vanilla CentOS7!

I made short tips: https://gist.github.com/iDoka/4667f98810de8de81ad3bea96df5f845