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

Verilator exited unexpectedly with return code 1 #7

Open
xzores opened this issue Oct 23, 2024 · 3 comments
Open

Verilator exited unexpectedly with return code 1 #7

xzores opened this issue Oct 23, 2024 · 3 comments

Comments

@xzores
Copy link

xzores commented Oct 23, 2024

Hello, I am using the devcontainer that comes with this project.

Problem

I get the error:

Verilator exited unexpectedly with return code 1

When I look in the logs I see:

%Error: Unknown warning specified: -Wno-EOFNEWLINE

Setup

These are the commands I run:

docker build -f .devcontainer/Dockerfile -t harden_container .
docker run -v $(pwd):/workspace -w /workspace -it harden_container /bin/bash

export PDK_ROOT=~/ttsetup/pdk
export PDK=sky130A
export OPENLANE2_TAG=2.1.7

git clone -b tt09 https://github.com/TinyTapeout/tt-support-tools tt

python3 -m venv ./tt/venv
source ./tt/venv/bin/activate
pip install -r ./tt/tt-support-tools/requirements.txt
pip install openlane==$OPENLANE2_TAG

./tt/tt_tool.py --create-user-config --openlane2

./tt/tt_tool.py --harden --openlane2

It fails at the last command.

I noticed that there is a tt-support-tools installed with the docker, but using that I get other errors, so I clone my own, hope that is the correct way.

EDIT

Removing the flag in the python file, then followingly gives an error: "lint-off EOFNEWLINE" and "lint-off UNUSEDSIGNAL"

@urish
Copy link
Member

urish commented Oct 27, 2024

Unfortunately, just using the devcontainer as a docker image doesn't work, since openlane2 needs to be able to run docker itself within the devcontainer. You may be able to work around this by running docker with the --privileged flag, but I haven't tried that.

Have you seen the local hardening guide?

@xzores
Copy link
Author

xzores commented Oct 27, 2024

I have, it did not work as my version of verilator is wrong or something

@urish
Copy link
Member

urish commented Oct 28, 2024

The reason verilator is wrong is that openlane can't find docker installed inside your docker container. You can try hardening outside docker, by following the local hardening guide. This will make sure openlane can use docker and have the right tool versions.

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