-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Build failure: llama-cpp #272569
Comments
It seems it needs |
the
I fixerd it with
|
Or alternatively to patching nixpkgs itself, which is annoying, here as a dependency of ollama: with pkgs; (ollama.override { llama-cpp = (llama-cpp.override { stdenv = gcc11Stdenv; }); } |
Where should this line be added? Somewhere in configuration.nix? |
Where you would have otherwise used just |
This:
needs to be rewritten like so: nixpkgs/pkgs/development/libraries/opencv/4.x.nix Lines 90 to 93 in bfbfb34
At least until #226165 had been addressed If anybody gets around to do this, please try also to remove any references to the deprecated nixpkgs/pkgs/by-name/ll/llama-cpp/package.nix Lines 26 to 36 in bfbfb34
Instead, add Thanks! |
Tangent: thanks @SomeoneSerge for your contributions on improving the CUDA landscape in the nix ecosystem. You seem to be distilling a lot of good practices and guidelines around CUDA packaging in various GitHub issue comments that sadly won't get any visibility once closed. Please consider adding this knowledge to the manual, which currently is very dry in terms of examples. Cheers! 👍 |
Have to open this back, since #275807 not only does not fix the issue, but also breaks the workaround. |
I tried to adapt https://github.com/ggerganov/llama.cpp/blob/master/.devops/nix/package.nix, but I get the following build error:
|
hey, to address the cudaSupport failure, I went ahead and created #277709 |
This is https://gitlab.kitware.com/cmake/cmake/-/issues/25536 (which is most likely not a cmake issue, but an error on nvidia's part). We've added a hostfix for the redist packages (e.g. |
llama-cpp fails to build with
cudaSupport = true
Build log
Notify maintainers
@dit7ya @elohmeier
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: