-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error in fail: Unable to find a CC toolchain using toolchain resolution. #20970
Comments
Hello, I'm using bazel 7.0.2 right now and I'm facing exactly the same problem. Is there possibility that that issue came back ? |
Hey @ted-xie, this looks like Android NDK toolchains problem happening https://github.com/bazelbuild/examples/tree/main/android/jetpack-compose. Could you investigate? |
1 similar comment
cc @meisterT |
I was able to reproduce this (after a small change in the repro instructions that I've edited the original issue for). I think I've seen this before; we should just need some extra flags in bazelrc IIRC. |
I think there may be multiple problems with this example. I noticed there was no NDK repository specified anywhere, so I added it:
Then when I try to build the example app, there's a different error about a missing Java toolchain:
I think overall it may be better to deprecate this jetpack compose example entirely, since rules_kotlin has its own version here that is more actively maintained and closer to the development pulse. @Bencodes |
Updating to a more recent My patch:
The build:
I think this needs some input from the rules_kotlin folks on how to proceed. |
* Use a more recent rules_kotlin version (1.9.5) * Use a more recent compose compiler version (1.9.22) * Add android_ndk_repository dependency Fixes bazelbuild/bazel#20970
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3608#018d2ef4-1d2c-446b-a314-c133272f58d9
Platform: Ubuntu, MacOS
Logs:
Culprit: 03490b9, 8ba6618
Steps:
CC Greenteam @comius
The text was updated successfully, but these errors were encountered: