-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libcxxClang doesn't seem to work as a toolchain #445
Comments
Is this the same problem as NixOS/nixpkgs#150655 ? Ie. does passing |
No, all other C++ standard library headers can be found. Also,
|
I think this is a consequence of nixpkgs having split the toolchain into different packages and libcxxabi not directly being part of the toolchain by default. A nix-shell provides an environment where these packages are combined again, using the Although this is also not enough, when trying to run
You could make this work by using rules_nixpkgs/toolchains/cc/cc.nix Lines 27 to 47 in 2c76769
Adding in any library and include directories needed. I am not sure how we could provide a better experience here, we probably would have to run the setupHooks somehow in order to realize the env variables so that the resulting paths would be reflected in the toolchain. |
Describe the bug
Using clang with libc++ fails to find
<cxxabi.h>
.To Reproduce
Use the following in WORKSPACE:
Try to compile something that includes
cxxabi.h
(e.g. googletest) and observe:Expected behavior
Compilation should succeed.
Environment
Additional context
These files definitely exist:
The text was updated successfully, but these errors were encountered: