Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  IPC::Locker
  Parallel::Forker
  Voneline
General Info
  Papers

[Installation Error in Windows 10 OS]: Facing an error related to Bison.

Added by Harsh Gandhi 9 months ago

Hello,

I am trying to install Verilator v4.012 on Windows 10 PC using following steps.

1. Installed Flex v2.5.4a and Bison v2.4.1. Installation folder is D:\TOOLS\GnuWin32.

2. After that, I installed Cygwin. Installation folder is D:\TOOLS\cygwin.

3. Now, in Cygwin bash, I am entering these commands.

unset VERILATOR_ROOT
tar xvzf verilator-4.012.tgz (for unpacking the files)
cd verilator-4.012
./configure
gmake

4. As soon as I entered 'gmake', I got following error message which I can't understand. How should I move further?


making verilator in src
D:/TOOLS/strawberry/c/bin/gmake -C src
gmake[1]: Entering directory 'D:/TOOLS/verilator/setup/verilator-4.012/src'
mkdir -p obj_dbg
D:/TOOLS/strawberry/c/bin/gmake -C obj_dbg -j 1  TGT=../../bin/verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj serial
gmake[2]: Entering directory 'D:/TOOLS/verilator/setup/verilator-4.012/src/obj_dbg'
/cygdrive/d/TOOLS/strawberry/perl/bin/perl ../astgen -I..  --classes
If you get errors from verilog.y below, try upgrading bison to version 1.875 or newer.
/cygdrive/d/TOOLS/strawberry/perl/bin/perl ../bisonpre --yacc /Flex_Bison/bin/bison -d -v -o V3ParseBison.c ../verilog.y
The system cannot find the path specified.
bisonpre: %Error: '/Flex_Bison/bin/bison' is not installed, or not working
../Makefile_obj:317: recipe for target 'V3ParseBison.c' failed
gmake[2]: *** [V3ParseBison.c] Error 1
gmake[2]: Leaving directory 'D:/TOOLS/verilator/setup/verilator-4.012/src/obj_dbg'
Makefile:69: recipe for target '../bin/verilator_bin_dbg' failed
gmake[1]: *** [../bin/verilator_bin_dbg] Error 2
gmake[1]: Leaving directory 'D:/TOOLS/verilator/setup/verilator-4.012/src'
Makefile:190: recipe for target 'verilator_exe' failed
gmake: *** [verilator_exe] Error 2

Any help would be great!

Thank You, Harsh.


Replies (9)

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Wilson Snyder 9 months ago

The system cannot find the path specified. '/Flex_Bison/bin/bison' is not installed, or not working

bison isn't installed or isn't working ;)

Perhaps after installing it you didn't add it to your shell PATH, or used the wrong path?

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Harsh Gandhi 9 months ago

Thank you Wilson for a quick reply. I checked multiple times the path variable. I have also added an image for you. I can't find a file named V3ParseBison.c in Bison's installed directory.

Regards, Harsh.

path.PNG View (4.61 KB)

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Wilson Snyder 9 months ago

The error is not that it can't find V3ParseBison.c, it's that it can't execute "/Flex_Bison/bin/bison --version".

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Harsh Gandhi 9 months ago

Okay. Do you have any alternative for running on Windows platform as I tried multiple times to reinstall the Bison.

Regards, Harsh.

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Wilson Snyder 9 months ago

Use Cygwin, or much better a virtual box running Ubuntu.

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Harsh Gandhi 9 months ago

Thank you again for your help.
Following is the error I got while trying to install Verilator in my another PC having Windows 7 OS.
---------------------------------------------------
making verilator in src
C:/strawberry/c/bin/gmake -C src
gmake[1]: Entering directory `C:/Users/sysadmin/Desktop/Verilator/verilator-4.012/src'
mkdir -p obj_dbg
C:/strawberry/c/bin/gmake -C obj_dbg -j 1  TGT=../../bin/verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj serial
gmake[2]: Entering directory `C:/Users/sysadmin/Desktop/Verilator/verilator-4.012/src/obj_dbg'
/cygdrive/c/strawberry/perl/bin/perl ../astgen -I..  --classes
process_begin: CreateProcess(NULL, /cygdrive/c/strawberry/perl/bin/perl ../astgen -I.. --classes, ...) failed.
make (e=2): The system cannot find the file specified.
gmake[2]: *** [V3Ast__gen_classes.h] Error 2
gmake[2]: Leaving directory `C:/Users/sysadmin/Desktop/Verilator/verilator-4.012/src/obj_dbg'
gmake[1]: *** [../bin/verilator_bin_dbg] Error 2
gmake[1]: Leaving directory `C:/Users/sysadmin/Desktop/Verilator/verilator-4.012/src'
gmake: *** [verilator_exe] Error 2
---------------------------------------------------
Any idea regarding this?
Regards, 
Harsh.

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Wilson Snyder 9 months ago

process_begin: CreateProcess(NULL, /cygdrive/c/strawberry/perl/bin/perl ../astgen -I.. --classes, ...) failed.

Something is broken in your perl or you are out of memory.

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Patrick Stewart 9 months ago

There's a precompiled version in msys2. Get it here https://www.msys2.org/ and type 'pacman -S mingw-w64-x86_64-verilator' in the shell.

RE: [Installation Error in Windows 10 OS]: Facing an error related to Bison. - Added by Yu Sheng Lin 8 months ago

Since you are using Windows 10, Windows Subsystem for Linux (WSL) should work for you.

    (1-9/9)