From b33c627183c00a7c7ea599d54c066109ee7c09c5 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Sat, 27 Aug 2022 11:16:27 +0200 Subject: [PATCH] devel/fccf: fix build on non-x86 immintrin.h is only used on amd64 and i386. In file included from /wrkdirs/usr/ports/devel/fccf/work/fccf-0.6.0/source/sse2_strstr.cpp:5: In file included from /usr/lib/clang/13.0.0/include/immintrin.h:17: /usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'? __builtin_ia32_emms(); ^ --- devel/fccf/files/patch-source_searcher.hpp | 12 ++++++++++++ devel/fccf/files/patch-source_sse2__strstr.cpp | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 devel/fccf/files/patch-source_searcher.hpp create mode 100644 devel/fccf/files/patch-source_sse2__strstr.cpp diff --git a/devel/fccf/files/patch-source_searcher.hpp b/devel/fccf/files/patch-source_searcher.hpp new file mode 100644 index 000000000000..dda6fa68bcdb --- /dev/null +++ b/devel/fccf/files/patch-source_searcher.hpp @@ -0,0 +1,12 @@ +--- source/searcher.hpp.orig 2022-08-27 09:05:01 UTC ++++ source/searcher.hpp +@@ -18,7 +18,9 @@ + #define FMT_HEADER_ONLY 1 + #include + #include ++#if defined(__x86_64__) || defined (__i386__) + #include ++#endif + #include + #include + diff --git a/devel/fccf/files/patch-source_sse2__strstr.cpp b/devel/fccf/files/patch-source_sse2__strstr.cpp new file mode 100644 index 000000000000..d16b6f745b5d --- /dev/null +++ b/devel/fccf/files/patch-source_sse2__strstr.cpp @@ -0,0 +1,12 @@ +--- source/sse2_strstr.cpp.orig 2022-08-27 09:05:40 UTC ++++ source/sse2_strstr.cpp +@@ -2,7 +2,9 @@ + #include + + #include ++#if defined(__x86_64__) || defined (__i386__) + #include ++#endif + #include + + #define FORCE_INLINE inline __attribute__((always_inline))