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

Bazel v6.0.0 and greater is not supported #61

Open
lukewelchGB opened this issue Jun 25, 2024 · 0 comments
Open

Bazel v6.0.0 and greater is not supported #61

lukewelchGB opened this issue Jun 25, 2024 · 0 comments

Comments

@lukewelchGB
Copy link

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.

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

1 participant