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

firtool: Unknown command line argument '-disable-infer-rw'. Try: 'firtool --help' #3508

Closed
zzulb opened this issue Oct 11, 2023 · 7 comments
Closed

Comments

@zzulb
Copy link

zzulb commented Oct 11, 2023

firtool: Unknown command line argument '-disable-infer-rw'. Try: 'firtool --help'

This is my first installation. When I execute "make verilog" directly, it prompts " firtool: Unknown command line argument '-disable-infer-rw'. Try: 'firtool --help' " error. The new version of firtool does not have the "-disable-infer-rw" option. I am using 1.38.0.

I found that "build.sc" still has that option.

build.sc:

object mfccompiler extends Module {
def compile = T {
os.proc("firtool",
generator.chirrtl().path,
s"--annotation-file=${generator.chiselAnno().path}",
"-disable-infer-rw",
"--disable-annotation-unknown",
"-dedup",
"-O=debug",
"--split-verilog",
"--preserve-values=named",
"--output-annotation-file=mfc.anno.json",
s"-o=${T.dest}"
).call(T.dest)
PathRef(T.dest)
}

@sequencer
Copy link
Member

Please use nix version of Circt this issues has been fixed by #3506

@sequencer
Copy link
Member

I just merged #3506, you can have a try with dev branch, but please use circt from nix in the future since we only support one circt in rc

@youzi27
Copy link

youzi27 commented Oct 11, 2023

Title: Error using Nix version of Circt with RocketChip Emulator

Description:
I recently switched to the Nix version of Circt as suggested, but encountered a new error when compiling with RocketChip Emulator.

Error:

1 targets failed
emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile os.SubprocessException: Result of firtool…: 1

os.proc.call(ProcessOps.scala:89)
millbuild.build$Emulator$mfccompiler$.$anonfun$compile$2(build.sc:152)
mill.define.Task$TraverseCtx.evaluate(Task.scala:71)

I appreciate any assistance or suggestions to resolve this issue. Thank you!

@leaflittlesa
Copy link

Title: Error using Nix version of Circt with RocketChip Emulator

Description: I recently switched to the Nix version of Circt as suggested, but encountered a new error when compiling with RocketChip Emulator.

Error:

1 targets failed
emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile os.SubprocessException: Result of firtool…: 1

os.proc.call(ProcessOps.scala:89)
millbuild.build$Emulator$mfccompiler$.$anonfun$compile$2(build.sc:152)
mill.define.Task$TraverseCtx.evaluate(Task.scala:71)

I appreciate any assistance or suggestions to resolve this issue. Thank you!

Hello, I have also encountered the same problem. Have you resolved this issue?

@sequencer
Copy link
Member

please use nix.

@wangzhiwei18
Copy link

please use nix.

Please elaborate on how to build circt from Nix.
Sorry, I'm a rookie.

@youzi27
Copy link

youzi27 commented Nov 22, 2023

Title: Error using Nix version of Circt with RocketChip Emulator
Description: I recently switched to the Nix version of Circt as suggested, but encountered a new error when compiling with RocketChip Emulator.
Error:

1 targets failed
emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile os.SubprocessException: Result of firtool…: 1

os.proc.call(ProcessOps.scala:89)
millbuild.build$Emulator$mfccompiler$.$anonfun$compile$2(build.sc:152)
mill.define.Task$TraverseCtx.evaluate(Task.scala:71)

I appreciate any assistance or suggestions to resolve this issue. Thank you!

Hello, I have also encountered the same problem. Have you resolved this issue?

Yes, I solved this problem by using the Nix package manager. You should enable the Nix functionality that comes with the repository. For example: nix-shell ....
Please refer to the knowledge on how to use Nix features.

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

5 participants