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 build fails on Mac #1

Closed
jacksmith15 opened this issue Jul 6, 2022 · 1 comment
Closed

bazel build fails on Mac #1

jacksmith15 opened this issue Jul 6, 2022 · 1 comment

Comments

@jacksmith15
Copy link
Owner

Error below is shown:

$ bazelisk build //...
2022/05/13 16:37:27 Downloading https://releases.bazel.build/5.0.0/release/bazel-5.0.0-darwin-x86_64...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
ERROR: /path/to/bazel-python-demo/src/users/api/BUILD.bazel:5:15: While resolving toolchains for target //src/users/api:image.binary: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file? See https://github.com/bazelbuild/bazel/issues/10134 for details and migration instructions.
ERROR: Analysis of target '//src/users/api:image.publish' failed; build aborted:
INFO: Elapsed time: 25.646s
INFO: 0 processes.

This appears to be due to bazelbuild/rules_docker#2052

I attempted a downgrade of rules_docker, but this failed on linux due to a separate bug. Possibly the solution is to configure a c++ toolchain?

@jacksmith15
Copy link
Owner Author

Looks like the solution might be this flag: bazelbuild/rules_docker#2052 (comment)

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