svn commit: r555221 - head/astro/opencpn

Piotr Kubaj pkubaj at FreeBSD.org
Sun Nov 15 14:12:23 UTC 2020


Author: pkubaj
Date: Sun Nov 15 14:12:22 2020
New Revision: 555221
URL: https://svnweb.freebsd.org/changeset/ports/555221

Log:
  astro/opencpn: fix build on powerpc64 elfv2
  
  For some reason SSE support is misdetected on by clang:
  -- Probing for compiler -msse support -- OK
  -- Probing for compiler -msse2 support -- OK
  -- Probing for compiler -msse3 support -- OK
  -- Probing for compiler -mavx2 support -- OK
  
  Later:
  In file included from /wrkdirs/usr/ports/astro/opencpn/work/OpenCPN-5.2.0/libs/texcmp/squish/clusterfit.cpp:27:
  In file included from /wrkdirs/usr/ports/astro/opencpn/work/OpenCPN-5.2.0/libs/texcmp/squish/clusterfit.h:32:
  In file included from /wrkdirs/usr/ports/astro/opencpn/work/OpenCPN-5.2.0/libs/texcmp/squish/simd.h:34:
  In file included from /wrkdirs/usr/ports/astro/opencpn/work/OpenCPN-5.2.0/libs/texcmp/squish/simd_sse.h:29:
  In file included from /usr/lib/clang/11.0.0/include/xmmintrin.h:13:
  /usr/lib/clang/11.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
      __builtin_ia32_emms();
      ^

Modified:
  head/astro/opencpn/Makefile

Modified: head/astro/opencpn/Makefile
==============================================================================
--- head/astro/opencpn/Makefile	Sun Nov 15 14:07:14 2020	(r555220)
+++ head/astro/opencpn/Makefile	Sun Nov 15 14:12:22 2020	(r555221)
@@ -38,6 +38,12 @@ OPTIONS_DEFINE=	DOCS
 DOCS_CMAKE_ON=	-DOCPN_BUNDLE_DOCS:STRING="ON"
 DOCS_CMAKE_OFF=	-DOCPN_BUNDLE_DOCS:STRING="OFF"
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+CMAKE_ARGS+=	-DHAVE_MSSE=OFF -DHAVE_MSSE2=OFF -DHAVE_MSSE3=OFF -DHAVE_MAVX2=OFF -DHAVE_MFPU_NEON=OFF
+.endif
+
 .include <bsd.port.pre.mk>
 
 post-patch:


More information about the svn-ports-all mailing list