summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason W. Bacon <jwb@FreeBSD.org>2023-10-15 06:47:27 -0500
committerJason W. Bacon <jwb@FreeBSD.org>2023-10-15 06:49:05 -0500
commitf95880107ae1f12e660b08f24dacb3b88bf176bd (patch)
treedb0f35f48ec27d39797d3beea07af8cb2701c2b6
parentmath/armadillo: Update to 12.6.5 (diff)
biology/gcta: Add temporary hack for building on aarch64
Add USE_GCC to work around this issue with clang: /usr/ports/biology/gcta/work/gcta-1.94.1/submods/plink-ng/2.0/ \ plink2_base.h:1008:23: error: argument to '__builtin_neon_vshrq_n_v' \ must be a constant integer return R_CAST(VecW, _mm_srli_epi64(R_CAST(__m128i, vv), ct)); /usr/lib/clang/14.0.5/include/arm_neon.h:25260:24: note: expanded from \ macro 'vshrq_n_u64' __ret = (uint64x2_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 51);
-rw-r--r--biology/gcta/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/biology/gcta/Makefile b/biology/gcta/Makefile
index 5599f5c22fee..c9aef3210017 100644
--- a/biology/gcta/Makefile
+++ b/biology/gcta/Makefile
@@ -32,9 +32,20 @@ LDFLAGS+= -fopenmp
PLIST_FILES= bin/gcta64 bin/gcta
+.include <bsd.port.pre.mk>
+
+# Temporary hack for clang build errors:
+# /usr/ports/biology/gcta/work/gcta-1.94.1/submods/plink-ng/2.0/plink2_base.h:1008:23: error: argument to '__builtin_neon_vshrq_n_v' must be a constant integer
+# return R_CAST(VecW, _mm_srli_epi64(R_CAST(__m128i, vv), ct));
+# /usr/lib/clang/14.0.5/include/arm_neon.h:25260:24: note: expanded from macro 'vshrq_n_u64'
+# __ret = (uint64x2_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 51);
+.if ${ARCH} == aarch64
+USE_GCC= yes
+.endif
+
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gcta64 ${STAGEDIR}${PREFIX}/bin
${RLN} ${STAGEDIR}${PREFIX}/bin/gcta64 ${STAGEDIR}${PREFIX}/bin/gcta
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>