You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change breaks Verilator linting (at least with Verilator 5.010 on Linux).
It adds double quotes to the include paths passed to Verilator, but also adds a space between -I and the quoted path. Verilator interprets these paths as module names instead of include paths.
As a simple test:
$ cat test.v
module test;
endmodule
$ verilator --lint-only -I/tmp test.v
$ echo $?
0
$ verilator --lint-only -I /tmp test.v
%Error: //usr/share/verilator/include/verilated_std.sv:28:9: Redeclaring the 'std' package is not allowed
28 | package std;
| ^~~
/usr/share/verilator/include/verilated_std.sv:2:1: ... note: In file included from verilated_std.sv
%Error: Cannot find file containing module: /tmp
... Looked in:
//tmp
//tmp.v
//tmp.sv
/tmp
/tmp.v
/tmp.sv
obj_dir//tmp
obj_dir//tmp.v
obj_dir//tmp.sv
%Error: Exiting due to 2 error(s)
The text was updated successfully, but these errors were encountered:
This change breaks Verilator linting (at least with Verilator 5.010 on Linux).
It adds double quotes to the include paths passed to Verilator, but also adds a space between
-I
and the quoted path. Verilator interprets these paths as module names instead of include paths.As a simple test:
The text was updated successfully, but these errors were encountered: