Closed alecandido closed 3 weeks ago
I think we have a clang option somewhere that you have to enable, but I might be wrong.
The only references to Clang in the devenv.nix
docs are:
https://github.com/cachix/devenv/blob/ad0ae333b210e31237e1fc4a7ddab71a01785add/docs/reference/options.md?plain=1#L3844-L3850
EDIT: and those are actually the only references to Clang in the whole repo, other than the explicit dependency on pkgs.clang
in the c
and cplusplus
language presets
https://github.com/search?q=repo%3Acachix%2Fdevenv+clang&type=code
My workaround was adding pkgs.libcxxabi
I've found that clang breaks in this way if I have multiple languages enabled.
For example if I have the following then I get problems with clang when using golang.
languages.ruby.enable = true;
languages.rust.enable = true;
languages.go.enable = true;
But with only go enabled as below, it works just fine.
languages.go.enable = true;
I can confirm the issue.
My workaround was adding
pkgs.libcxxabi
This didn't work for me
Does it also happen on #745
Could someone try with 1.0.1 that was released yesterday?
I am going to test it immediately
All the examples above are now working, so I'd close the issue if there are no further comments
(to be completely honest: I didn't test with 1.0.1, but I left the flake locking the dependency on its own, and it happened to be fixed to rev 984707a775ad1540317ba455640e1748c27b163f, that is 3 commits ahead...)
Closing, please reopen if still broken.
Describe the bug Trying to compile a simple
hello.cpp
program is failing, because of c++abi not found.To reproduce I'm actually using a flake
I defined three shells (uncommenting each one of the subdivided sections), and run
with the customary
hello.cpp
:In the first case (no
devenv
) everything works smoothly (even without--impure
, of course), and running./a.out
I obtain the usualHello, World!
output. In the other two cases, I'm unable to compile. The result is:(the hash may change, I tried with multiple versions of
nixpkgs
, includingnixos-23.11
and `nixpkgs-23.11-darwin, on top of the two options in the flake)I'm not sure what is actually happening...
Version
I attach the whole
flake.lock
.flake.zip
I'm on MacOS, with ARM architecture (Apple Silicon).