[llvm] [bazel] Update to 7.x (PR #86297)

Augie Fackler via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 11:16:14 PDT 2024


durin42 wrote:

This seems to be [pretty](https://buildkite.com/llvm-project/upstream-bazel/builds/92741#018e673d-6bac-4aba-a2d1-a398003d7aad) [broken](https://buildkite.com/llvm-project/upstream-bazel/builds/92742#018e674a-505b-47c2-9a2a-784b597e2a03) (included both links because for some reason the first run including this change truncated the output) on the buildkite for bazel - I can reproduce locally with `USE_BAZEL_VERSION=7.1.1 bazelisk build --config=ci --config=generic_clang @llvm-project//llvm/unittests:SupportTests` which fails like this:
```
ERROR: [...]llvm-project/llvm/unittests/BUILD.bazel:633:8: Compiling llvm/unittests/Support/DebugTest.cpp failed: undeclared inclusion(s) in rule '@@llvm-project//llvm/unittests:SupportTests':
this rule is missing dependency declarations for the following files included by 'llvm/unittests/Support/DebugTest.cpp':
  'bazel-out/k8-fastbuild/bin/external/llvm-project/llvm/Demangle.cppmap'
  'bazel-out/k8-fastbuild/bin/external/llvm_zlib/zlib.cppmap'
  'bazel-out/k8-fastbuild/bin/external/llvm_zstd/zstd.cppmap'
  'bazel-out/k8-fastbuild/bin/external/llvm-project/llvm/BitstreamReader.cppmap'
[elided many more cppmap lines]
```
I don't know enough bazel to be of use here, but it seems like there must be a discrepancy in a rule implementation somehow?

https://github.com/llvm/llvm-project/pull/86297


More information about the llvm-commits mailing list