From nobody Sun Nov 7 22:30:52 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9CCF118472FC; Sun, 7 Nov 2021 22:30:52 +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 4HnTV4457rz3q2k; Sun, 7 Nov 2021 22:30:52 +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 6D6CF263D2; Sun, 7 Nov 2021 22:30:52 +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 1A7MUq2T015665; Sun, 7 Nov 2021 22:30:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A7MUqfY015664; Sun, 7 Nov 2021 22:30:52 GMT (envelope-from git) Date: Sun, 7 Nov 2021 22:30:52 GMT Message-Id: <202111072230.1A7MUqfY015664@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: 90a93d9fab28 - main - databases/redisdesktopmanager: fix build on powerpc64 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org 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: 90a93d9fab28021a152176479ee70400142a5de2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=90a93d9fab28021a152176479ee70400142a5de2 commit 90a93d9fab28021a152176479ee70400142a5de2 Author: Piotr Kubaj AuthorDate: 2021-11-07 22:26:12 +0000 Commit: Piotr Kubaj CommitDate: 2021-11-07 22:26:12 +0000 databases/redisdesktopmanager: fix build on powerpc64 vec_vbpermq requires -mpower8-vector. bswap64 needs to be used instead of bswap_64 on FreeBSD. In file included from app/qmlutils.cpp:16: ../3rdparty/simdjson/singleheader/simdjson.h:14999:44: error: use of undeclared identifier 'vec_vbpermq' result = ((__vector unsigned long long)vec_vbpermq((__m128i)this->value, ^ ../3rdparty/simdjson/singleheader/simdjson.h:15022:22: error: use of undeclared identifier 'vec_vsx_ld' return (__m128i)(vec_vsx_ld(0, reinterpret_cast(values))); ^ ../3rdparty/simdjson/singleheader/simdjson.h:15108:9: error: use of undeclared identifier 'vec_vsx_ld' vec_vsx_ld(0, reinterpret_cast(pshufb_combine_table + pop1 * 8)); ^ ../3rdparty/simdjson/singleheader/simdjson.h:15110:5: error: use of undeclared identifier 'vec_vsx_st'; did you mean 'vec_xst'? vec_vsx_st(answer, 0, reinterpret_cast<__m128i *>(output)); ^~~~~~~~~~ vec_xst /usr/lib/clang/11.0.1/include/altivec.h:16610:33: note: 'vec_xst' declared here static inline __ATTRS_o_ai void vec_xst(vector float __vec, ^ In file included from app/qmlutils.cpp:16: ../3rdparty/simdjson/singleheader/simdjson.h:15110:27: error: cannot initialize a parameter of type 'float *' with an rvalue of type 'simdjson::ppc64::(anonymous namespace)::simd::__m128i *' vec_vsx_st(answer, 0, reinterpret_cast<__m128i *>(output)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/clang/11.0.1/include/altivec.h:16612:48: note: passing argument to parameter '__ptr' here float *__ptr) { ^ In file included from app/qmlutils.cpp:16: ../3rdparty/simdjson/singleheader/simdjson.h:15768:9: error: use of undeclared identifier 'bswap_64' val = bswap_64(val); ^ ../3rdparty/simdjson/singleheader/simdjson.h:15039:5: error: use of undeclared identifier 'vec_vsx_st' vec_vsx_st(this->value, 0, reinterpret_cast<__m128i *>(dst)); ^ ../3rdparty/simdjson/singleheader/simdjson.h:15586:6: note: in instantiation of member function 'simdjson::ppc64::(anonymous namespace)::simd::base8_numeric::store' requested here v0.store(dst); ^ --- databases/redisdesktopmanager/Makefile | 1 + .../files/patch-3rdparty_simdjson_singleheader_simdjson.h | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/databases/redisdesktopmanager/Makefile b/databases/redisdesktopmanager/Makefile index b4933ac7fd9c..66a733518f8c 100644 --- a/databases/redisdesktopmanager/Makefile +++ b/databases/redisdesktopmanager/Makefile @@ -41,6 +41,7 @@ USE_QT= charts concurrent core declarative gui network \ QMAKE_ARGS+= SYSTEM_LZ4=1 VERSION=${PORTVERSION} BINARY_ALIAS= python3-config=${PYTHON_CMD}-config \ python3=${PYTHON_CMD} +CXXFLAGS_powerpc64= -mpower8-vector do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/share/pixmaps diff --git a/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h b/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h index 5901c843f00f..dd6809c45a99 100644 --- a/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h +++ b/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h @@ -1,6 +1,6 @@ ---- 3rdparty/simdjson/singleheader/simdjson.h.orig 2021-09-30 06:08:20 UTC +--- 3rdparty/simdjson/singleheader/simdjson.h.orig 2021-09-07 18:36:17 UTC +++ 3rdparty/simdjson/singleheader/simdjson.h -@@ -15748,7 +15748,11 @@ simdjson_unused simdjson_warn_unused simdjson_really_i +@@ -17189,7 +17189,11 @@ simdjson_unused simdjson_warn_unused simdjson_really_i #ifndef SIMDJSON_PPC64_NUMBERPARSING_H #define SIMDJSON_PPC64_NUMBERPARSING_H @@ -12,3 +12,12 @@ namespace simdjson { namespace ppc64 { +@@ -17202,7 +17206,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;