cc_library with subpackage fails with duplicate action error #14237
Labels
area-Windows
Windows-specific issues and feature requests
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Rules-CPP
Issues for C++ rules
type: bug
Description of the problem :
When creating a cc_library target with a subpackage (I think thats the right name for it, I'm not sure), a conflicting actions error occurs.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Use the following BUILD.bazel contents (lib.cc is just
void func() {}
and main.cc is justint main() {}
And build the target
:sub/mylib
. This will result in the following output.However, if you attempt to build
:sub/myexe
that builds fine. So its a bug specific to cc_library.What operating system are you running Bazel on?
Windows 11
What's the output of
bazel info release
?Have you found anything relevant by searching the web?
The error looks similar to this, but its not the exact same.
#13464
The text was updated successfully, but these errors were encountered: