core icon indicating copy to clipboard operation
core copied to clipboard

[Bazel CI] Bazel Toolchain Error: Unable to load '@@bazel_tools//tools/cpp:unix_cc_toolchain_config.bzl'

Open sgowroji opened this issue 1 year ago • 1 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4245#0192f559-a83a-4c7c-b527-f91293edd99a

Platform: Ubuntu

Logs:

ERROR: [0m/var/lib/buildkite-agent/builds/bk-docker-jr8r/bazel-org-repo-root/core/src/app_charts/base/BUILD.bazel:26:8: While resolving toolchains for target //src/app_charts/base:app_management_test (57358eb): invalid registered toolchain '@llvm_toolchain//:all': while parsing '@llvm_toolchain//:all': error loading package '@@toolchains_llvm++llvm+llvm_toolchain//': at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/7aa66e143a3e3645b65c3432d9ce9313/external/toolchains_llvm+/toolchain/cc_toolchain_config.bzl:16:5: cannot load '@@bazel_tools//tools/cpp:unix_cc_toolchain_config.bzl': no such file
ERROR: [0mAnalysis of target '//src/app_charts/base:app_management_test' failed; build aborted
ERROR: [0mBuild did NOT complete successfully
FAILED:[0m 
FAILED:[0m 
Error: The command exited with status 1[0m
error: The plugin docker command hook exited with status 1

Culprit:

Steps:

git clone https://github.com/googlecloudrobotics/core
git reset 60f4c3571f1e4e5bd705f0d4940e192c3698f718  --hard
export USE_BAZEL_VERSION=73b0da986f5b18fbc208910c82e96a32e90d35db
bazel build --enable_workspace  //... 

CC Greenteam @mai93

sgowroji avatar Nov 04 '24 11:11 sgowroji

Looks like https://github.com/bazel-contrib/rules_foreign_cc/issues/1239

ensonic avatar Nov 04 '24 13:11 ensonic