-
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
Your build has triggered a programmatic error in the cc_shared_library rule #24072
Comments
Likely a duplicate of #24063, which has a smaller reproducer. |
I am also seeing this issue on a pure (I think) C++ build. 7.4.0rc2 is OK, 7.4.0 has the issue. |
@peakschris If possible, could you share a reproducer? It's quite possible that this change just happened to unearth different underlying bugs. |
This is an honest duplicate, the missing node is @peakschris Please open a new issue if you have a reproducer without rules_rust. |
We don't use rules_rust. We do have header_only cc_libraries as deps for cc_shared_library. Hopefully the 7.4.0 change that you've reverted will fix things for us. If not, I'll work on a reproducer in the next couple of days. |
I also have one, https://github.com/malkia/opentelemetry-cpp bazel run --//:with_dll=true make_otel_sdk but it's more complicated setup, also manually |
Description of the bug:
cc_shared_library fails to build
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.
git clone https://github.com/Ryang20718/repro-cpp-linker
set bazel version to 7.4.0 and
bazelisk build @gdal//:gdal
Which operating system are you running Bazel on?
ubuntu 20.04
What is the output of
bazel info 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
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
this first broke in 7.4.0 and 7.3.2 was working fine
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: