Date: Sun, 15 Nov 2020 14:12: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: r555221 - head/astro/opencpn Message-ID: <202011151412.0AFECMHu063250@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011151412.0AFECMHu063250>