-
Notifications
You must be signed in to change notification settings - Fork 53
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
[BUG]<build verilator model library> #301
Comments
Hi @chanduputta I have just tried the latest source (commit 75f8df9) without problems. I was running on Ubuntu 22.04 using Verilator 4.203. Can you advise of the operating system and Verilator version you are using? The failed script is very simple, just invoking sed. Asuming it was sed which failed, the erro code 2, means:
The script only attempts to open two files, I've assigned to @MikeOpenHWGroup in case he has more insight. |
hi @jeremybennett thank you for response
|
@chanduputta Well you have me stumped. That's not dissimilar to my platform. The only thing I can suggest is hacking |
I note that @jeremybennett is using Verilator v4.203 and @chanduputta is using v5.003. I have seen this behavior many times with the CVA6: you have to pick the just right version of Verilator to get the DUT and/or testbench to compile. Very annoying. @chanduputta can you try v4.203? |
Hi @MikeOpenHWGroup we are not able to find Verilator v4.203 even in there github tags(reference as below screenshot) we have tried in another OS and verilator version
by running command
ERROR: Failed to build openhwgroup.org:systems:core-v-mcu:0 : '['make']' exited with an error: 2 Do we need to setup system environment with any more |
I am able to compile with Verilator v4.100. I suggest you build it from source. Here is what I do:
Also, make sure |
@chanduputta Could your source have been corrupted? I don't understand how changing the Verilator version fixed a bug in a bash script. And the Verilator errors you now get seem very basic - everyone else should be seeing them as well. Perhaps a clean checkout of It is just possible that the newer versions of Verilator are being stricter on syntax, but this seems strange. What are the 3 lines identified as having errors? |
Is there an existing core-v-mcu bug for this?
Bug Description
To do simulation using verilator and gtkwave
we are trying to "build verilator model library"
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
by running command
$ make model-lib
ERROR: Failed to build openhwgroup.org:systems:core-v-mcu:0 : pre_build script 'pre_build_scripts': ['sh', '../src/openhwgroup.org_systems_core-v-mcu_0/rtl/core-v-mcu/scripts/vedit.sh', 'openhwgroup.org_systems_core-v-mcu_0.vc'] exited with error code 2
Do we need to setup system with some other tool-chains or packages for simulation? any advice will be appreciated?
The text was updated successfully, but these errors were encountered: