-
Notifications
You must be signed in to change notification settings - Fork 252
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
fatal error: 'algorithm' file not found - c2rust-ast-exporter
ExportResult.hpp
#380
Comments
c2rust-ast-exporter
ExportResult.hpp
@milahu, where would If you make these environment variables optional overrides in |
i guess this is mostly a nix problem (multi prefix filesystem) if c2rust could expose these env-vars in nix there is also see https://nixos.wiki/wiki/Using_Clang_instead_of_GCC its just a challenge to combine rustPlatform.buildRustPackage {
buildInputs = [
clangStdenv.cc
];
} what did others do? grep grep grep ...
for example pkgs/games/blightmud/default.nix |
Seems to be rectified after double checking my libstdc++ install, might be something to mention in the readme. |
For reference, I was experiencing this on my system(s), both Ubuntu 22.04. The solution has been to install the package |
I can confirm that installing |
In Mac you need install gcc. brew install gcc |
Just tested on 24.04, and there's a similar workaround - |
Try this: brew install llvm
export CC=$(brew --prefix llvm)/bin/clang
export CXX=$(brew --prefix llvm)/bin/clang++ And try again the package installation. if it works, append those exports to |
bindgen cannot find C++/C header files = rust-lang/rust-bindgen#1834
same problem as #323 (comment) and #323 (comment)
solution concept:
possible alternative: use
llvm-config
to set these include pathsexample env's on nixos:
strangely, it works with
nix-shell
but fails withnix-build
(debugging this is on my todo list ...)c2rust.nix (draft) (WIP)
todo: add the
clang_arg
only when the env's are definedThe text was updated successfully, but these errors were encountered: