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

Cannot resolve C++ toolchain #1

Closed
parisholley opened this issue Sep 10, 2020 · 2 comments
Closed

Cannot resolve C++ toolchain #1

parisholley opened this issue Sep 10, 2020 · 2 comments

Comments

@parisholley
Copy link

While resolving toolchains for target @bazel_tools//tools/build_defs/hash:sha256: 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 bazelbuild/bazel#10134 for details and migration instructions.

@siggisim
Copy link
Member

Hey @parisholley! Thanks for filing this.

Are you kicking off the remote build from a Mac or Linux host? Bazel RBE doesn't currently support having a different local and remote execution platforms. We're not (yet) running Mac runners on our Cloud RBE, so if you're kicking off your build from a Mac - that's likely causing the issues you're seeing. We're working hard on getting Mac executors up and running.

If you're using a linux host and still getting these errors, I'd try using rbe_autconfig from the bazel-toolchain repo and see if you still get the same error. If not, we can probably pull some of that toolchain configuration into buildbuddy-toolchain:
https://releases.bazel.build/bazel-toolchains.html

For the timeout issue, if that's happening on a linux host - it's likely some large artifact is timing out while uploading. Bazel's default timeout for this is 60 seconds - you can override this with the flag --remote_timeout=600. This upload should likely only happen on your first run, and be cached after that.

Happy to help debug further if none of this helps!

@parisholley
Copy link
Author

I'm on a Mac sad face

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

2 participants