From nobody Wed Oct 30 18:35:49 2024 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 4Xdwmj6hn8z5bppn; Wed, 30 Oct 2024 18:35:49 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xdwmj6Cpkz4S8k; Wed, 30 Oct 2024 18:35:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730313349; 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=wWabe6EzW3T/5TpRWRYZq7aY8Dm3+/IZzVp3805It+M=; b=sGHuEN2vU+D+/cJ7Wb9E0spljBn6VsfnzQl+N3NESH8jfAB17hNP9vkXbzkIuXrM5oXL7X JU2biyOUj77G0+IXt4OvU64xPBjoQpOC/avoDEvyuHkggkU+7O79tvWmKrgfanRf7gXi01 00DUozHWSYqOUzmS7PzqWQja/FPda1467xgtmfSEzuX/Uvt81ET5Dc357qb9pMpohgfwSy wbJWxpynV0v69nb3L+ICtvRZwU4WoxHz8xliipIbKFTuXEQFAOUh0tbI0bU/P4uaI7sCjZ lhQhz61Lx3JqDhhud06OM5/5bC0vhmeunPjm+cln7B/NhqI6wqjUccTsPsm9oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730313349; 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=wWabe6EzW3T/5TpRWRYZq7aY8Dm3+/IZzVp3805It+M=; b=sNjXE8GtspJUk73NbkjOyuphbAjdGr5FbwkjOldDhOO541X6jQD34wR64uX5SAI8SPWnd+ tsEDPyS/FvPubD+RkCRBBbBXDtvKH70F1QUTNENOo2Ra0lLqjNOTncfp9Mq/0Xoy2DJxMF KiBz4dOeboaM2cDCxyeibCMZQvuCW3oregsvk/HPBzyK8Zw5jCcnFuvNPamttWjlkN7IPg O/ABdgR5ZTkheymy2oPDzSL116ybEFnLpp6umLDbMAj+RCRnFx8O8KU22ERKbYq8K0S/AZ E/97fIumxe06kBtzYujwXHWsAOLqQwDxW7ZfVgH83IqEuXeJc0nroTe4VGKa5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730313349; a=rsa-sha256; cv=none; b=e7OiRGLLGmyu7P+ndN1cNSxpJ+8eeRH18B+4HEIyztQL9CzQ5POB6G8b/MEKMceXPXPmS6 7J+sOLt3hbWCGK+2esru52Gi1VEexUW9xLcR2xrEGAfsn7uPEpqsmB3OFxtyiGiBoQrdkr l65oxHWNV/5kJvGu9kMTnlnvrsXRZko7RMCBOx6VCiuXfFyy2ec1sC6oI0ZAQ0451rvZ4f W+G8lFSGN8782BogIUZ5iB4/0u4shzxIXVj0sz51czKCFKL6ZqBKqfJOIglksXC+2fuC3r diFR95qRVqtHthYyHYxI6eLEcKsQYGDzdZYLXqYTf/ydatefs7vOqhmHMeJmvw== 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 4Xdwmj5XQgz1HVm; Wed, 30 Oct 2024 18:35:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49UIZnXD072304; Wed, 30 Oct 2024 18:35:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49UIZn3Y072301; Wed, 30 Oct 2024 18:35:49 GMT (envelope-from git) Date: Wed, 30 Oct 2024 18:35:49 GMT Message-Id: <202410301835.49UIZn3Y072301@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Dimitry Andric Subject: git: c6a101e55094 - 2024Q4 - devel/bazel5: fix build with clang 19 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q4 X-Git-Reftype: branch X-Git-Commit: c6a101e55094536ebf9519670ce5b9cbb8522bea Auto-Submitted: auto-generated The branch 2024Q4 has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=c6a101e55094536ebf9519670ce5b9cbb8522bea commit c6a101e55094536ebf9519670ce5b9cbb8522bea Author: Dimitry Andric AuthorDate: 2024-10-17 18:56:45 +0000 Commit: Dimitry Andric CommitDate: 2024-10-30 18:35:08 +0000 devel/bazel5: fix build with clang 19 Clang 19 has become more strict about C23 extensions, which results in errors building devel/bazel5: external/upb/upb/upb.c:215:25: error: defining a type within '__builtin_offsetof' is a C23 extension [-Werror,-Wc23-extensions] 215 | n = UPB_ALIGN_DOWN(n, UPB_ALIGN_OF(upb_arena)); | ^~~~~~~~~~~~~~~~~~~~~~~ external/upb/upb/port_def.inc:94:38: note: expanded from macro 'UPB_ALIGN_OF' 94 | #define UPB_ALIGN_OF(type) offsetof (struct { char c; type member; }, member) | ^~~~~~ /usr/include/stddef.h:64:42: note: expanded from macro 'offsetof' 64 | #define offsetof(type, field) __offsetof(type, field) | ^~~~ /usr/include/sys/cdefs.h:324:53: note: expanded from macro '__offsetof' 324 | #define __offsetof(type, field) __builtin_offsetof(type, field) | ^~~~ external/upb/upb/port_def.inc:92:48: note: expanded from macro 'UPB_ALIGN_DOWN' 92 | #define UPB_ALIGN_DOWN(size, align) ((size) / (align) * (align)) | ^~~~~ To work around this, amend extra-patch-upb_bazel_build__defs.bzl to also add -Wno-c23-extensions. Alternatively, the -Werror option could be taken out. PR: 282166 Approved by: vishwin (maintainer) MFH: 2024Q4 (cherry picked from commit a34c378a051d3df7767855bb37fc359924f4dcc1) --- devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl b/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl index f31babd394f2..d48fb6aeaf44 100644 --- a/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl +++ b/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl @@ -8,11 +8,12 @@ # copybara:strip_end ], }) -@@ -49,6 +50,7 @@ +@@ -49,6 +50,8 @@ "-Werror=pedantic", "-Wall", "-Wstrict-prototypes", + "-Wno-gnu-offsetof-extensions", ++ "-Wno-c23-extensions", # GCC (at least) emits spurious warnings for this that cannot be fixed # without introducing redundant initialization (with runtime cost): # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635