Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2024 17:34:09 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 600465f88b34 - main - misc/koboldcpp: fix build on powerpc*
Message-ID:  <202412111734.4BBHY9kX029121@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=600465f88b34c0cf552f0732b6e99eb51b8bcb2f

commit 600465f88b34c0cf552f0732b6e99eb51b8bcb2f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-12-11 11:12:19 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-12-11 17:29:01 +0000

    misc/koboldcpp: fix build on powerpc*
    
    immintrin.h is not available on powerpc / powerpc64 and requires VSX on powerpc64le.
---
 misc/koboldcpp/files/patch-otherarch_ggml__v1.c | 11 +++++++++++
 misc/koboldcpp/files/patch-otherarch_ggml__v2.c | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/misc/koboldcpp/files/patch-otherarch_ggml__v1.c b/misc/koboldcpp/files/patch-otherarch_ggml__v1.c
new file mode 100644
index 000000000000..9956d930ed13
--- /dev/null
+++ b/misc/koboldcpp/files/patch-otherarch_ggml__v1.c
@@ -0,0 +1,11 @@
+--- otherarch/ggml_v1.c.orig	2024-12-11 11:02:13 UTC
++++ otherarch/ggml_v1.c
+@@ -151,7 +151,7 @@ typedef double ggml_v1_float;
+ #undef bool
+ #define bool _Bool
+ #else
+-#if !defined(__riscv)
++#if !defined(__riscv) && (defined(__amd64__) || defined(__i386__))
+ #include <immintrin.h>
+ #endif
+ #endif
diff --git a/misc/koboldcpp/files/patch-otherarch_ggml__v2.c b/misc/koboldcpp/files/patch-otherarch_ggml__v2.c
new file mode 100644
index 000000000000..fafd01935399
--- /dev/null
+++ b/misc/koboldcpp/files/patch-otherarch_ggml__v2.c
@@ -0,0 +1,11 @@
+--- otherarch/ggml_v2.c.orig	2024-12-11 11:02:17 UTC
++++ otherarch/ggml_v2.c
+@@ -183,7 +183,7 @@ typedef double ggml_v2_float;
+ #if defined(_MSC_VER) || defined(__MINGW32__)
+ #include <intrin.h>
+ #else
+-#if !defined(__riscv)
++#if !defined(__riscv) && (defined(__amd64__) || defined(__i386__))
+ #include <immintrin.h>
+ #endif
+ #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412111734.4BBHY9kX029121>