chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.19k stars 1.12k forks source link

Error when building the project #3623

Open iagrigorov opened 5 months ago

iagrigorov commented 5 months ago

Hello everyone! When I am trying to build the project I get the following error:

1 targets failed
emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].generator.elaborate os.SubprocessException: Result of /usr/lib/jvm/java-11-openjdk-amd64/bin/java…: 1
Interrupt map (2 harts 2 interrupts):
  [1, 2] => ldut

    os.proc.call(ProcessOps.scala:89)
    millbuild.build$Emulator$generator$.$anonfun$elaborate$2(build.sc:126)
    mill.define.Task$TraverseCtx.evaluate(Task.scala:71)
make: *** [Makefile:11: verilog] Error 1

What can cause this problem?

jerryz123 commented 4 months ago

I can only assume this is due to some issue with your system Java. For an out-of-the-box environment that builds and simulates rocket-chip-based SoCs, you can try chipyard. https://github.com/ucb-bar/chipyard

Chipyard is a bit more user-friendly than the base rocket-chip repo.

SpinEch0 commented 4 months ago

Did you install dtc(device tree compiler) ?

Caused by: java.lang.IllegalArgumentException: requirement failed: Failed to run dtc; is it in your path?
    at scala.Predef$.require(Predef.scala:337)
    at freechips.rocketchip.diplomacy.DTB$.apply(DeviceTree.scala:136)
iagrigorov commented 2 months ago

Did you install dtc(device tree compiler) ?

Caused by: java.lang.IllegalArgumentException: requirement failed: Failed to run dtc; is it in your path?
  at scala.Predef$.require(Predef.scala:337)
  at freechips.rocketchip.diplomacy.DTB$.apply(DeviceTree.scala:136)

Thank you for your reply. Yes, I did. My version is 1.5.1-1. Maybe it is a wrong version?

I can only assume this is due to some issue with your system Java. For an out-of-the-box environment that builds and simulates rocket-chip-based SoCs, you can try chipyard. https://github.com/ucb-bar/chipyard

Chipyard is a bit more user-friendly than the base rocket-chip repo.

Ok, I see. Thank you!