From owner-dev-commits-ports-main@freebsd.org Tue Jun 15 08:42:15 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1ACCC643A08; Tue, 15 Jun 2021 08:42:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G41yt72f6z4qD6; Tue, 15 Jun 2021 08:42:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CED0B25138; Tue, 15 Jun 2021 08:42:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15F8gEGg064588; Tue, 15 Jun 2021 08:42:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15F8gEde064587; Tue, 15 Jun 2021 08:42:14 GMT (envelope-from git) Date: Tue, 15 Jun 2021 08:42:14 GMT Message-Id: <202106150842.15F8gEde064587@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: dd5b5fe1a47f - main - devel/simdjson: fix build on powerpc64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dd5b5fe1a47fe18a4a753711435750fdae1ce353 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2021 08:42:15 -0000 The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd5b5fe1a47fe18a4a753711435750fdae1ce353 commit dd5b5fe1a47fe18a4a753711435750fdae1ce353 Author: Piotr Kubaj AuthorDate: 2021-06-15 08:41:07 +0000 Commit: Piotr Kubaj CommitDate: 2021-06-15 08:41:07 +0000 devel/simdjson: fix build on powerpc64 FreeBSD uses sys/endian.h header instead of byteswap.h and bswap64() instead of bswap_64(). -mpower8-vector is necessary because the port uses new SIMD introduced in POWER8. /wrkdirs/usr/ports/devel/simdjson/work/simdjson-0.9.5/include/simdjson/ppc64/numberparsing.h:4:10: fatal error: 'byteswap.h' file not found --- devel/simdjson/Makefile | 1 + .../patch-include_simdjson_ppc64_numberparsing.h | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/devel/simdjson/Makefile b/devel/simdjson/Makefile index 269d92484b4b..d2b048bf386e 100644 --- a/devel/simdjson/Makefile +++ b/devel/simdjson/Makefile @@ -10,6 +10,7 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= does not build (error: unknown type name '__uint128_t') +CXXFLAGS_powerpc64= -mpower8-vector USES= cmake compiler:c++17-lang USE_GITHUB= yes diff --git a/devel/simdjson/files/patch-include_simdjson_ppc64_numberparsing.h b/devel/simdjson/files/patch-include_simdjson_ppc64_numberparsing.h new file mode 100644 index 000000000000..225292a389e9 --- /dev/null +++ b/devel/simdjson/files/patch-include_simdjson_ppc64_numberparsing.h @@ -0,0 +1,20 @@ +--- include/simdjson/ppc64/numberparsing.h.orig 2021-06-13 11:45:59 UTC ++++ include/simdjson/ppc64/numberparsing.h +@@ -1,7 +1,7 @@ + #ifndef SIMDJSON_PPC64_NUMBERPARSING_H + #define SIMDJSON_PPC64_NUMBERPARSING_H + +-#include ++#include + + namespace simdjson { + namespace SIMDJSON_IMPLEMENTATION { +@@ -14,7 +14,7 @@ parse_eight_digits_unrolled(const uint8_t *chars) { + uint64_t val; + std::memcpy(&val, chars, sizeof(uint64_t)); + #ifdef __BIG_ENDIAN__ +- val = bswap_64(val); ++ val = bswap64(val); + #endif + val = (val & 0x0F0F0F0F0F0F0F0F) * 2561 >> 8; + val = (val & 0x00FF00FF00FF00FF) * 6553601 >> 16;