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] Error toolchain_config_utils.bzl' is invalid because 'cc/toolchains' is not a package #114

Open
sgowroji opened this issue Oct 17, 2024 · 1 comment

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4205#019298aa-c29a-4322-9cff-f0d54e9f932e

Platform: Ubuntu

Logs:

ERROR: �[0mError computing the main repository mapping: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d7f9c650ce4289e103215f92cf61272f/external/bazel_tools/tools/cpp/cc_configure.bzl:18:6: Label '@@rules_cc//cc/toolchains:toolchain_config_utils.bzl' is invalid because 'cc/toolchains' is not a package; perhaps you meant to put the colon here: '@@rules_cc//cc:toolchains/toolchain_config_utils.bzl'?
Error: The command exited with status 1�[0m
error: The plugin docker command hook exited with status 1

Culprit: bazelbuild/bazel@1c4e78a

Steps:

git clone https://github.com/bazelbuild/rules_testing
git reset 83377311aa9d389d87a1bbba4fd71800a006493e  --hard
export USE_BAZEL_VERSION=1d022f403d26505d6edda73a50e08da53109dd3b
bazel build --noenable_bzlmod --enable_workspace ... 

CC Greenteam @meteorcloudy

@rickeylev
Copy link
Collaborator

This errors sounds very familiar. I think we saw this in rules_python and the fix was to upgrade the rules_cc version being using.

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