Skip to content

Bazel v6.0.0 and greater is not supported #61

@lukewelchGB

Description

@lukewelchGB

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions