bazel/util/pico_linker_scripts.bzl missing CcInfo load() #2902

Closed
opened 2026-04-15 17:44:10 -05:00 by corvad · 2 comments
corvad commented 2026-04-15 17:44:10 -05:00 (Migrated from github.com)

Newer Bazel versions removed the CcInfo symbol.

ERROR: [...]/external/pico-sdk+/bazel/util/pico_linker_scripts.bzl:27:9: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:

load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

The fix should be an explicit load() from rules_cc in pico_linker_scripts.bzl.

Newer Bazel versions removed the CcInfo symbol. ``` ERROR: [...]/external/pico-sdk+/bazel/util/pico_linker_scripts.bzl:27:9: The CcInfo symbol has been removed, add the following to your BUILD/bzl file: load("@rules_cc//cc/common:cc_info.bzl", "CcInfo") ``` The fix should be an explicit load() from rules_cc in pico_linker_scripts.bzl.
uditabose commented 2026-04-16 05:00:43 -05:00 (Migrated from github.com)

According to https://github.com/bazelbuild/bazel/releases/tag/9.0.2 fix is

# Add repo_name = None if you don't directly depend on them.
bazel_dep(name = "rules_go", version = "0.59.0")
bazel_dep(name = "rules_nodejs", version = "6.7.3")

This indeed fixed the issue for me.

According to https://github.com/bazelbuild/bazel/releases/tag/9.0.2 fix is ``` # Add repo_name = None if you don't directly depend on them. bazel_dep(name = "rules_go", version = "0.59.0") bazel_dep(name = "rules_nodejs", version = "6.7.3") ```` This indeed fixed the issue for me.
will-v-pi commented 2026-04-28 03:30:08 -05:00 (Migrated from github.com)

This is fixed as part of https://github.com/raspberrypi/pico-sdk/pull/2904, which also adds CI checks to prevent this happening again

This is fixed as part of https://github.com/raspberrypi/pico-sdk/pull/2904, which also adds CI checks to prevent this happening again
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#2902
No description provided.