Comments (6)
Thanks for the report. I will try to get to it over this weekend.
from toolchains_llvm.
more specifically, something like this fails:
/home/laptop/.cache/bazel/_bazel_laptop/install/a4696acfbd71b79376c811717f94d1ac/_embedded_binaries/linux-sandbox -t 15 -w /home/laptop/.cache/bazel/_bazel_laptop/9e74040f84b92184f3149fef1e79ff7d/sandbox/linux-sandbox/123/execroot/__main__ -w /tmp -w /dev/shm -D -- external/llvm_toolchain/bin/llvm-ar @bazel-out/host/bin/external/boost/libchrono.a-2.params
The external path(external/llvm_toolchain/bin/llvm-ar) is no longer there. Somehow no longer copied into the sandbox.
from toolchains_llvm.
I think we need to add an ar action in cc_toolchain_config.bzl
https://docs.bazel.build/versions/master/cc-toolchain-config-reference.html#ar-actions
from toolchains_llvm.
It seems the execroot occasionally doesn't include the external/
folder where the llvm tools are (clang and ar), but I've seen it show up for things like clang++
temporary hack: --strategy=CppCompile=standalone --strategy=CppLink=standalone
.
It leaves the sandbox which is undesirable.
from toolchains_llvm.
This ticket explains the issue well.
bazelbuild/bazel#8531
I've solved the problem with:
--incompatible_use_specific_tool_files=false
To fix this, we could probably change native.cc_toolchain
to use ar_files
https://github.com/grailbio/bazel-toolchain/blob/f2d0aeca399e70297414341d228c7be460b4d6a0/toolchain/internal/configure.bzl#L126
But at the same time, the docs say ar_files
is currently not used.
https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
from toolchains_llvm.
Thank you for the investigation. Your help made this an easy task for me.
from toolchains_llvm.
Related Issues (20)
- How to use LLVM XRAY ? HOT 3
- bzlmod sysroot example test not working HOT 6
- llvm-ar error on MacOS HOT 6
- Issue with llvm-ar parameters on MacOS HOT 8
- 'stdlib.h' file not found HOT 1
- Use LLVM toolchain in a module which can be used as both a dependency and a root module HOT 3
- If ID_LIKE is not set in /etc/os-release, an error ensues
- Linux AArch64 build fails with missing include <features.h> HOT 1
- Mismatched tags HOT 5
- Bazel Builds will Fail on Pulling if Using Old Org and Repo Name HOT 3
- Dependency Dashboard HOT 2
- No such file or directory error with bazel 7 HOT 3
- Override OS version possible? HOT 5
- Add support for LLVM 17.x.x HOT 4
- New release? HOT 2
- Replace usage of `tool_paths` with `action_configs` HOT 5
- Repo governance HOT 2
- Issues with Version 1.0.0 HOT 6
- Option to use `--linkopt=-fuse-ld=ld64.lld` flag does not respect `absolute_paths = True` HOT 1
- Fatal error: module 'crosstool' is needed but has not been provided, and implicit use of module files is disabled HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolchains_llvm.