You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
Linux, AMD64
Any other potentially useful information about your toolchain?
Also use 0.10.3 LLVM toolchain.
What did you do?
I ran bazel build //FOO_TARGET --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 and bazel build //FOO_TARGET --platforms=@io_bazel_rules_go//go/toolchain:darwin_arm64.
When we upgraded from bazel version from 5.4.0 to 6.4.0, we found a missing cc toolchain error: in cc_toolchain_alias rule @bazel_tools//tools/cpp:current_cc_toolchain: Unable to find a CC toolchain using toolchain resolution. Did you properly set --platforms?
But this build succeed on Windows: bazel build //FOO_TARGET --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64
What did you expect to see?
It should build successfully.
What did you see instead?
The current workaround we have is to add https://github.com/uber/hermetic_cc_toolchain to make the cc toolchain to be discovered again.
What version of rules_go are you using?
0.42.0
What version of gazelle are you using?
0.33.0
What version of Bazel are you using?
6.4.0
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
Linux, AMD64
Any other potentially useful information about your toolchain?
Also use 0.10.3 LLVM toolchain.
What did you do?
I ran
bazel build //FOO_TARGET --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64
andbazel build //FOO_TARGET --platforms=@io_bazel_rules_go//go/toolchain:darwin_arm64
.When we upgraded from bazel version from 5.4.0 to 6.4.0, we found a missing cc toolchain error:
in cc_toolchain_alias rule @bazel_tools//tools/cpp:current_cc_toolchain: Unable to find a CC toolchain using toolchain resolution. Did you properly set --platforms?
But this build succeed on Windows:
bazel build //FOO_TARGET --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64
What did you expect to see?
It should build successfully.
What did you see instead?
The current workaround we have is to add
https://github.com/uber/hermetic_cc_toolchain
to make the cc toolchain to be discovered again.The text was updated successfully, but these errors were encountered: