Date: Tue, 30 Dec 2025 14:55:08 +0000 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: b6660c1d142a - main - misc/py-llama-cpp-python: fix build on powerpc64* Message-ID: <6953e7cc.4752a.20633ecc@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b6660c1d142a4b6585233b0c2d5132a52c5063b3 commit b6660c1d142a4b6585233b0c2d5132a52c5063b3 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-12-30 14:21:38 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-12-30 14:54:57 +0000 misc/py-llama-cpp-python: fix build on powerpc64* cc: error: unknown argument: '-mpowerpc64' --- ...h-vendor_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/misc/py-llama-cpp-python/files/patch-vendor_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt b/misc/py-llama-cpp-python/files/patch-vendor_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt new file mode 100644 index 000000000000..e39877694888 --- /dev/null +++ b/misc/py-llama-cpp-python/files/patch-vendor_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt @@ -0,0 +1,18 @@ +--- vendor/llama.cpp/ggml/src/ggml-cpu/CMakeLists.txt.orig 2025-12-30 12:29:09 UTC ++++ vendor/llama.cpp/ggml/src/ggml-cpu/CMakeLists.txt +@@ -387,15 +387,6 @@ function(ggml_add_cpu_backend_variant_impl tag_name) + string(REGEX MATCHALL "POWER *([0-9]+)" MATCHED_STRING "${POWER10_M_UPPER}") + string(REGEX REPLACE "POWER *([0-9]+)" "\\1" EXTRACTED_NUMBER "${MATCHED_STRING}") + +- if (EXTRACTED_NUMBER GREATER_EQUAL 10) +- list(APPEND ARCH_FLAGS -mcpu=power10 -mpowerpc64) +- elseif (EXTRACTED_NUMBER EQUAL 9) +- list(APPEND ARCH_FLAGS -mcpu=power9 -mpowerpc64) +- elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le") +- list(APPEND ARCH_FLAGS -mcpu=powerpc64le -mtune=native) +- else() +- list(APPEND ARCH_FLAGS -mcpu=native -mtune=native -mpowerpc64) +- endif() + elseif(GGML_CPU_ALL_VARIANTS) + # Begin with the lowest baseline + set(ARCH_DEFINITIONS "")home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6953e7cc.4752a.20633ecc>
