rocket-chip icon indicating copy to clipboard operation
rocket-chip copied to clipboard

Error when building the project

Open iagrigorov opened this issue 1 year ago • 4 comments

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?

iagrigorov avatar Apr 22 '24 10:04 iagrigorov

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.

jerryz123 avatar May 15 '24 23:05 jerryz123

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)

donaldkuck avatar Jun 05 '24 03:06 donaldkuck

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!

iagrigorov avatar Jul 15 '24 13:07 iagrigorov

I have the same problem. Have you solved it now?

xionyuno123 avatar Oct 07 '24 06:10 xionyuno123