PyVerilator 0.7.0 (expected initializer before ‘VL_MT_UNSAFE’) inside Docker
I am trying to use PyVerilator 0.7.0 inside a Docker container and I am getting the following error:
error: expected initializer before ‘VL_MT_UNSAFE’
void vl_finish (const char* filename, int linenum, const char* hier) VL_MT_UNSAFE {
`` ^
cc1plus: warning: unrecognized command line option ‘-Wno-parentheses-equality’
However, I tried switching into version 0.1.0 and the error is not there and my flow is working fine. Let me know if you need anything else to help you track the issue.
Hi,
Which version of verilator are you using? I believe I encountered that message at some point, but I had a little bit of an old version of verilator. Have you tried using a more recent version of verilator?
I currently use 4.202 .
I am using Verilator version 3.874. We are currently installing verilator through the package manager which seems not to install the latest version. In this case, do you think this is causing the problem?
I believe this is likely to be the problem, yes
Here are the Verilator instructions to install from source that I followed: https://verilator.org/guide/latest/install.html#git-install
Maybe you can give it a try, and let us know if the problem persist :)