chipsalliance / chipsalliance/chisel-template

Failed to run template

Open
#141 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
708
Forks
203
PR merge metrics
No merged PRs in 30d

Description

```
Administrator[3] MSYS ~/chisel-template-main (main)
$ sbt
[info] welcome to sbt 1.11.0 (Eclipse Adoptium Java 17.0.15)
[info] loading settings for project chisel-template-main-build from plugins.sbt...
[info] loading project definition from D:\Shdl\msys64\home\Administrator\chisel-template-main\project
[info] loading settings for project root from build.sbt...
[info] set current project to %NAME% (in build file:/D:/Shdl/msys64/home/Administrator/chisel-template-main/)
[info]
[info] Here are some highlights of sbt 1.11.0:
[info] - The Central Repository publishing
[info] See https://eed3si9n.com/sbt-1.11.0 for full release notes.
[info] Hide the banner for this release by running `skipBanner`.
[info] sbt server started at local:sbt-server-f6cd332ac56a60e54b48
[info] started sbt server
sbt:0AME[36m> compile
[success] Total time: 2 s, completed 2025年11月8日 下午2:34:32
sbt:0AME[36m> run
[info] running gcd.GCD
[error] circt.stage.phases.Exceptions$FirtoolNonZeroExitCode: C:\Users\Administrator\AppData\Local\org.chipsalliance\llvm-firtool\cache\1.128.0\bin\firtool returned a non-zero exit code. Note that this version of Chisel (7.0.0) was published against firt
ool version 1.128.0.
[error] ------------------------------------------------------------------------------
[error] ExitCode:
[error] -1073741819
[error] STDOUT:
[error]
[error] STDERR:
[error]
[error] ------------------------------------------------------------------------------
[error] stack trace is suppressed; run last Compile / run for the full output
[error] (Compile / run) circt.stage.phases.Exceptions$FirtoolNonZeroExitCode: C:\Users\Administrator\AppData\Local\org.chipsalliance\llvm-firtool\cache\1.128.0\bin\firtool returned a non-zero exit code. Note that this version of Chisel (7.0.0) was publis
hed against firtool version 1.128.0.
[error] ------------------------------------------------------------------------------
[error] ExitCode:
[error] -1073741819
[error] STDOUT:
[error]
[error] STDERR:
[error]
[error] ------------------------------------------------------------------------------
[error] Total time: 2 s, completed 2025年11月8日 下午2:34:39
Exception in thread "C:\Users\Administrator\AppData\Local\org.chipsalliance\llvm-firtool\cache\1.128.0\bin\firtool -format=fir -warn-on-unprocessed-annotations -output-annotation-file circt.anno.json -disable-all-randomization -strip-debug-info -default-
layer-specialization=enable --split-verilog -o=. stdin thread" java.io.IOException: 管道正在被关闭。
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:349)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:182)
at os.SubProcess$InputStream.close(SubProcess.scala:208)
at os.ProcessInput$SourceInput$$anon$3.run(SubProcess.scala:423)
at java.base/java.lang.Thread.run(Thread.java:840)
sbt:0AME[36m>
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with build.sbt and project/plugins.sbt, then reproduce sbt run in the reported MSYS/Windows environment. Inspect the full Compile / run output and the firtool invocation at the reported cache path. Done means the gcd.GCD run completes without the firtool non-zero exit or pipe-closed exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, scala, shell
Domain
build-system, devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.