The-OpenROAD-Project / TritonSizer

UCSD Sizer for leakage/dynamic power recovery, timing recovery
BSD 3-Clause "New" or "Revised" License
17 stars 12 forks source link

Verilog.hh not found #7

Open speedbooster opened 5 years ago

speedbooster commented 5 years ago

Using cmake and make, i get:

Installing and cross-linking C API (.3) docs Installing and cross-linking command (.n) docs make[1]: Leaving directory '/home/mbk/Downloads/openflow/TritonSizer/module/tcl/unix' make -C src; make[1]: Entering directory '/home/mbk/Downloads/openflow/TritonSizer/src' g++ -o utils.o -I. -IYOUR_ZLIB_HOME/lib/../include -I../module/OpenSTA/install-sp/include -c -std=c++14 -fPIC -Wno-deprecated -g -gstrict-dwarf -Wunused -fpermissive utils.cpp In file included from utils.h:43, from utils.cpp:40: sizer.h:119:10: fatal error: Verilog.hh: No such file or directory

include "Verilog.hh"

      ^~~~~~~~~~~~

compilation terminated. make[1]: [Makefile:56: utils.o] Error 1 make[1]: Leaving directory '/home/mbk/Downloads/openflow/TritonSizer/src' make: [Makefile:9: all] Error 2

KrispyCamel4u commented 3 years ago

Hi, I faced a similar issue of "verilog.h: no such file or directory" while working with Rocket-Chip. It came out to be a problem related to the Bison3.7. See this might be helpful https://github.com/verilator/verilator/pull/2505 If you are using ubuntu 20.10 based distro than try degrading Bison to 3.5.1 For installing Bison 3.5.1 : https://geeksww.com/tutorials/miscellaneous/bison_gnu_parser_generator/installation/installing_bison_gnu_parser_generator_ubuntu_linux.php