Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2024 16:06:18 GMT
From:      Ronald Klop <ronald@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 806a884dc732 - main - archivers/snappy-java: force disable NEON on armv7
Message-ID:  <202411261606.4AQG6IDP032633@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=806a884dc73261c24423f3a32d149e4776b4c546

commit 806a884dc73261c24423f3a32d149e4776b4c546
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2024-11-26 15:59:18 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2024-11-26 16:05:50 +0000

    archivers/snappy-java: force disable NEON on armv7
    
    Cross compilation might pick up NEON from the host aarch64 system
    in our package build cluster.
    This gave an error:
    In file included from target/snappy-1.1.10/snappy.cc:29:
    target/snappy-1.1.10/snappy-internal.h:107:10: error: use of undeclared identifier 'vqtbl1q_u8'; did you mean 'vtbl1_u8'?
      107 |   return vqtbl1q_u8(input, shuffle_mask);
          |          ^~~~~~~~~~
          |          vtbl1_u8
    
    PR:     282272
    Approved by:    Angelo Polo (maintainer) (via earlier comment in the PR)
---
 archivers/snappy-java/files/patch-Makefile.common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/archivers/snappy-java/files/patch-Makefile.common b/archivers/snappy-java/files/patch-Makefile.common
index fde6de71a02b..db8c35af028e 100644
--- a/archivers/snappy-java/files/patch-Makefile.common
+++ b/archivers/snappy-java/files/patch-Makefile.common
@@ -38,7 +38,7 @@
 +
 +FreeBSD-arm_CXX          := $(CROSS_PREFIX)g++
 +FreeBSD-arm_STRIP        := $(CROSS_PREFIX)strip
-+FreeBSD-arm_CXXFLAGS     := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
++FreeBSD-arm_CXXFLAGS     := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -DSNAPPY_HAVE_NEON=0
 +FreeBSD-arm_LINKFLAGS    := -shared -static-libgcc
 +FreeBSD-arm_LIBNAME      := libsnappyjava.so
 +FreeBSD-arm_SNAPPY_FLAGS :=



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