svn commit: r566960 - head/biology/bwa
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Mar 2 15:01:56 UTC 2021
Author: pkubaj
Date: Tue Mar 2 15:01:55 2021
New Revision: 566960
URL: https://svnweb.freebsd.org/changeset/ports/566960
Log:
biology/bwa: fix build on powerpc64le
Use GCC's SSE->Altivec translation:
In file included from ksw.c:29:
In file included from /usr/lib/clang/11.0.1/include/emmintrin.h:13:
In file included from /usr/lib/clang/11.0.1/include/xmmintrin.h:13:
/usr/lib/clang/11.0.1/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
Modified:
head/biology/bwa/Makefile
Modified: head/biology/bwa/Makefile
==============================================================================
--- head/biology/bwa/Makefile Tue Mar 2 14:46:41 2021 (r566959)
+++ head/biology/bwa/Makefile Tue Mar 2 15:01:55 2021 (r566960)
@@ -31,11 +31,14 @@ GH_ACCOUNT= lh3
PLIST_FILES= bin/bwa bin/qualfa2fq.pl bin/xa2multi.pl man/man1/bwa.1.gz
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${ARCH} == amd64 || ${ARCH} == i386
# Avoid #error in emmintrin.h
CFLAGS+= -msse2
+.elif ${ARCH} == powerpc64le
+CFLAGS+= -DNO_WARN_X86_INTRINSICS
+USES+= compiler:gcc-c++11-lib
.endif
do-install:
@@ -43,4 +46,4 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list