-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
python312Packages.llama-cpp-python: fix linux build #377484
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM
Thank you ! |
Their cmake files were attempting to build with -mcpu=native+no<...> which fails for gcc. Actually, we should never build for native anyway (which is the raison d'etre for NIX_ENFORCE_NO_NATIVE). Thankfully, the package provides a variable to disable native optimizations.
e4d317b
to
158aa70
Compare
158aa70
to
7494270
Compare
@kirillrdy I took the liberty and added myself as maintainer. Let me know if there are any concerns with this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 377484
aarch64-linux
✅ 8 packages built:
- python312Packages.llama-cpp-python
- python312Packages.llama-cpp-python.dist
- python312Packages.llm-gguf
- python312Packages.llm-gguf.dist
- python313Packages.llama-cpp-python
- python313Packages.llama-cpp-python.dist
- python313Packages.llm-gguf
- python313Packages.llm-gguf.dist
@booxter welcome !
Their cmake files were attempting to build with -mcpu=native+no<...>
which fails for gcc. Actually, we should never build for native anyway
(which is the raison d'etre for NIX_ENFORCE_NO_NATIVE).
Thankfully, the package provides a variable to disable native
optimizations.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.