Skip to content

[Bazel CI] ERROR: Bazel Build Failure: Incompatible CcInfo symbol removal in rules_go #677

@deepalak56

Description

@deepalak56

CI: https://buildkite.com/bazel/bazel-bazel-examples/builds/5233#019d3c14-920b-40e3-858e-fe198192daeb

Platform: MacOS

Logs:


(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:101:12: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
--
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:102:39: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:107:28: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:109:29: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:112:35: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:115:36: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/rules/cgo.bzl:191:22: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
 
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(00:16:11) ERROR: /workdir/frontend/vue/libraries/simple/BUILD.bazel:55:12: While resolving toolchains for target //vue/libraries/simple:pkg (73d4be1): invalid registered toolchain '@go_toolchains//:all': while parsing '@go_toolchains//:all': error loading package '@@rules_go++go_sdk+go_toolchains//': at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/go_toolchain.bzl:20:6: at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_go+/go/private/actions/archive.bzl:34:5: compilation of module 'go/private/rules/cgo.bzl' failed
(00:16:11) ERROR: Analysis of target '//vue/libraries/simple:pkg' failed; build aborted
(00:16:11) INFO: Elapsed time: 4.942s, Critical Path: 0.04s
(00:16:11) INFO: 1 process: 1 internal.
(00:16:11) ERROR: Build did NOT complete successfully
(00:16:11) FAILED:
Fetching repository @@rules_diff+; starting
Fetching repository @@ape+; starting
Fetching repository @@rules_kotlin+; starting
Fetching repository @@rules_buf++buf+rules_buf_toolchains; Downloading buf-Linux-x86_64
Fetching ...e/bazel/_bazel_buildkite-agent/35a07be9248b2971a5f99210ada8127b/external/rules_kotlin+; Extracting rules_kotlin-v1.9.6.tar.gz
Fetching repository @@rules_java++toolchains+local_jdk; starting
bazel build failed with exit code 1
🚨 Error: The command exited with status 1

Culprit:

Steps:

git clone https://github.com/bazelbuild/examples
git reset daadf13 --hard
export USE_BAZEL_VERSION=daadf13928d9e091ff0c26ce53aea3099a8fc6a3
bazel build ...

CC Greenteam @Wyverald

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions