Skip to content

Commit

Permalink
Adding toolchain=None to ctx.actions.run targets.
Browse files Browse the repository at this point in the history
Fixes the following issue (and similar in `bazel_rules_hdl/place_and_route/open_road.bzl`)
```
tansell@tansell-top:/XXX/google3$ blaze build //third_party/bazel_rules_hdl/synthesis/tests:verilog_counter-asap7-sc7p5t_rev28_lvt-place_and_route
ERROR: /XXX/google3/third_party/bazel_rules_hdl/synthesis/tests/BUILD:98:14: in synthesize_rtl rule //third_party/bazel_rules_hdl/synthesis/tests:verilog_counter-asap7-sc7p5t_rev28_lvt-synth:
Traceback (most recent call last):
        File "/XXX/google3/third_party/bazel_rules_hdl/synthesis/build_defs.bzl", line 144, column 20, in _synthesize_design_impl
                ctx.actions.run(
Error in run: Couldn't identify if tools are from implicit dependencies or a toolchain. Please set the toolchain parameter. If you're not using a toolchain, set it to 'None'.
ERROR: /XXX/google3/third_party/bazel_rules_hdl/synthesis/tests/BUILD:98:14: Analysis of target '//third_party/bazel_rules_hdl/synthesis/tests:verilog_counter-asap7-sc7p5t_rev28_lvt-synth' failed
ERROR: Analysis of target '//third_party/bazel_rules_hdl/synthesis/tests:verilog_counter-asap7-sc7p5t_rev28_lvt-place_and_route' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.198s, Critical Path: 0.01s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
ERROR: Build did NOT complete successfully
```

Signed-off-by: Tim 'mithro' Ansell <[email protected]>
  • Loading branch information
mithro committed Nov 12, 2023
1 parent 4bb184a commit 1125208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions place_and_route/open_road.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def openroad_command(ctx, commands, input_db = None, step_name = None, inputs =
},
execution_requirements = execution_requirements,
mnemonic = "OpenROAD",
toolchain = None,
)

return struct(db = output_db, log_file = log_file)
1 change: 1 addition & 0 deletions synthesis/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def _synthesize_design_impl(ctx):
input_manifests = input_manifests,
env = env,
mnemonic = "SynthesizingRTL",
toolchain = None,
)

return [
Expand Down

0 comments on commit 1125208

Please sign in to comment.