chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

compile error

Open runninglinuxkernel opened this issue 4 years ago • 4 comments

when i compile the BOOM follow those command: cd sims/verilator make CONFIG=LargeBoomConfig

i saw some error: [info] loading settings for project firrtl-build from plugins.sbt ... [info] loading project definition from /home/figo/riscv/chipyard/tools/firrtl/project [info] loading settings for project firrtl from build.sbt ... [info] resolving key references (55373 settings) ... [info] set current project to chipyardRoot (in build file:/home/figo/riscv/chipyard/) [info] set current project to chipyard (in build file:/home/figo/riscv/chipyard/) [info] compiling 25 Scala sources to /home/figo/riscv/chipyard/generators/testchipip/target/scala-2.12/classes ... [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:9:30: object spi is not a member of package sifive.blocks.devices [error] import sifive.blocks.devices.spi.{PeripherySPIFlashKey} [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:78:15: not found: value PeripherySPIFlashKey [error] spi.zip(p(PeripherySPIFlashKey)).zipWithIndex.foreach { case ((port, params), i) => [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:79:56: value fSize is not a member of Any [error] val spi_mem = Module(new SimSPIFlashModel(params.fSize, i, rdOnly)) [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:79:63: type mismatch [error] found : Any [error] required: Int [error] val spi_mem = Module(new SimSPIFlashModel(params.fSize, i, rdOnly)) [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:82:22: value csWidth is not a member of Any [error] require(params.csWidth == 1, "I don't know what to do with your extra CS bits. Fix me please.") [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:29:28: not found: type UARTPortIO [error] val uart = Flipped(new UARTPortIO(UARTParams(address = 0))) // We do not support the four wire variant [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:29:39: not found: value UARTParams [error] val uart = Flipped(new UARTPortIO(UARTParams(address = 0))) // We do not support the four wire variant [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:29:50: not found: value address [error] val uart = Flipped(new UARTPortIO(UARTParams(address = 0))) // We do not support the four wire variant [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:123:25: not found: type UARTPortIO [error] def connect(uart: Seq[UARTPortIO], baudrate: BigInt = 115200)(implicit p: Parameters) { [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:130:25: not found: type UARTPortIO [error] def connect(uart: Seq[UARTPortIO], div: Int) { [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:126:25: not found: type UARTPortIO [error] def connect(uart: Seq[UARTPortIO], baudrate: BigInt, clockFrequency: BigInt) { [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/tsiHost/TsiHostWidget.scala:14:22: object util is not a member of package sifive.blocks [error] import sifive.blocks.util.{NonBlockingEnqueue, NonBlockingDequeue} [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/tsiHost/TsiHostWidget.scala:121:44: not found: value NonBlockingEnqueue [error] NonBlockingEnqueue(txQueue.io.enq, 64)), [error] ^ [error] /home/figo/riscv/chipyard/generators/testchipip/src/main/scala/tsiHost/TsiHostWidget.scala:123:44: not found: value NonBlockingDequeue [error] NonBlockingDequeue(rxQueue.io.deq, 64)) [error] ^ [error] 14 errors found [error] (testchipip / Compile / compileIncremental) Compilation failed [error] Total time: 11 s, completed Oct 21, 2021 11:20:22 PM make: *** [/home/figo/riscv/chipyard/common.mk:106: generator_temp] Error 1 [figo@localhost verilator]$

runninglinuxkernel avatar Oct 22 '21 07:10 runninglinuxkernel

Did you build toolchain before compile? 1.4.3. Building a Toolchain

quyleanh avatar Oct 24 '21 02:10 quyleanh

Did you build toolchain before compile? 1.4.3. Building a Toolchain

yes, i have built the toolchain

runninglinuxkernel avatar Oct 24 '21 13:10 runninglinuxkernel

I think the problem is source clone. Try to clone again and make sure there is no error. I have faced this issue before.

quyleanh avatar Oct 24 '21 17:10 quyleanh

This error indicates that the scripts/init-submodules... script failed obtaining all submodules. I would try to clone again as well.

abejgonzalez avatar Oct 26 '21 00:10 abejgonzalez