Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyVerilator 0.7.0 (expected initializer before ‘VL_MT_UNSAFE’) inside Docker #13

Open
jalezeta opened this issue Jun 4, 2021 · 3 comments

Comments

@jalezeta
Copy link

jalezeta commented Jun 4, 2021

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.

@threonorm
Copy link
Collaborator

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 .

@jalezeta
Copy link
Author

jalezeta commented Jun 4, 2021

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?

@threonorm
Copy link
Collaborator

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants