From nobody Sun Feb 12 17:56:11 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 4PFFWv4rV9z3qS58; Sun, 12 Feb 2023 17:56:11 +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 4PFFWv4L37z3lRQ; Sun, 12 Feb 2023 17:56:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676224571; 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=t22m4ZTXt1DQB2rk39u3SDVXbMFWDm+2NqytnDTLYYQ=; b=RQJ1NMQ3BNAtRgK0hTQIn4ded9cE4UBxh72J3MEGTmS6PZ3FUKbztfJ+rv8GwZ1R0SGBaK 0n9Cb5T51e/jF5zNtB5YqBvNi/CbryCzI0CDSI0pnXWlN2OWQr7n8hap669p5gKCp6Sd50 Pbfwya4btieWi7t4fnTQ1svnchRrZErJoOwWPqUwtoyvc61Iw8vU3W8LMtAsD0sEQFBTUJ LS+i1UWF9erCtFh1anaQ35x6QdfwkiU/Gdj4POplfl7Oot9jR/F9T51B9dRXSX/L0T30k2 5e1iWZqjxcuWO9UVy4Zf6PPupNEH770wEMQbloNUZrkumEqfyQd/6VQtAMYwOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676224571; 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=t22m4ZTXt1DQB2rk39u3SDVXbMFWDm+2NqytnDTLYYQ=; b=QrFk1mH+lH9alaXzj1D7V4u198f/U71sLoHHjtd5z1z0YJakWHlAGMVXkGq1aFwvBKUvqo QAjmEswBx0iXcXftQfjQqyYZdU95ECNLFRwcDcpvUcNMupBv2THEcLZNd9FJbbdj6cUc1x uNLMWSvOtlFj00V4D31pSQ51BJQCvaDevHXm5sjje1VnihYpkCsnGPerlU1QZbZ3Is8GBH rqWYWDDyU9SSfPB8kv0lkYy9ZNOVrc/XrSkt7RYtpuKiTER+ZMoGHw+MztOLnHJXCdEZ1g ck5PjAx81TTZ4q47J6QZ9QLQ54KYbwtcH9MPOxIfBFvdyTO1BZvzZzMvAthSlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676224571; a=rsa-sha256; cv=none; b=nQeB5y75WU+KZMaWXWzhYQHifahdm2Emcstx15ZxqRgQRaKgA3yslrVUcbmcoYKfUgjF4Q Pjp3AxFgGAKk/rPvoddo5k7zzPCgjnTZJSTHONH1mitTam9ZuqQym8GCLFxGAXOiRuijDn TroPNUuV317+nLCECNwMCKI9tAcMdZGmsiA5VjesKXzsIU8QM3b/Ws+cD34AVynHpjt0pe qEJSRbaHv30g+4Aq2J8UbipVtYsv5+456NPimYxx3j7PVzfOgG89nPIgQyB9z0mHbLQ8OJ VbcMnmGkuCTug86rj0bSAU0EF+opaukIqBFTbEZ/imwn+g/VZUWMi+LsBM/zHA== 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 4PFFWv3PjtznbP; Sun, 12 Feb 2023 17:56:11 +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 31CHuBYk025004; Sun, 12 Feb 2023 17:56:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CHuB2f025002; Sun, 12 Feb 2023 17:56:11 GMT (envelope-from git) Date: Sun, 12 Feb 2023 17:56:11 GMT Message-Id: <202302121756.31CHuB2f025002@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: 32cf9412c58d - main - graphics/bgfx: fix build on powerpc64* and probably riscv64 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: 32cf9412c58d339066e091ad088126e1236b52dd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=32cf9412c58d339066e091ad088126e1236b52dd commit 32cf9412c58d339066e091ad088126e1236b52dd Author: Piotr Kubaj AuthorDate: 2023-02-07 16:15:30 +0000 Commit: Piotr Kubaj CommitDate: 2023-02-12 17:55:53 +0000 graphics/bgfx: fix build on powerpc64* and probably riscv64 /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:173:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xcccccccc) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:174:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xcdcdcdcd) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:175:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xdddddddd) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:176:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xffffffff) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h b/graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h new file mode 100644 index 000000000000..b017509dac6f --- /dev/null +++ b/graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h @@ -0,0 +1,11 @@ +--- bimg/3rdparty/nvtt/nvcore/debug.h.orig 2023-02-07 16:06:32 UTC ++++ bimg/3rdparty/nvtt/nvcore/debug.h +@@ -165,7 +165,7 @@ namespace nv + namespace nv + { + inline bool isValidPtr(const void * ptr) { +- #if NV_CPU_X86_64 || NV_CPU_AARCH64 ++ #if defined(__LP64__) + if (ptr == NULL) return true; + if (reinterpret_cast(ptr) < 0x10000ULL) return false; + if (reinterpret_cast(ptr) >= 0x000007FFFFFEFFFFULL) return false;