Comments (5)
I have pushed a new tag (0.5.6) which has this fix.
from toolchains_llvm.
The error message you are getting is because something is missing in the declared builtin include paths. I think we need to add a lib64
directory in addition to the lib
directory in these two places:
https://github.com/grailbio/bazel-toolchain/blob/f2d0aeca399e70297414341d228c7be460b4d6a0/toolchain/cc_toolchain_config.bzl.tpl#L504
https://github.com/grailbio/bazel-toolchain/blob/f2d0aeca399e70297414341d228c7be460b4d6a0/toolchain/cc_toolchain_config.bzl.tpl#L514
This could be independent of whether you are using absolute paths or not.
If you are familiar with how to test changes to external repos, can you test it and see if it resolves your problems? I am afraid I am not able to reproduce your issue easily.
As an aside, do you find the absolute paths feature useful? It has been a while since the feature was originally introduced, and there have been improvements in bazel sandbox since, so I was thinking of removing the feature.
from toolchains_llvm.
@siddharthab Thanks for the speedy reply! I actually only use the absolute paths because without it https://github.com/bazelbuild/rules_foreign_cc/ does not work (I think it runs stuff from a different directory so the paths are incorrect).
Let me add in those patches and test
from toolchains_llvm.
@siddharthab your suggestion to add lib64
worked! 🎊
from toolchains_llvm.
Awesome! Can you send a PR?
from toolchains_llvm.
Related Issues (20)
- 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
- Documentation on using toolchains_llvm with bzlmod HOT 1
- Use deb packages as binary sources
- discrepancy with toolchain on builds on same OS & Arch HOT 4
- don't use cc_wrapper.sh when specify toolchain from local absolute path?
- made cxx_builtin_include_directories also support an empty key
- Support for more target platforms
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.