From nobody Sun May 07 16:12:56 2023 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 4QDqG10xHCz498Y2; Sun, 7 May 2023 16:12:57 +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 4QDqG10JyZz3lLS; Sun, 7 May 2023 16:12:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683475977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=himug3fJ8UI5ac8OCGzyv+2sBoBFFv1w6V9oBHVVxIc=; b=yV1xIbbSZOFXqS7mA9TY7qon+bOZ4+5nYiV6nmIAw0UTAuKEmeOvzdATrqdknk/wtLwDkZ eBGhjQMet1omvosHTRAhQ8ztLH/QSHW8qMB9S3VaR2x6u5K0aV6ugSStK93X9dcqJs4D33 sgbqnFeIA68xKxJKbTC6T2UBQD63caY3JhtTNt/bEXa8OYbO5STtChY354UJsfDmggLXNw YESLHm61HIevPNlzqTN7o+EyaEP/DIbVzy0ZZHqy+qdUhCBCMjlBBluNHMv0voxRYbRTJo OzZjj+5M1zKGjSQsmvx3EFGeVVXC0gXB7WJ0dqsJwhHtejuLBY5hHReFtYNQgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683475977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=himug3fJ8UI5ac8OCGzyv+2sBoBFFv1w6V9oBHVVxIc=; b=oamT5D+jb3OMnGUAB9sHj9uXsapDA+ekN8cAi2+oqdvu81bHhLzKi0PDuWEnN+cNY5LtQr xkSztU00iuHyfszbCx/hT8yHscQPN05TrLHRHJAV7W+Vb+QQzm3OnCxexM1jQ7Ok7fh2Sk BEJhrcw3+RAt+tZqulavHBv4ZGMFQyG571UK+06H/7JRJ1VuWAKMTGcbnP/BxZ4liiL/pn FnzmKoHn8ImStg14r42hzSQgwcdIMI4Qf2nNoSZR+R32MXmrNHT/QeWsIfWUT2/NDv4T/d YhkC3kcMFNlbjIA0fflLrSSQ/JvdiaU4Lx8BMW8lJv+SUq/KvMg4OdR2DxLtfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683475977; a=rsa-sha256; cv=none; b=ffHb2bvkx1SUROo42pteMiKf32ReFYe0FZBf1p73JONcrjcVxNVzSpE9KftOnYng6hZ3rW 7cY0BjFQboPSWuHJsfIqdviVPs0+wcxbxyBDMSREny5W8bJukx7XNRrSFspeDy8sh8g25S MPbfRi9Gf1CwnCL2qp62fJKCk7e/if4uvXgqYCFZl77dnzEt0CfeGrLHzlXGpTMsTN17Pb 7g75GHwEpBvR0VxgSghrOjy1bTr4vstIdi6BqE2Dsg/au7GMNhpoisvy52EnheojiVBRsu eugVhHbX5Df05YnjQ4OsTLeDUnY1SUG3KTBtp/RGLqK4ZIlLef8wffovCEGzQw== 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 4QDqG06B4JzPvV; Sun, 7 May 2023 16:12:56 +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 347GCued039802; Sun, 7 May 2023 16:12:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 347GCu4N039801; Sun, 7 May 2023 16:12:56 GMT (envelope-from git) Date: Sun, 7 May 2023 16:12:56 GMT Message-Id: <202305071612.347GCu4N039801@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 7d44e70bf6a7 - main - databases/tiledb: Fix build on i386 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d44e70bf6a7996f92b8b8deb92280f8b580612f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7d44e70bf6a7996f92b8b8deb92280f8b580612f commit 7d44e70bf6a7996f92b8b8deb92280f8b580612f Author: Po-Chuan Hsieh AuthorDate: 2023-05-07 16:03:08 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-05-07 16:03:08 +0000 databases/tiledb: Fix build on i386 /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1721:18: error: non-constant-expression cannot be narrowed from type 'unsigned long long' to 'std::basic_string_view::size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] return {min, size}; ^~~~ /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1721:18: note: insert an explicit cast to silence this issue return {min, size}; ^~~~ static_cast( ) /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1725:38: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'std::basic_string_view::size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] return {static_cast(min), size}; ^~~~ /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1725:38: note: insert an explicit cast to silence this issue return {static_cast(min), size}; ^~~~ static_cast( ) /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1794:18: error: non-constant-expression cannot be narrowed from type 'unsigned long long' to 'std::basic_string_view::size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] return {max, size}; ^~~~ /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1794:18: note: insert an explicit cast to silence this issue return {max, size}; ^~~~ static_cast( ) /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1798:38: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'std::basic_string_view::size_type' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] return {static_cast(max), size}; ^~~~ /wrkdirs/usr/ports/databases/tiledb/work/TileDB-2.15.2/tiledb/sm/fragment/fragment_metadata.cc:1798:38: note: insert an explicit cast to silence this issue return {static_cast(max), size}; ^~~~ static_cast( ) 4 errors generated. Reference: https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pdf5b273c8e36_s83d5725005/logs/tiledb-2.15.2.log --- .../patch-tiledb-sm-fragment-fragment_metadata.cc | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/databases/tiledb/files/patch-tiledb-sm-fragment-fragment_metadata.cc b/databases/tiledb/files/patch-tiledb-sm-fragment-fragment_metadata.cc new file mode 100644 index 000000000000..390321055ebe --- /dev/null +++ b/databases/tiledb/files/patch-tiledb-sm-fragment-fragment_metadata.cc @@ -0,0 +1,30 @@ +--- tiledb/sm/fragment/fragment_metadata.cc.orig 2023-04-26 01:28:54 UTC ++++ tiledb/sm/fragment/fragment_metadata.cc +@@ -1718,11 +1718,11 @@ std::string_view FragmentMetadata::get_tile_min_ascell_size(name); + void* min = &tile_min_buffer_[idx][tile_idx * size]; +- return {static_cast(min), size}; ++ return {static_cast(min), (std::size_t) size}; + } + } + +@@ -1791,11 +1791,11 @@ std::string_view FragmentMetadata::get_tile_max_ascell_size(name); + void* max = &tile_max_buffer_[idx][tile_idx * size]; +- return {static_cast(max), size}; ++ return {static_cast(max), (std::size_t) size}; + } + } +