AGoodStudent
AGoodStudent

Reputation: 9

Rocketchip: make failing under /emulator and /vcs due to "mill: command not found"

Discussed in https://github.com/chipsalliance/rocket-chip/discussions/3492

Originally posted by AnuragMalwee September 20, 2023

Hi, I am building the rocket-chip project for the first time, and never used scala before as well.

After building the rocket-tools, the make command under $ROCKETCHIP/emulator and $ROCKETCHIP/vcs directories fail with error:

      cd ...../Rocket/rocket-chip && mill rocketchip.assembly
      /bin/bash: line 1: mill: command not found
      make: *** [/home/...../Rocket/rocket-chip/Makefrag:47: /home/...../Rocket/rocket-chip/out/rocketchip/assembly.dest/out.jar] Error 127

When trying to install mill from https://github.com/com-lihaoyi/mill, the cmd to run the bootstrap script recommended in their documentation fails.

$ curl -L https://github.com/com-lihaoyi/mill/releases/download/0.11.4/0.11.4-13-27c979 > mill && chmod +x mill

(The mill/releases dir doesn't seem to exist in the repo)

I manually copied the mill/mill script and ran it in the $ROCKETCHIP directory but I got following error:

anurag@anurag-vm:~/...../Rocket/rocket-chip$ ~/...../scala_mill/mill 
[build.sc] [33/49] enablePluginScalacOptions.super.mill.scalalib.ScalaModule.enablePluginScalacOptions | Downloading [1/1][build.sc] [33/49] enablePluginScalacOptions.super.mill.scalalib.ScalaModule.enablePluginScalacOptions | Downloading [1/1][build.sc] [33/49] enablePluginScalacOptions.super.mill.scalalib.ScalaModule.enablePluginScalacOptions | Downloading [1/1][build.sc] [33/49] enablePluginScalacOptions.super.mill.scalalib.ScalaModule.enablePluginScalacOptions | Downloading [1/1][build.sc] [41/49] compile 
[info] compiling 4 Scala sources to /...../Rocket/rocket-chip/out/mill-build/compile.dest/classes ...
[warn] /...../Rocket/rocket-chip/build.sc:206:155: method any2stringadd in object Predef is deprecated (since 2.13.0): Implicit injection of + is deprecated. Convert to String to call +
[warn]          |"$${CMAKE_CXX_FLAGS} -DVERILATOR -DTEST_HARNESS=VTestHarness -include VTestHarness.h -include verilator.h -include ${generator.elaborate().path / config + ".plusArgs"}")
[warn]                                                                                                                                                           ^
[warn] one warning found
[info] done compiling
[build.sc] [49/49] scriptImportGraph 
Selector cannot be empty

Can someone please help me with this?

Thank you!

Upvotes: 0

Views: 430

Answers (1)

Tobias Roeser
Tobias Roeser

Reputation: 546

The documentation page is referring to the latest development version of Mill, but not each commit is automatically released. Due to a documentation page rework in 0.11.0, there is currently no published version of the documentation addressing version 0.11.0 or 0.11.4, but only the latest development snapshot.

You can use the latest stable version 0.11.4 or the latest available development snapshot 0.11.4-25-ec6ebe. Both are linked from the release page: https://github.com/com-lihaoyi/mill/releases/tag/0.11.4

Upvotes: 0

Related Questions