Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 安装凿子_Scala_Chisel_Riscv - Fatal编程技术网

Scala 安装凿子

Scala 安装凿子,scala,chisel,riscv,Scala,Chisel,Riscv,我是凿子的新使用者。我试图在我的机器上安装凿子。根据,首先我克隆了凿子,然后进入hello目录并输入make。但我得到了以下错误: set -e -o pipefail; sbt -Dsbt.log.noformat=true -DchiselVersion="latest.release" "run Hello --genHarness --compile --test --backend c --vcd " | tee Hello.out /bin/sh: 1: set: Illegal o

我是凿子的新使用者。我试图在我的机器上安装凿子。根据,首先我克隆了凿子,然后进入hello目录并输入
make
。但我得到了以下错误:

set -e -o pipefail; sbt -Dsbt.log.noformat=true -DchiselVersion="latest.release" "run Hello --genHarness --compile --test --backend c --vcd " | tee Hello.out
/bin/sh: 1: set: Illegal option -o pipefail
make: *** [Hello.out] Error 2

我正在使用sbt-0.13.8和scala 2.11.6

如果您尝试不使用命令集-e-o pipefail,它应该可以工作:

sbt -Dsbt.log.noformat=true -DchiselVersion="latest.release" "run Hello --genHarness --compile --test --backend c --vcd " | tee Hello.out

问题来自Shell变量正确的解决方案是,在Makefile中添加以下行:

SHELL=/bin/bash
这将解决问题


(他们已经更新了代码)

谢谢!成功了。为了明确起见,这一行应该在根文件夹中的
suffix.mk
中更改“/bin/sh”指向的是什么类型的shell?如果它化名为bash,它能工作吗?