<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9c921e4504b3c6b9c357828e8c739789edaf27a7">https://github.com/macports/macports-ports/commit/9c921e4504b3c6b9c357828e8c739789edaf27a7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 9c921e4504b highway: disable SVE to avoid ICE
</span>9c921e4504b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9c921e4504b3c6b9c357828e8c739789edaf27a7
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Sep 23 08:32:23 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> highway: disable SVE to avoid ICE
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/70345
</span>---
devel/highway/Portfile | 2 ++
devel/highway/files/disable-sve.patch | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/highway/Portfile b/devel/highway/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c98d5a588ec..38332338c76 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/highway/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/highway/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,6 +19,8 @@ github.tarball_from releases
</span> checksums rmd160 91e88d0fcea6f882ef37c3c3c532600ec68c2ad8 \
sha256 58e9d5d41d6573ad15245ad76aec53a69499ca7480c092d899c4424812ed906f
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles disable-sve.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> cmake.out_of_source yes
configure.args-append \
-DBUILD_SHARED_LIBS=ON \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/highway/files/disable-sve.patch b/devel/highway/files/disable-sve.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b882b3c05c5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/highway/files/disable-sve.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/google/highway/issues/2317#issuecomment-2342469521
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index a8d4a13f..e0ffb33a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- hwy/detect_targets.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ hwy/detect_targets.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -223,8 +223,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // SVE[2] require recent clang or gcc versions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// SVE is not supported on Apple arm64 CPUs and also crashes the compiler:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// https://github.com/llvm/llvm-project/issues/97198
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (HWY_COMPILER_CLANG && HWY_COMPILER_CLANG < 1100) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- (HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1000)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1000) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (HWY_OS_APPLE && HWY_ARCH_ARM_A64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define HWY_BROKEN_SVE (HWY_SVE | HWY_SVE2 | HWY_SVE_256 | HWY_SVE2_128)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define HWY_BROKEN_SVE 0
</span></pre><pre style='margin:0'>
</pre>