Closed derekperkins closed 5 months ago
I tried with all combinations of these two flags as suggested in the linked issue, and it still didn't successfully build.
common --noincompatible_sandbox_hermetic_tmp
common --sandbox_add_mount_pair=/tmp
Sorry, the missing dep you are referencing is a system dependency from the released LLVM distribution. It is out of scope for this project.
You can reference what we install in a base Debian image to make the toolchain (and our tests) work -- https://github.com/bazel-contrib/toolchains_llvm/blob/67d4dcd7e48f32536e21439626a9a1bed8d58da8/tests/scripts/debian_test.sh#L33
For the slim Debian image, you might need a few more deps. You can use the script above to iterate locally and test.
Please reopen if it does not work for you.
That was it, thanks, sorry for the noise. I was under the assumption that this toolchain was completely self-contained.
When upgrading to Bazel 7.0.2 from 6.5.0, with no other changes (bzlmod explicitly disabled), my llvm build fails in CI (Google Cloud Build) saying that a file can't be found. I'm not quite sure what would cause that change.
Possibly related issue:
Error logs
not full files, just seemingly relevant pieces
.bazelrc
WORKSPACE
Dockerfile