-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[7.4.0] programmatic error in the cc_shared_library rule #24063
Comments
7.4.0 just got released and contains a regression which affects us bazelbuild/bazel#24063
7.4.0 just got released and contains a regression which affects us bazelbuild/bazel#24063
Does this also happen to Bazel@HEAD? |
@fmeum Are you looking into a fix? |
I am |
@meteorcloudy With
|
This is happening because @oquenchil Did you factor in |
I am also seeing this issue on a pure (I think) C++ build. 7.4.0rc2 is OK, 7.4.0 has the issue. |
@meteorcloudy We'll look for a fix for Bazel@HEAD and Bazel 8, but we should definitely revert this for 7.4.0. I sent #24087. |
Fabian I don't remember anything related to LinkerInputs in toolchains that I can give you as context. I think I didn't add anything specific since back then because when I wrote it toolchains didn't have objects of the LinkerInput class (or any C++ provider), not sure if that's not the case anymore. The cc_shared_library aspect only propagated via the CcInfo provider. The actual linker inputs from the toolchains were added to actions but as as raw files, not wrapped in the LinkerInput class. Adding the raw toolchain files has always been done automatically behind the cc_common API without having to do it explicitly. I can tell you though that Mai added an API for aspects propagated to toolchains back in July 68ee1e4 Maybe that's relevant and it can help. |
Description of the bug:
rules_rust CI picks up latest Bazel releases. Since 7.4.0 was released, our CI has been failing with:
See https://buildkite.com/bazel/rules-rust-rustlang/builds/12498#0192ba36-aa5a-49d7-af36-0c85e2c50257 for an example.
Repro by cloning https://github.com/bazelbuild/rules_rust at 113439296e4c264aa4ac7fe49f35eb52f0c95dcb and running:
USE_BAZEL_VERSION=7.4.0 bazel test test/cc_shared_library/...
7.3.2 passes cleanly.
Which category does this issue belong to?
C++ Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Clone https://github.com/bazelbuild/rules_rust at 113439296e4c264aa4ac7fe49f35eb52f0c95dcb and run:
USE_BAZEL_VERSION=7.4.0 bazel test test/cc_shared_library/...
Which operating system are you running Bazel on?
Any
What is the output of
bazel info release
?release 7.4.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
c118308
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
cc @fmeum
The text was updated successfully, but these errors were encountered: