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

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

Open
sgowroji opened this issue Nov 4, 2024 · 1 comment

Comments

@sgowroji
Copy link

sgowroji commented Nov 4, 2024

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

@ensonic
Copy link
Contributor

ensonic commented Nov 4, 2024

Looks like bazel-contrib/rules_foreign_cc#1239

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