From dad14d14f46926f52f4c761509709b32146f8bd5 Mon Sep 17 00:00:00 2001 From: zhangfeilong Date: Tue, 14 Oct 2025 16:53:23 +0800 Subject: [PATCH] fix sw64 build (cherry picked from commit 09295549f5a84a2d5ded52831bfa3df854927530) --- ...config.guess-and-config.sub-for-sw64.patch | 27 +++++++++++++++++++ memkind.spec | 6 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Update-config.guess-and-config.sub-for-sw64.patch diff --git a/Update-config.guess-and-config.sub-for-sw64.patch b/Update-config.guess-and-config.sub-for-sw64.patch new file mode 100644 index 0000000..535a85a --- /dev/null +++ b/Update-config.guess-and-config.sub-for-sw64.patch @@ -0,0 +1,27 @@ +From: zhangfeilong +Date: Wed, 24 Sep 2025 16:10:31 +0800 +Subject: [PATCH] Add sw64 support + +--- +--- a/jemalloc/build-aux/config.guess 2021-10-04 18:58:43.000000000 +0800 ++++ b/jemalloc/build-aux/config.guess 2025-09-24 16:16:09.011182745 +0800 +@@ -1105,6 +1105,9 @@ + tile*:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; ++ sw_64*:Linux:*:*) ++ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" ++ exit ;; + vax:Linux:*:*) + echo "$UNAME_MACHINE"-dec-linux-"$LIBC" + exit ;; +--- a/jemalloc/build-aux/config.sub 2021-10-04 18:58:43.000000000 +0800 ++++ b/jemalloc/build-aux/config.sub 2025-09-24 16:18:15.094412764 +0800 +@@ -1241,6 +1241,7 @@ + | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ + | spu \ ++ | sw_64 \ + | tahoe \ + | thumbv7* \ + | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ diff --git a/memkind.spec b/memkind.spec index 9306cf3..72be4f5 100644 --- a/memkind.spec +++ b/memkind.spec @@ -1,12 +1,13 @@ Name: memkind Summary: Extensible Heap Manager for User Version: 1.14.0 -Release: 7 +Release: 8 License: BSD URL: http://memkind.github.io/memkind Source0: https://github.com/memkind/memkind/archive/v1.14.0/%{name}-%{version}.tar.gz Patch0001: 0001-support-multi-threading-build.patch Patch0003: 0003-memkind-add-sw64-support.patch +Patch0004: Update-config.guess-and-config.sub-for-sw64.patch BuildRequires: automake libtool numactl-devel systemd gcc gcc-c++ hwloc-devel ExclusiveArch: x86_64 aarch64 riscv64 loongarch64 sw_64 @@ -83,6 +84,9 @@ popd %{_mandir}/man7/* %changelog +* Tue Oct 14 2025 zhangfeilong - 1.14.0-8 +- fix sw64 build + * Thu Feb 20 2025 JiangShui Yang - 1.14.0-7 - Revert "Support initializing HBW nodes from memory_locality" patch -- Gitee