2

I'm a new user of chisel. I tried to install chisel on my machine. According to the git, first I cloned chisel and then I went to hello directory and enter make . But I got the below error:

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

I'm using sbt-0.13.8 and scala 2.11.6

1
  • What type of shell is "/bin/sh" pointing to? Does it work if it aliases to bash?
    – Chris
    Apr 7, 2015 at 21:43

2 Answers 2

3

If you try without the command set -e -o pipefail it should works :

sbt -Dsbt.log.noformat=true -DchiselVersion="latest.release" "run Hello --genHarness --compile --test --backend c --vcd " | tee Hello.out
1
  • Thanks! it worked. Just to make it clear, this line should be changed in root folder in suffix.mk
    – Moriss
    Apr 3, 2015 at 2:10
2

The problem is from Shell variable the correct solution is that, adding following line to Makefile:

SHELL=/bin/bash

It would solve the problem.

(They've updated the code)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.