[packages/llama.cpp] - added x32 fix, release 2
qboosh
qboosh at pld-linux.org
Sun Nov 22 22:18:42 CET 2026
commit c8a39cfe30825d411af337fb89af707e11774539
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 22 22:18:39 2026 +0100
- added x32 fix, release 2
llama.cpp-x32.patch | 20 ++++++++++++++++++++
llama.cpp.spec | 4 +++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/llama.cpp.spec b/llama.cpp.spec
index 4db6e1f..284a687 100644
--- a/llama.cpp.spec
+++ b/llama.cpp.spec
@@ -6,12 +6,13 @@ Summary: LLM inference in C/C++
Summary(pl.UTF-8): Wnioskowanie z użyciem LLM w C/C++
Name: llama.cpp
Version: 1.0.0
-Release: 1
+Release: 2
License: MIT
Group: Libraries
#Source0Download: https://github.com/ggml-org/llama.cpp/releases
Source0: https://github.com/ggml-org/llama.cpp/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 688562e96cae0d422272b97afd9ced5f
+Patch0: %{name}-x32.patch
URL: https://github.com/ggml-org/llama.cpp
BuildRequires: cmake >= 3.14
BuildRequires: ggml-devel >= 1.0.0
@@ -57,6 +58,7 @@ Pliki nagłówkowe bibliotek LLaMA.
%prep
%setup -q
+%patch -P0 -p1
%build
%cmake -B build \
diff --git a/llama.cpp-x32.patch b/llama.cpp-x32.patch
new file mode 100644
index 0000000..8373484
--- /dev/null
+++ b/llama.cpp-x32.patch
@@ -0,0 +1,20 @@
+--- llama.cpp-1.0.0/vendor/miniaudio/miniaudio.h.orig 2026-11-13 10:09:55.000000000 +0100
++++ llama.cpp-1.0.0/vendor/miniaudio/miniaudio.h 2026-11-22 21:37:32.429876568 +0100
+@@ -86280,7 +86280,7 @@ static MA_INLINE ma_uint32 ma_dr_flac__c
+ #endif
+ #else
+ #if defined(__GNUC__) || defined(__clang__)
+- #if defined(MA_X64)
++ #if (defined(MA_X64) && defined(MA_64BIT))
+ {
+ ma_uint64 r;
+ __asm__ __volatile__ (
+@@ -86288,7 +86288,7 @@ static MA_INLINE ma_uint32 ma_dr_flac__c
+ );
+ return (ma_uint32)r;
+ }
+- #elif defined(MA_X86)
++ #elif (defined(MA_X86) || (defined(MA_X64) && defined(MA_32BIT)))
+ {
+ ma_uint32 r;
+ __asm__ __volatile__ (
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llama.cpp.git/commitdiff/c8a39cfe30825d411af337fb89af707e11774539
More information about the pld-cvs-commit
mailing list