Created attachment 249821 [details] poudriere build log I get the following error trying to build bazel in 13.3 jail: external/upb/upb/mini_table.c:634:14: error: defining a type within '__builtin_offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions] Might be, it needs something similar to https://reviews.freebsd.org/D42729 as well.
(In reply to Konstantin Belousov from comment #0) The patch from https://reviews.freebsd.org/D42729 does not fix the build.
Created attachment 256974 [details] Patch to fix build on recent FreeBSD The attached patch suppresses the relevant warning, allowing the build to complete successfully.
Worked for me as well, thank you for the patch.
Patch committed. Thanks for the patch!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=984f80b6e226c37980c68d6a7a12d3be08dee2dc commit 984f80b6e226c37980c68d6a7a12d3be08dee2dc Author: j.david.lists@gmail.com <j.david.lists@gmail.com> AuthorDate: 2025-04-03 03:12:37 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2025-04-03 03:14:43 +0000 devel/bazel: Fix build PR: 278246 Reported by: kib Approved by: vishwin (maintainer's timeout; 68 days) .../patch-tools_cpp_bsd__cc__toolchain__config.bzl (new) | 12 ++++++++++++ 1 file changed, 12 insertions(+)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3e08e77155d1240ec9ef64bf37ae3cb2a605c12b commit 3e08e77155d1240ec9ef64bf37ae3cb2a605c12b Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2026-01-23 11:01:09 +0000 Commit: Ronald Klop <ronald@FreeBSD.org> CommitDate: 2026-02-04 20:01:44 +0000 devel/bazel: fix build around c23 extensions This reverts commit 984f80b6e226c37980c68d6a7a12d3be08dee2dc. PR: 278246 --- ...g.bzl => patch-tools_cpp_bsd_cc_toolchain_config.bzl} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename devel/bazel/files/{patch-tools_cpp_bsd__cc__toolchain__config.bzl => patch-tools_cpp_bsd_cc_toolchain_config.bzl} (62%) PR: 286235 Approved-by: maintainer timeout (10 months) ...n__config.bzl => patch-tools_cpp_bsd_cc_toolchain_config.bzl} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)