-
Notifications
You must be signed in to change notification settings - Fork 139
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
Error in fail: Compiling objc_library targets requires the Apple CC toolchain #1115
Comments
This requires a fix in Bazel, with a new rules_cc release. @meteorcloudy is working on that now. |
Note that even with my fix, you'll have to make sure Lines 10 to 11 in 8c09041
But this could be brittle, not sure if there is any way to actually filter out the non apple cc toolchains during toolchain resolution. |
You're telling me! Seems like a Bazel change is needed for that. |
But I have no idea what else we could do from Bazel side, toolchain resolution has to follow an order, and it is currently a BFS order of all registrations from the root module. |
cc @katre I believe there are some ideas, how to make order of registration matter less. It’s more of a toolchain resolution problem than bzlmod. |
The problem is that there are multiple matching cc toolchains, at least one from The best idea we've come up with so far would be to add a Instead of this, can the problematic |
rules_cc is registering the builtin toolchain now bazelbuild/rules_cc@0097505, maybe it could just not do that until things move to rules_cc? |
Yeah, sounds like we should remove the toolchain registration in rules_cc all together. |
Why not removing it from bazel_tools instead? |
I think that rules_cc and rules_java should do the toolchain registration themselves, and it shouldn't happen in @bazel_tools. That is because then the rules_java, rules_cc repos can be updated independently of Bazel. |
Fully agree with @comius here, we have already moved all the Java toolchains into In my opinion the missing piece is the equivalent of Ideally, both |
I agree that should be the plan in the long term, but in short term maybe removing the toolchain registration from rules_cc is better for users? |
Above failures are not shown in the latest CI. Hence we are closing this issue now. |
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3319#018ab078-1251-4412-a17f-cc5e782ea20e
Platform : rules_swift (Current LTS using bzlmod on :darwin: (OpenJDK 11, Xcode))
Logs:
Steps:
Culprit Found: 1be55d8add84c2d04c3353b7e481a7866a92eac7
Cc Greenteam @comius
The text was updated successfully, but these errors were encountered: