-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Steps to reproduce:
- Install bazel 6.0.0 or greater
- run
bazel run -c opt //examples:serial_port_client - Bazel will fail to compile, due to dependencies that use features from Bazel that were removed in 6.0.0
Starting local Bazel server and connecting to it...
ERROR: .../external/bazel_tools/platforms/BUILD:89:6: in alias rule @bazel_tools//platforms:windows: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: .../external/bazel_tools/platforms/BUILD:89:6: Analysis of target '@bazel_tools//platforms:windows' failed
ERROR: .../external/boost/BUILD.bazel:305:14: errors encountered resolving select() keys for @boost//:asio
ERROR: Analysis of target '//examples:serial_port_client' failed; build aborted:
INFO: Elapsed time: 14.526s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (41 packages loaded, 150 targets configured)
Fetching repository @com_github_google_glog; Cloning 0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6 of https://github.com/google/glog.git
ERROR: Build failed. Not running target
I would suggest either updating the dependencies to newer versions that support Bazel 6+ (they exist) or documenting in the readme that there is a max version usable.
Metadata
Metadata
Assignees
Labels
No labels