From nobody Wed Oct 30 18:34:48 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 4XdwlX62Glz5bpTg; Wed, 30 Oct 2024 18:34:48 +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 4XdwlX5Sfsz4S2T; Wed, 30 Oct 2024 18:34:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730313288; 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=2hlgX2R9jSU22Y/xNSqllkIoEryhE2SUrhouzmHZGq4=; b=sSMY5PvgTptxmv0qCnjoHcFOFHYOSQa1RyphXWWKvLfG/PNfDqqrjxXX4wYTkBDHMq18cl gtdgqFGPbRsxt61pTv7J8HdLifSMTjHKuXgwVgFcSX5mggWr61NdDirJLv4vnMY2sb0ktV Vw4HPSSZdAwxhAy6yuap/rvxeencOGbM+9j3b5jsGBvXISu5fvK7FCociLFXUGyjZoQCuC k8/BByiO2CFEANAAQ0gA3F4LcfIy0wfK0aO3pX25CZLWfSP0hwMzPf3lICctvBRmthZtz7 lsRyZXOo7n/kIZfSpITNfbT3tlH9D7aN4svArQoR3jHkUJ06Tno0RTsU3DwlGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730313288; 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=2hlgX2R9jSU22Y/xNSqllkIoEryhE2SUrhouzmHZGq4=; b=C2i70lsoUndqiTtQSacswzujjSAss4GSQn40fhQeWdz9FJuGgIxEOtz5/2XdbthU5FX1EE WyLxrbjZnxNIzIWjTEJpWNGgLKhggiA7Enk5JaQJF3Nkf248NcB8MGZTLJeuUNWiwcF1rs 7Vbrnw8PznVKINWgYmWJsxIGIj9vic5rWhk3+0OalLw6Vac49tLvk+Yq/PLxQLSQPTHF9a XgVzDiFe/qZUXPlV8pNGCDBiWjxKU1GvEq4Ja1ekKXs9i2RdzI2z+M0MhYrNYsYCJKcWkV bZZLCA7rc3j4VGD7t4ATBwICDfGjRvxWyQnJIto+QW4xKgIRSQ/vYBNFgntRtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730313288; a=rsa-sha256; cv=none; b=O5kEarzIjQyhqUf3a+KeEwLRoSBjpPtPvDCgwaxhStWF2/EJ0/q0jzQWrAmIOErMzIdKHB 7meELmVl99ikudEpeCT+67Pgj+zFwHruBEZNXE82GCDvSdoj5y5WoNpKOuqhkLMvqucFu8 6LdZG2GpF8OB2y/F5w6Fs4VPKWaWv3i2/Aa1ZlgwoG/cUPaxIeAxzYqlOyJXd4mLWd9kCX LTSLJwD0mqtHplovTtQCe9GHa14d6ltxSF5ILwa+vMClFNPqK95rBJDRCjR7AqyuarmnBK y46qF846KYWdp1tFaqTPQCiz0EUpmovF3YICJC6hskifIxVUQpb1oIq2f+IHgQ== 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 4XdwlX4rbnz1Hwy; Wed, 30 Oct 2024 18:34:48 +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 49UIYmsh071864; Wed, 30 Oct 2024 18:34:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49UIYmuE071861; Wed, 30 Oct 2024 18:34:48 GMT (envelope-from git) Date: Wed, 30 Oct 2024 18:34:48 GMT Message-Id: <202410301834.49UIYmuE071861@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: a34c378a051d - main - 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/main X-Git-Reftype: branch X-Git-Commit: a34c378a051d3df7767855bb37fc359924f4dcc1 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=a34c378a051d3df7767855bb37fc359924f4dcc1 commit a34c378a051d3df7767855bb37fc359924f4dcc1 Author: Dimitry Andric AuthorDate: 2024-10-17 18:56:45 +0000 Commit: Dimitry Andric CommitDate: 2024-10-30 18:34:11 +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 --- 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