Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2021 01:21:22 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r567882 - head/biology/py-scikit-bio
Message-ID:  <202103090121.1291LMPA050170@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Mar  9 01:21:22 2021
New Revision: 567882
URL: https://svnweb.freebsd.org/changeset/ports/567882

Log:
  biology/py-scikit-bio: fix build on powerpc64le
  
  Use GCC:
  In file included from skbio/alignment/_ssw_wrapper.c:626:
  In file included from skbio/alignment/_lib/ssw.h:17:
  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/py-scikit-bio/Makefile

Modified: head/biology/py-scikit-bio/Makefile
==============================================================================
--- head/biology/py-scikit-bio/Makefile	Tue Mar  9 00:59:28 2021	(r567881)
+++ head/biology/py-scikit-bio/Makefile	Tue Mar  9 01:21:22 2021	(r567882)
@@ -28,11 +28,14 @@ RUN_DEPENDS=	${PYNUMPY} \
 USES=		python:3.7+
 USE_PYTHON=	autoplist distutils
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if ${ARCH} == i386
 CFLAGS+=	-msse2 # workaround for https://github.com/biocore/scikit-bio/issues/1727
 CXXFLAGS+=	-msse2
+.elif ${ARCH} == powerpc64le
+CFLAGS+=	-DNO_WARN_X86_INTRINSICS
+USE_GCC=	yes
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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