Include the symlinked dwp/objcopy/strip files in the toolchain#108
Conversation
|
Thanks for the PR and good catch. Do you have an example of an action that fails without this fix? I'd like to add a test to ensure that we don't make this mistake again but I'm struggling to come up something that exposes this issue; do we need |
Then try to build a cc_binary with |
|
@rrbutani this worked on our build nicely, except we need a further patch of very similar nature. I hope you don't mind if i add strip file groups to this PR. |
|
To reproduce for stripping try to build a cc_binary with .stripped appended (must be explicit). |
Yup, that's absolutely fine; they're the same underlying issue. |
|
Sorry for the delay; it took me a while to realize that the reason I couldn't reproduce this locally ( I also got a bit sidetracked trying to figure out why I'll add a build test for a After that this PR should be good to go. |
This has some things we'll eventually want to remove; see bazel-contrib#109 for some context.
|
Thank you @rrbutani for taking care of this. |
No problem! I believe the failures in CI we're seeing now are because of this change in LLVM 12 (and also GCC 11) that no longer has bazelbuild/bazel#14038 tracks this and bazelbuild/rules_cc#115 has a fix that will fix the problem on our end, if merged. For now, to work around this without downgrading our LLVM version or switching the tests to use |
…ated with clang-12+ Issue bazel-contrib#109 and [this comment](bazel-contrib#108 (comment)) have some context; the short version is that `-gsplit-dwarf` no longer implies `-g2` which means under `-c fastbuild` (implies `-g0`) no `.dwo` files are created. There's a patch to `unix_cc_toolchain_config.bzl` but for now we'll just use `-c dbg` for this one target using a transition.
|
@siddharthab does this PR look okay? Also (assuming this is fine to merge) is it okay if I update the README and tag 0.6.3 after merging it? |
whoops
|
@rrbutani Yes, please go ahead. If there are no other changes in the works for the immediate future, you can push a new tag. |
Without the
:llvmtarget the toolchain files are missing when using sandbox.