FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
791 stars 133 forks source link

apio lint fails to find verilated_std.sv #388

Open obtitus opened 2 months ago

obtitus commented 2 months ago

Hi, installed on Ubuntu 22.04.4 LTS

$ python3 --version
Python 3.10.12
$ python3 -m venv venv;source venv/bin/activate;pip install apio
$ apio --version
apio, version 0.9.5
$ apio system --info
Platform: linux_x86_64
$ apio install -a
$ sudo apt-get install iverilog graphviz
$ cd <and/project/directory>
$ apio lint
verilator --lint-only --timing -Wno-TIMESCALEMOD And.v And_top.v And_tb.v
%Error: Cannot find verilated_std.sv containing built-in std:: definitions:/yosyshq/share/verilator/include/verilated_std.sv
%Error: This may be because there's no search path specified with -I<dir>.
... Looked in: 
/yosyshq/share/verilator/include/verilated_std.sv
/yosyshq/share/verilator/include/verilated_std.sv.v
/yosyshq/share/verilator/include/verilated_std.sv.sv
obj_dir//yosyshq/share/verilator/include/verilated_std.sv
obj_dir//yosyshq/share/verilator/include/verilated_std.sv.v
obj_dir//yosyshq/share/verilator/include/verilated_std.sv.sv
%Error: Exiting due to 2 error(s)
scons: *** [hardware] Error 1
====================================================== [ ERROR ] Took 0.11 seconds ======================================================

I have tested all the other commands (that does not require hardware) and apio sim/build/time run fine. Did I miss an install step? I can provide the and files, but its pretty basic :)

Obijuan commented 2 months ago

Hi @obtitus, I can confirm that this is a bug. Thanks for reporting