[package - 140releng-powerpc64le-quarterly][devel/bazel] Failed for bazel-6.2.0 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Mon, 04 Dec 2023 22:14:09 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     vishwin@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/foul2/data/140releng-powerpc64le-quarterly/84b4661ec108/logs/bazel-6.2.0.log
Build URL:      https://pkg-status.freebsd.org/foul2/build.html?mastername=140releng-powerpc64le-quarterly&build=84b4661ec108
Log:

=>> Building devel/bazel
build started at Mon Dec  4 22:05:54 UTC 2023
port directory: /usr/ports/devel/bazel
package name: bazel-6.2.0
building for: FreeBSD 140releng-powerpc64le-quarterly-job-04 14.0-RC3 FreeBSD 14.0-RC3 1400097 powerpc
maintained by: vishwin@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 3476 Oct  3 01:04 /usr/ports/devel/bazel/Makefile
Ports top last git commit: 84b4661ec
Ports top unclean checkout: no
Port dir last git commit: 2195304f9
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.3.0-1258-gbc38e2e6
Host OSVERSION: 1500000
Jail OSVERSION: 1400097
Job Id: 04

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400097
UNAME_v=FreeBSD 14.0-RC3 1400097
UNAME_r=14.0-RC3
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.0-1258-gbc38e2e6
MASTERMNT=/usr/local/poudriere/data/.m/140releng-powerpc64le-quarterly/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/140releng-powerpc64le-quarterly/04/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=140releng-powerpc64le-quarterly
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/140releng-powerpc64le-quarterly/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.3.0-1258-gbc38e2e6
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
vishwin@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PYTHON="/usr/local/bin/python3.9" XDG_DATA_HOME=/wrkdirs/usr/ports/devel/bazel/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/bazel/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/bazel/work/.cache  HOME=/wrkdirs/usr/ports/devel/bazel/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/bazel/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/bazel/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/bazel/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/bazel/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/bazel/work/.cache  HOME=/wrkdirs/usr/ports/devel/bazel/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/bazel/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/bazel/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install   -m 555"  BSD_INSTALL_LIB="install   -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_M
 AN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
JAVASHAREDIR="share/java"  JAVAJARDIR="share/java/classes" PYTHON_INCLUDEDIR=include/python3.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/bazel"  EXAMPLESDIR="share/examples/bazel"  DATADIR="share/bazel"  WWWDIR="www/bazel"  ETCDIR="etc/bazel"
--End PLIST_SUB--

--SUB_LIST--
JAVASHAREDIR="/usr/local/share/java"  JAVAJARDIR="/usr/local/share/java/classes"  JAVALIBDIR="/usr/local/share/java/classes" JAVA_VERSION="11" JAVA_VENDOR="openjdk" PYTHON_INCLUDEDIR=/usr/local/include/python3.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/bazel DOCSDIR=/usr/local/share/doc/bazel EXAMPLESDIR=/usr/local/share/examples/bazel  WWWDIR=/usr/local/www/bazel ETCDIR=/usr/local/etc/bazel
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   bazel-6.2.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.20.8.pkg
[140releng-powerpc64le-quarterly-job-04] Installing pkg-1.20.8...
[140releng-powerpc64le-quarterly-job-04] Extracting pkg-1.20.8: .......... done
===>   bazel-6.2.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of bazel-6.2.0
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by bazel-6.2.0 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by bazel-6.2.0 for building
=> SHA256 Checksum OK for bazel-6.2.0-dist.zip.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by bazel-6.2.0 for building
===>  Extracting for bazel-6.2.0
=> SHA256 Checksum OK for bazel-6.2.0-dist.zip.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for bazel-6.2.0
===>  Applying FreeBSD patches for bazel-6.2.0 from /usr/ports/devel/bazel/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   bazel-6.2.0 depends on executable: bash - not found
===>   Installing existing package /packages/All/bash-5.2.15.pkg
[140releng-powerpc64le-quarterly-job-04] Installing bash-5.2.15...
[140releng-powerpc64le-quarterly-job-04] `-- Installing gettext-runtime-0.22_1...
[140releng-powerpc64le-quarterly-job-04] |   `-- Installing indexinfo-0.3.1...
[140releng-powerpc64le-quarterly-job-04] |   `-- Extracting indexinfo-0.3.1: .... done
[140releng-powerpc64le-quarterly-job-04] `-- Extracting gettext-runtime-0.22_1: .......... done
[140releng-powerpc64le-quarterly-job-04] `-- Installing readline-8.2.1...
[140releng-powerpc64le-quarterly-job-04] `-- Extracting readline-8.2.1: .......... done
[140releng-powerpc64le-quarterly-job-04] Extracting bash-5.2.15: .......... done
===>   bazel-6.2.0 depends on executable: bash - found
===>   Returning to build of bazel-6.2.0
===>   bazel-6.2.0 depends on executable: zip - not found
===>   Installing existing package /packages/All/zip-3.0_1.pkg
[140releng-powerpc64le-quarterly-job-04] Installing zip-3.0_1...
[140releng-powerpc64le-quarterly-job-04] Extracting zip-3.0_1: .......... done
===>   bazel-6.2.0 depends on executable: zip - found
===>   Returning to build of bazel-6.2.0
===>   bazel-6.2.0 depends on file: /usr/local/openjdk11/bin/java - not found
===>   Installing existing package /packages/All/openjdk11-11.0.20+8.1_1.pkg
[140releng-powerpc64le-quarterly-job-04] Installing openjdk11-11.0.20+8.1_1...
[140releng-powerpc64le-quarterly-job-04] `-- Installing alsa-lib-1.2.2_1...
[140releng-powerpc64le-quarterly-job-04] `-- Extracting alsa-lib-1.2.2_1: .......... done
[140releng-powerpc64le-quarterly-job-04] `-- Installing fontconfig-2.14.2,1...
[140releng-powerpc64le-quarterly-job-04] |   `-- Installing expat-2.5.0...
[140releng-powerpc64le-quarterly-job-04] |   `-- Extracting expat-2.5.0: .......... done
[140releng-powerpc64le-quarterly-job-04] |   `-- Installing freetype2-2.13.1...
<snip>
The alsa-lib port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
=====
Message from freetype2-2.13.1:

--
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).

The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:

FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
	cff:no-stem-darkening=1 \
	autofitter:warping=1

This allows to select, say, the subpixel hinting mode at runtime for a given
application.

If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
the foundry and information whether they contain wide characters. For example,
"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
run time with using pcf:no-long-family-names property, if needed. Example:

FREETYPE_PROPERTIES=pcf:no-long-family-names=1

How to recreate fontconfig cache with using such environment variable,
if needed:
# env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv

The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed).
=====
Message from dejavu-2.37_3:

--
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

	Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

	FontPath "/usr/local/share/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
=====
Message from openjdk11-11.0.20+8.1_1:

--
This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and
procfs(5) mounted on /proc.

If you have not done it yet, please do the following:

	mount -t fdescfs fdesc /dev/fd
	mount -t procfs proc /proc

To make it permanent, you need the following lines in /etc/fstab:

	fdesc	/dev/fd		fdescfs		rw	0	0
	proc	/proc		procfs		rw	0	0
===>   bazel-6.2.0 depends on file: /usr/local/openjdk11/bin/java - found
===>   Returning to build of bazel-6.2.0
===>   bazel-6.2.0 depends on file: /usr/local/bin/python3.9 - not found
===>   Installing existing package /packages/All/python39-3.9.18.pkg
[140releng-powerpc64le-quarterly-job-04] Installing python39-3.9.18...
[140releng-powerpc64le-quarterly-job-04] `-- Installing libffi-3.4.4...
[140releng-powerpc64le-quarterly-job-04] `-- Extracting libffi-3.4.4: .......... done
[140releng-powerpc64le-quarterly-job-04] `-- Installing mpdecimal-2.5.1...
[140releng-powerpc64le-quarterly-job-04] `-- Extracting mpdecimal-2.5.1: .......... done
[140releng-powerpc64le-quarterly-job-04] Extracting python39-3.9.18: .......... done
=====
Message from python39-3.9.18:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py39-gdbm       databases/py-gdbm@py39
py39-sqlite3    databases/py-sqlite3@py39
py39-tkinter    x11-toolkits/py-tkinter@py39
===>   bazel-6.2.0 depends on file: /usr/local/bin/python3.9 - found
===>   Returning to build of bazel-6.2.0
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for bazel-6.2.0
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for bazel-6.2.0
(if [ -z "${SOURCE_DATE_EPOCH}" ] ;  then SOURCE_DATE_EPOCH=`grep TIMESTAMP /usr/ports/devel/bazel/distinfo  | /usr/bin/sed -e 's/[^0-9]//g'`;  fi ;  cd /wrkdirs/usr/ports/devel/bazel/work/bazel-6.2.0 &&  /usr/bin/env BAZEL_SH=/usr/local/bin/bash  JAVA_HOME=/usr/local/openjdk11  JAVA_VERSION=11  TMPDIR=/wrkdirs/usr/ports/devel/bazel/work/bazel_tmp  EMBED_LABEL='6.2.0'  PATH=/usr/local/bin:$PATH  SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}  BAZEL_JAVAC_OPTS=  EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk --tool_java_runtime_version=local_jdk   --java_language_version=11  --tool_java_language_version=11'  /usr/local/bin/bash ./compile.sh)
Building Bazel from scratch......
Building Bazel with Bazel.
.WARNING: Option 'host_javabase' is deprecated
Loading: 
Loading: 
Loading: 
Loading: 
Loading: 
DEBUG: /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_VzagaHE9/out/external/build_bazel_rules_nodejs/index.bzl:122:10: WARNING: check_rules_nodejs_version has been removed. This is a no-op, please remove the call.
Loading: 
Loading: 
Loading: 
Loading: 
Loading: 
WARNING: Option 'host_javabase' is deprecated
Loading: 
Loading: 0 packages loaded
Analyzing: target //src:bazel_nojdk (1 packages loaded)
Analyzing: target //src:bazel_nojdk (1 packages loaded, 0 targets configured)
Analyzing: target //src:bazel_nojdk (5 packages loaded, 8 targets configured)
Analyzing: target //src:bazel_nojdk (63 packages loaded, 331 targets configured)
Analyzing: target //src:bazel_nojdk (343 packages loaded, 6964 targets configured)
Analyzing: target //src:bazel_nojdk (344 packages loaded, 7351 targets configured)
Analyzing: target //src:bazel_nojdk (344 packages loaded, 7582 targets configured)
Analyzing: target //src:bazel_nojdk (380 packages loaded, 9281 targets configured)
Analyzing: target //src:bazel_nojdk (383 packages loaded, 9906 targets configured)
INFO: Analyzed target //src:bazel_nojdk (383 packages loaded, 10339 targets configured).
 checking cached actions
INFO: Found 1 target...
[0 / 77] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (4 actions, 1 running)
[12 / 486] [Prepa] Compiling third_party/utf8_range/naive.c [for tool] ... (72 actions, 19 running)
[12 / 486] [Prepa] Compiling third_party/utf8_range/naive.c [for tool] ... (72 actions, 19 running)
[12 / 486] Compiling third_party/utf8_range/range2-neon.c [for tool]; 1s local ... (72 actions running)
[14 / 486] Compiling absl/time/internal/cctz/src/time_zone_if.cc [for tool]; 2s local ... (72 actions running)
[15 / 486] Compiling absl/time/internal/cctz/src/time_zone_if.cc [for tool]; 4s local ... (72 actions, 71 running)
ERROR: /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_VzagaHE9/out/external/upb/BUILD:102:11: Compiling upb/upb.c [for tool] failed: (Exit 1): clang failed: error executing command (from target @upb//:upb) 
  (cd /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_VzagaHE9/out/execroot/io_bazel && \
  exec env - \
    PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin \
    PWD=/proc/self/cwd \
  /usr/bin/clang -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb/_objs/upb/upb.d '-frandom-seed=bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb/_objs/upb/upb.o' '-DBAZEL_CURRENT_REPOSITORY="upb"' -iquote external/upb -iquote bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb -g0 '-std=c99' -pedantic '-Werror=pedantic' -Wall -Wstrict-prototypes -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/upb/upb/upb.c -o bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb/_objs/upb/upb.o)
# Configuration: 4d7bbc6223642c64e401311e4cef68ac094a930bca1f4959df33d5e71fd2b944
# Execution platform: //:default_host_platform
external/upb/upb/upb.c:228:25: error: defining a type within '__builtin_offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions]
  n = UPB_ALIGN_DOWN(n, UPB_ALIGN_OF(upb_Arena));
                        ^~~~~~~~~~~~~~~~~~~~~~~
external/upb/upb/port_def.inc:95:38: note: expanded from macro 'UPB_ALIGN_OF'
#define UPB_ALIGN_OF(type) offsetof (struct { char c; type member; }, member)
                                     ^~~~~~
/usr/include/stddef.h:73:42: note: expanded from macro 'offsetof'
#define offsetof(type, field)   __offsetof(type, field)
                                           ^~~~
/usr/include/sys/cdefs.h:467:53: note: expanded from macro '__offsetof'
#define __offsetof(type, field)  __builtin_offsetof(type, field)
                                                    ^~~~
external/upb/upb/port_def.inc:93:48: note: expanded from macro 'UPB_ALIGN_DOWN'
#define UPB_ALIGN_DOWN(size, align) ((size) / (align) * (align))
                                               ^~~~~
external/upb/upb/upb.c:228:25: error: defining a type within '__builtin_offsetof' is a Clang extension [-Werror,-Wgnu-offsetof-extensions]
  n = UPB_ALIGN_DOWN(n, UPB_ALIGN_OF(upb_Arena));
                        ^~~~~~~~~~~~~~~~~~~~~~~
external/upb/upb/port_def.inc:95:38: note: expanded from macro 'UPB_ALIGN_OF'
#define UPB_ALIGN_OF(type) offsetof (struct { char c; type member; }, member)
                                     ^~~~~~
/usr/include/stddef.h:73:42: note: expanded from macro 'offsetof'
#define offsetof(type, field)   __offsetof(type, field)
                                           ^~~~
/usr/include/sys/cdefs.h:467:53: note: expanded from macro '__offsetof'
#define __offsetof(type, field)  __builtin_offsetof(type, field)
                                                    ^~~~
external/upb/upb/port_def.inc:93:58: note: expanded from macro 'UPB_ALIGN_DOWN'
#define UPB_ALIGN_DOWN(size, align) ((size) / (align) * (align))
                                                         ^~~~~
2 errors generated.
Target //src:bazel_nojdk failed to build
ERROR: /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_VzagaHE9/out/external/com_github_grpc_grpc/BUILD:3311:16 Middleman _middlemen/@com_Ugithub_Ugrpc_Ugrpc_S_S_Cgrpc_Ulb_Upolicy_Ugrpclb-cc_library-compile failed: (Exit 1): clang failed: error executing command (from target @upb//:upb) 
  (cd /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_VzagaHE9/out/execroot/io_bazel && \
  exec env - \
    PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin \
    PWD=/proc/self/cwd \
  /usr/bin/clang -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb/_objs/upb/upb.d '-frandom-seed=bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb/_objs/upb/upb.o' '-DBAZEL_CURRENT_REPOSITORY="upb"' -iquote external/upb -iquote bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb -g0 '-std=c99' -pedantic '-Werror=pedantic' -Wall -Wstrict-prototypes -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/upb/upb/upb.c -o bazel-out/freebsd-opt-exec-EDC14992/bin/external/upb/_objs/upb/upb.o)
# Configuration: 4d7bbc6223642c64e401311e4cef68ac094a930bca1f4959df33d5e71fd2b944
# Execution platform: //:default_host_platform
INFO: Elapsed time: 40.802s, Critical Path: 5.67s
INFO: 87 processes: 83 internal, 4 local.
FAILED: Build did NOT complete successfully

ERROR: Could not build Bazel
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/bazel