Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make failing under /emulator and /vcs due to mill: command not found #3495

Open
AnuragMalwee opened this issue Sep 22, 2023 Discussed in #3492 · 2 comments
Open

make failing under /emulator and /vcs due to mill: command not found #3495

AnuragMalwee opened this issue Sep 22, 2023 Discussed in #3492 · 2 comments

Comments

@AnuragMalwee
Copy link

Discussed in #3492

Originally posted by AnuragMalwee September 20, 2023
Hi, I am building the rocket-chip project for the first time.

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
@SpinEch0
Copy link

add mill into your exec path: export PATH="/path/to/app/executable/file/directory:$PATH"

@jackkoenig
Copy link
Contributor

jackkoenig commented Dec 20, 2023

A lot of projects commit millw [1] (as mill) to the root of the repository to simplify installation (eg. scala-cli does this, although they have both an older mill bootstrap script and millw). I suggest rocket-chip does the same @sequencer @jerryz123 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants