Issues in the set up

173 views
Skip to first unread message

Davide Giacomini

unread,
Apr 12, 2021, 11:35:52 AM4/12/21
to Chipyard
Hello everyone,

I am new to Chipyard and I am trying to get started with this tool. I tried two times to set up the tool for a risc-v environment, but after running buil-toolchains.sh, I don't have neither the /bin folder, nor the *tools-env.sh
I can only source env.sh, but it actually doesn't set up the RISCV environment. I have to set it up manually.

I also redirected the stderror to a log file, in order to understand if something goes wrong during the setup, but I can't understand what to look at among the error messages.
I attach it to this email, hoping that someone can better understand it. My root project directory is /home/davide/Projects/chipyard.

Thank you very much to all of you.

Faithfully,
Davide Giacomini
err_chipyard_building-toolchain.log

Davide Giacomini

unread,
Apr 12, 2021, 3:13:32 PM4/12/21
to Chipyard
Update:

I set up again everything for the third time and it seems averything went smoothly. now the log of the erros is different, I upload it. The qemu submodules have been installed.

Anyway, I don't feel safe with this log...

Thank you very much.

Faithfully,
Davide Giacomini

Davide Giacomini

unread,
Apr 12, 2021, 3:14:11 PM4/12/21
to Chipyard
Forgot to attach the log.
err_chipyard_building-toolchain.log

nat...@berkeley.edu

unread,
Apr 12, 2021, 6:35:19 PM4/12/21
to Chipyard
The first error looks like QEMU's servers just had some problem, this happens from time to time. Running it again fixed it (as you saw). I don't see any obvious errors in your new log.

To clarify, are still having the issue with env.sh? If so, is there a chipyard/riscv-tools-install directory that has stuff in it? Is there a env-riscv-tools.sh? If you're still having problems, you might just try deleting the whole thing and starting over.

Davide Giacomini

unread,
Apr 13, 2021, 3:22:32 AM4/13/21
to chip...@googlegroups.com
I had deleted the whole stuff and started over, that's why now I have no more issues with env.sh and I have the env-riscv-tools.sh. Thank you very much!
I have another problem though. I'll explain it below. Should I post it in another conversation?

Precisely, now that the first step is done, I've another problem in starting the default example with verilator. If I run make under the sims/verilator directory, the error that I report below shows up. I've already tried all the versions of verilator that I found on the issues of GitHub. I h...ave the latest version of git and Ubuntu 20.04 LTS.

The error which shows up ends with:
...
...
[error] (hardfloat / Compile / compileIncremental) java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI
[error] Total time: 4 s, completed Apr 12, 2021, 9:18:44 PM
make: *** [/home/davide/Projects/chipyard/common.mk:86: /home/davide/Projects/chipyard/sims/verilator/generated-src/chipyard.TestHarness.RocketConfig/sim_files.f] Error 1


The entire log is attached to this email.

Thank you very much again.

Faithfully,
Davide Giacomini

--
You received this message because you are subscribed to a topic in the Google Groups "Chipyard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chipyard/nRij6ZHRKMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/7dacd160-b767-406b-a013-8c1311491e2dn%40googlegroups.com.
log_make_verilator

Abraham Gonzalez

unread,
Apr 13, 2021, 8:29:39 PM4/13/21
to chip...@googlegroups.com
I've never seen that issue. A quick google search leads to this though: 

https://github.com/sbt/sbt/issues/5509
https://github.com/sbt/sbt/issues/5093

Have you tried what they recommend (switching Java/JDK versions)?

You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/CABnqHJLjy72FcY%3DiTkph40OL3A46qggPy9NBGL%3DJweFz2qZdPw%40mail.gmail.com.


--
Abraham J. Gonzalez
Electrical Engineering and Computer Science Ph.D. Student
The University of California at Berkeley

Davide Giacomini

unread,
Apr 14, 2021, 7:29:09 AM4/14/21
to chip...@googlegroups.com
Thank you! It worked!
These issues didn't come up searching for it, I am grateful you found it!

For future helps, to make it work I did these steps:

- I created a file .sbtopts with this written inside it:
           -Dsbt.sourcemode=true
           -Dsbt.workspace=[/path/to/chipyard]/chipyard/tools
- I changed the SDK 14 in SDK 8 (I didn't try SDK 11, but accordingly to https://github.com/sbt/sbt/issues/5509 and https://github.com/sbt/sbt/issues/5093 it should equally work)
- If the version of verilator is different from the one indicated in the documentation (4.034) it may not work (it didn't work for me with a 3.092 version)

I have Ubuntu 20.04 LTS.

Though, another error has just come up.
My aim was to run make SUB_PROJECT=vcu118 bitstream, and, after having initiated the fpga folder through the script init-fpga.sh, I ran the sub-project. Some syntax errors showed up and I understood that chipyard cannot import sifive.fpgashells*. That's a problem, because I also tried to search for those manually, but I couldn't find anything. I searched for it under the maven repository of the Berkeley university, but I couldn't find anything.
I report below the image:
image.png
Given that I don't know if it can be seen properly, I also attach it to the email.

Hoping this is the last step,
Thank you very much again and have a nice day.

Faithfully,
Davide Giacomini

import_error.jpg
Reply all
Reply to author
Forward
0 new messages