-
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
Possible regression between 6.4.0 and 7.x: cc_library
does not propagate linkopts
option
#23053
Labels
Comments
@oquenchil Is it possible that |
@bazel-io flag |
bazel-io
added
the
potential release blocker
Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone
label
Aug 5, 2024
@bazel-io fork 7.4.0 |
bazel-io
removed
the
potential release blocker
Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone
label
Aug 5, 2024
Duplicate of #21884 |
bazel-io
pushed a commit
to bazel-io/bazel
that referenced
this issue
Oct 16, 2024
Fixes bazelbuild#21884 Fixes bazelbuild#23053 Closes bazelbuild#23215. PiperOrigin-RevId: 686518093 Change-Id: I1a6699b169fe4291ad0dda3be7e74f38c8e37bf1
bazel-io
pushed a commit
to bazel-io/bazel
that referenced
this issue
Oct 16, 2024
Fixes bazelbuild#21884 Fixes bazelbuild#23053 Closes bazelbuild#23215. PiperOrigin-RevId: 686518093 Change-Id: I1a6699b169fe4291ad0dda3be7e74f38c8e37bf1
iancha1992
pushed a commit
to iancha1992/bazel
that referenced
this issue
Oct 16, 2024
Fixes bazelbuild#21884 Fixes bazelbuild#23053 Closes bazelbuild#23215. PiperOrigin-RevId: 686518093 Change-Id: I1a6699b169fe4291ad0dda3be7e74f38c8e37bf1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug:
Hello. It seems that Bazel 7.x does not link library specified in
linkopts
of dependency, even though 6.4.0 do.For example, the following code, which creates
libtest.so
, should link tolibuim.so
as specified inuim
dependency. However, in 7.x, it does not link.I confirmed that by executing
ldd
, and also looking atlibtest.so-2.params
file. When built with 7.x, thelibtest.so-2.params
file does not include-luim
or-luim-scm
line.Also, when I copy linkopts to
test_lib
, it works fine.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.
WORKSPACE.bazel
andMODULE.bazel
.BUILD.bazel
posted above.test.cc
.bazel build test --experimental_cc_shared_library
in either bazel 6.4.0 or 7.2.1.src/bazel-bin/libtest.so-2.params
contains-luim
or-luim-scm
.Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?release 7.2.1 (used bazelisk)
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.
I tried to run bisect but failed, because 6.4.0 (good Bazel commit) is not an ancestor of 7.2.1 (bad Bazel commit), and their merge base commit fails to run.
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: