bazel: [6.0.0rc1] `cc_proto_library` analysis failure
Description of the bug:
in @_builtins//:common/cc/cc_proto_library.bzl%_cc_proto_aspect aspect on proto_library rule @bazel//src/main/protobuf:execution_statistics_proto:
Traceback (most recent call last):
File "/virtual_builtins_bzl/common/cc/cc_proto_library.bzl", line 99, column 48, in _aspect_impl
File "/virtual_builtins_bzl/common/cc/cc_helper.bzl", line 191, column 17, in _find_cpp_toolchain
Error in fail: In order to use find_cpp_toolchain, you must include the '//tools/cpp:toolchain_type' in the toolchains argument to your rule.
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Linux, macOS
What is the output of bazel info release
?
6.0.0rc1
If bazel info release
returns development version
or (@non-git)
, tell us how you built Bazel.
No response
What’s the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD
?
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Relevant commits: https://github.com/bazelbuild/bazel/commit/c8b7ed3fecbcee39bf1557fc3d608f42baaffdcd
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15 (14 by maintainers)
Commits related to this issue
- [cc] Add cc toolchain to starlark cc_proto_library Fixes https://github.com/bazelbuild/bazel/issues/16577 — committed to EngFlow/bazel by Yannic 2 years ago
- [cc] Add cc toolchain to starlark cc_proto_library (#16661) Fixes https://github.com/bazelbuild/bazel/issues/16577 Closes #16585. PiperOrigin-RevId: 485600476 Change-Id: I3c2985731ff800a2c6136... — committed to bazelbuild/bazel by ShreeM01 2 years ago
- [cc] Add cc toolchain to starlark cc_proto_library Fixes https://github.com/bazelbuild/bazel/issues/16577 Closes #16585. PiperOrigin-RevId: 485600476 Change-Id: I3c2985731ff800a2c6136f401ed3c7e5e89... — committed to lripoche/bazel by Yannic 2 years ago
@bazel-io fork 6.0.0
@bazel-io flag