Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2026 19:17:12 +0000
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4a0e97e83325 - main - biology/iolib: fix build on armv7
Message-ID:  <69c2e338.4263c.5272c61b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a0e97e833259103de8ab29cc2786f71c5459b33

commit 4a0e97e833259103de8ab29cc2786f71c5459b33
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-03-24 19:08:01 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-03-24 19:12:38 +0000

    biology/iolib: fix build on armv7
    
    This port tries to use NEON if __ARM_NEON is defined.  Unfortunately it
    now requires a bunch of intrinsics available on AArch64 only, breaking
    the armv7 build.  Fix the build by disabling NEON on armv7.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2026Q1
---
 .../files/patch-htscodecs_htscodecs_rANS__static32x16pr.h     | 11 +++++++++++
 .../patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c     | 11 +++++++++++
 .../files/patch-htscodecs_htscodecs_rANS__static4x16pr.c      | 11 +++++++++++
 3 files changed, 33 insertions(+)

diff --git a/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static32x16pr.h b/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static32x16pr.h
new file mode 100644
index 000000000000..9794fb79ae06
--- /dev/null
+++ b/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static32x16pr.h
@@ -0,0 +1,11 @@
+--- htscodecs/htscodecs/rANS_static32x16pr.h.orig	2026-03-24 19:00:02 UTC
++++ htscodecs/htscodecs/rANS_static32x16pr.h
+@@ -146,7 +146,7 @@ unsigned char *rans_uncompress_O1_32x16_avx512(unsigne
+ 
+ //----------------------------------------------------------------------
+ // Arm Neon implementation
+-#ifdef __ARM_NEON
++#if defined(__ARM_NEON) && defined(__aarch64__)
+ unsigned char *rans_compress_O0_32x16_neon(unsigned char *in,
+                                            unsigned int in_size,
+                                            unsigned char *out,
diff --git a/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c b/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c
new file mode 100644
index 000000000000..ad7cca53620c
--- /dev/null
+++ b/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c
@@ -0,0 +1,11 @@
+--- htscodecs/htscodecs/rANS_static32x16pr_neon.c.orig	2026-03-24 19:00:35 UTC
++++ htscodecs/htscodecs/rANS_static32x16pr_neon.c
+@@ -32,7 +32,7 @@
+  */
+ 
+ #include "config.h"
+-#ifdef __ARM_NEON
++#if defined(__ARM_NEON) && defined(__aarch64__)
+ #include <arm_neon.h>
+ 
+ #include <limits.h>
diff --git a/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c b/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c
new file mode 100644
index 000000000000..8cc3e85143ed
--- /dev/null
+++ b/biology/iolib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c
@@ -0,0 +1,11 @@
+--- htscodecs/htscodecs/rANS_static4x16pr.c.orig	2026-03-24 19:05:28 UTC
++++ htscodecs/htscodecs/rANS_static4x16pr.c
+@@ -1006,7 +1006,7 @@ unsigned char *(*rans_dec_func(int do_simd, int order)
+     }
+ }
+ 
+-#elif defined(__ARM_NEON)
++#elif defined(__ARM_NEON) && defined(__aarch64__)
+ 
+ #if defined(__linux__) || defined(__FreeBSD__)
+ #include <sys/auxv.h>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c2e338.4263c.5272c61b>