https://github.com/bazelbuild/bazel/issues/4057 has reappeared with Bazel 7 #20957
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-CPP
Issues for C++ rules
type: bug
Description of the bug:
Building a
cc_library
without symbols now prints a warning (due to the switch to the Unix CC toolchain in Bazel 7 on macOS).Which category does this issue belong to?
C++/Objective-C Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Same as #4057: create a trivial workspace with an empty
empty.c
and a BUILD file like:Then,
bazel build //:empty
will print a warning likeThis doesn't happen in Bazel 6 (which uses the Xcode toolchain by default, where this issue has been fixed by #4057 and/or #5981).
Which operating system are you running Bazel on?
macOS 14.2.1 (23C71)
What is the output of
bazel info release
?release 7.0.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.N/A
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
Technically a regression (no warning in Bazel 6), though this probably was always present in the Unix toolchain.
Have you found anything relevant by searching the web?
Same as #4057 and #5981, just for the Unix toolchain instead of the Xcode one.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: