scala Rocketchip:make fail under /emulator and /vcs due to“mill:找不到命令”

afdcj2ne  于 2023-10-18  发布在  Scala
关注(0)|答案(1)|浏览(196)

https://github.com/chipsalliance/rocket-chip/discussions/3492中讨论

引用自AnuragMalwee2023年9月20日
大家好,我是第一次构建rocket-chip项目,以前也从未使用过scala。
在构建rocket-tools之后,在$ROCKETCHIP/emulator和$ROCKETCHIP/vcs目录下的make命令失败,并出现错误:

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

当尝试从https://github.com/com-lihaoyi/mill安装mill时,运行其文档中推荐的引导脚本的命令失败。
$ 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目录似乎在repo中不存在)
我手动复制mill/mill脚本并在$ROCKETCHIP目录中运行它,但我得到以下错误:

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

有人能帮帮我吗?
谢谢你,谢谢!

qc6wkl3g

qc6wkl3g1#

文档页面引用了Mill的最新开发版本,但并不是每个提交都会自动发布。由于0.11.0中的文档页面返工,目前没有针对0.11.0或0.11.4版本的文档的发布版本,而只有最新的开发快照。
您可以使用最新的稳定版本0.11.4或最新的可用开发快照0.11.4-25-ec6ebe。两者都来自发布页面:https://github.com/com-lihaoyi/mill/releases/tag/0.11.4

相关问题