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

Your build has triggered a programmatic error in the cc_shared_library rule #24072

Closed
Ryang20718 opened this issue Oct 24, 2024 · 6 comments
Closed
Labels

Comments

@Ryang20718
Copy link

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 returns development 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

@fmeum
Copy link
Collaborator

fmeum commented Oct 24, 2024

Likely a duplicate of #24063, which has a smaller reproducer.

@iancha1992 iancha1992 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
@peakschris
Copy link

I am also seeing this issue on a pure (I think) C++ build. 7.4.0rc2 is OK, 7.4.0 has the issue.

@iancha1992 iancha1992 reopened this Oct 24, 2024
@fmeum
Copy link
Collaborator

fmeum commented Oct 24, 2024

@peakschris If possible, could you share a reproducer? It's quite possible that this change just happened to unearth different underlying bugs.

@fmeum
Copy link
Collaborator

fmeum commented Oct 24, 2024

This is an honest duplicate, the missing node is @rust_darwin_aarch64__aarch64-apple-darwin__stable_tools//:rust_toolchain.

@peakschris Please open a new issue if you have a reproducer without rules_rust.

@fmeum fmeum closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
@peakschris
Copy link

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.

@malkia
Copy link

malkia commented Oct 26, 2024

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 .bazelversion needs to be bumped before that to 7.4.0 to show it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants