[package - 130releng-riscv64-quarterly][graphics/mesa-libs] Failed for mesa-libs-21.1.8 in configure

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 18 Dec 2021 04:14:00 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:     x11@FreeBSD.org
Log URL:        http://beefy7.nyi.freebsd.org/data/130releng-riscv64-quarterly/42934f25e49e/logs/mesa-libs-21.1.8.log
Build URL:      http://beefy7.nyi.freebsd.org/build.html?mastername=130releng-riscv64-quarterly&build=42934f25e49e
Log:

=>> Building graphics/mesa-libs
build started at Sat Dec 18 04:12:22 UTC 2021
port directory: /usr/ports/graphics/mesa-libs
package name: mesa-libs-21.1.8
building for: FreeBSD 130releng-riscv64-quarterly-job-01 13.0-RELEASE-p5 FreeBSD 13.0-RELEASE-p5 1300139 riscv
maintained by: x11@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-21-g883afb07
Host OSVERSION: 1400008
Jail OSVERSION: 1300139
Job Id: 01

---Begin Environment---
SHELL=/bin/csh
UNAME_p=riscv64
UNAME_m=riscv
ABI_FILE=/usr/lib/crt1.o
OSVERSION=1300139
UNAME_v=FreeBSD 13.0-RELEASE-p5 1300139
UNAME_r=13.0-RELEASE-p5
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
QEMU_EMULATING=1
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-21-g883afb07
MASTERMNT=/usr/local/poudriere/data/.m/130releng-riscv64-quarterly/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/130releng-riscv64-quarterly/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=130releng-riscv64-quarterly
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/130releng-riscv64-quarterly/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

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

---Begin OPTIONS List---
===> The following configuration options are available for mesa-libs-21.1.8:
     WAYLAND=on: Enable support for the Wayland platform in EGL
     ZSTD=on: Use ZSTD for shader cache
====> Options available for the group PLATFORM
     PLATFORM_X11=on: Enable X11 support for GBM/EGL
     PLATFORM_WAYLAND=on: Enable Wayland support for GBM/EGL
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
x11@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--prefix /usr/local  --mandir man  --infodir share/info -Db_colorout=never --buildtype release  --strip -Dzstd=enabled --native-file="/wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-21.1.8/llvm.ini" -Dllvm=enabled -Dgallium-drivers=""  -Dgallium-vdpau=disabled  -Dgallium-xvmc=disabled  -Dgallium-omx=disabled  -Dgallium-va=disabled  -Dgallium-xa=disabled  -Dgallium-nine=false  -Dosmesa=false  -Dtools=""  -Degl=enabled  -Dgbm=enabled  -Dvulkan-drivers=""  -Dglvnd=true  -Dprefer-iris=true -Ddri-drivers="r100" -Dplatforms="x11,wayland" _build
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PKG_CONFIG=pkgconf PYTHON="/usr/local/bin/python3.8" XDG_DATA_HOME=/wrkdirs/usr/ports/graphics/mesa-libs/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/graphics/mesa-libs/work  HOME=/wrkdirs/usr/ports/graphics/mesa-libs/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/graphics/mesa-libs/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
--End CONFIGURE_ENV--

--MAKE_ENV--
NINJA_STATUS="[%p %s/%t] " XDG_DATA_HOME=/wrkdirs/usr/ports/graphics/mesa-libs/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/graphics/mesa-libs/work  HOME=/wrkdirs/usr/ports/graphics/mesa-libs/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/graphics/mesa-libs/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DESTDIR=/wrkdirs/usr/ports/graphics/mesa-libs/work/stage LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="/nxb-bin/usr/bin/cc" CFLAGS="-O2 -pipe -march=rv64imafdc -mabi=lp64d  -fstack-protector-strong -fno-strict-aliasing "  CPP="/nxb-bin/usr/bin/cpp" CPPFLAGS=""  LDFLAGS=" -Wl,-rpath=/usr/local/llvm12/lib -fstack-protector-strong " LIBS=""  CXX="/nxb-bin/usr/bin/c++" CXXFLAGS="-O2 -pipe -march=rv64imafdc -mabi=lp64d -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="instal
 l  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PLATFORM_WAYLAND="" NO_PLATFORM_WAYLAND="@comment " PLATFORM_X11="" NO_PLATFORM_X11="@comment " WAYLAND="" NO_WAYLAND="@comment " ZSTD="" NO_ZSTD="@comment " PYTHON_INCLUDEDIR=include/python3.8  PYTHON_LIBDIR=lib/python3.8  PYTHON_PLATFORM=freebsd13  PYTHON_SITELIBDIR=lib/python3.8/site-packages  PYTHON_SUFFIX=38  PYTHON_EXT_SUFFIX=.cpython-38  PYTHON_VER=3.8  PYTHON_VERSION=python3.8 PYTHON2="@comment " PYTHON3="" GLX="" OSREL=13.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/mesa-libs"  EXAMPLESDIR="share/examples/mesa-libs"  DATADIR="share/mesa-libs"  WWWDIR="www/mesa-libs"  ETCDIR="etc/mesa-libs"
--End PLIST_SUB--

--SUB_LIST--
PLATFORM_WAYLAND="" NO_PLATFORM_WAYLAND="@comment " PLATFORM_X11="" NO_PLATFORM_X11="@comment " WAYLAND="" NO_WAYLAND="@comment " ZSTD="" NO_ZSTD="@comment " PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/mesa-libs DOCSDIR=/usr/local/share/doc/mesa-libs EXAMPLESDIR=/usr/local/share/examples/mesa-libs  WWWDIR=/usr/local/www/mesa-libs ETCDIR=/usr/local/etc/mesa-libs
--End SUB_LIST--

---Begin make.conf---
.sinclude "/etc/make.nxb.conf"
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=riscv
MACHINE_ARCH=riscv64
ARCH=${MACHINE_ARCH}
#### /usr/local/etc/poudriere.d/make.conf ####
# 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 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_9d218390=FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /nxb-bin/usr/bin
_ALTCCVERSION_9d218390=none
_CXXINTERNAL_9c45a5b1=FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /nxb-bin/usr/bin "/nxb-bin/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--enable-new-dtags" "-m" "elf64lriscv" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_9d218390_58173849=yes
CC_OUTPUT_9d218390_9bdba57c=yes
CC_OUTPUT_9d218390_6a4fe7f5=yes
CC_OUTPUT_9d218390_6bcac02b=yes
CC_OUTPUT_9d218390_67d20829=yes
CC_OUTPUT_9d218390_bfa62e83=yes
CC_OUTPUT_9d218390_f0b4d593=yes
CC_OUTPUT_9d218390_308abb44=yes
CC_OUTPUT_9d218390_f00456e5=yes
CC_OUTPUT_9d218390_65ad290d=yes
CC_OUTPUT_9d218390_f2776b26=yes
CC_OUTPUT_9d218390_b2657cc3=yes
CC_OUTPUT_9d218390_380987f7=yes
CC_OUTPUT_9d218390_160933ec=yes
CC_OUTPUT_9d218390_fb62803b=yes
_OBJC_CCVERSION_9d218390=FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /nxb-bin/usr/bin
_OBJC_ALTCCVERSION_9d218390=none
ARCH=riscv64
OPSYS=FreeBSD
_OSRELEASE=13.0-RELEASE-p5
OSREL=13.0
OSVERSION=1300139
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
---Begin make.nxb.conf---
CC=/nxb-bin/usr/bin/cc
CPP=/nxb-bin/usr/bin/cpp
CXX=/nxb-bin/usr/bin/c++
NM=/nxb-bin/usr/bin/nm
LD=/nxb-bin/usr/bin/ld
OBJCOPY=/nxb-bin/usr/bin/objcopy
SIZE=/nxb-bin/usr/bin/size
STRIPBIN=/nxb-bin/usr/bin/strip
SED=/nxb-bin/usr/bin/sed
RANLIB=/nxb-bin/usr/bin/ranlib
YACC=/nxb-bin/usr/bin/yacc
MAKE=/nxb-bin/usr/bin/make
STRINGS=/nxb-bin/usr/bin/strings
AWK=/nxb-bin/usr/bin/awk
FLEX=/nxb-bin/usr/bin/flex
---End make.nxb.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)  1024
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   >============================
===========================================================================
=======================<phase: pkg-depends    >============================
===>   mesa-libs-21.1.8 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.17.5.pkg
[130releng-riscv64-quarterly-job-01] Installing pkg-1.17.5...
[130releng-riscv64-quarterly-job-01] Extracting pkg-1.17.5: .......... done
===>   mesa-libs-21.1.8 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of mesa-libs-21.1.8
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===> Fetching all distfiles required by mesa-libs-21.1.8 for building
===========================================================================
=======================<phase: checksum       >============================
===> Fetching all distfiles required by mesa-libs-21.1.8 for building
=> SHA256 Checksum OK for mesa-21.1.8.tar.xz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===> Fetching all distfiles required by mesa-libs-21.1.8 for building
<snip>
===>   mesa-libs-21.1.8 depends on file: /usr/local/libdata/pkgconfig/xshmfence.pc - found
===>   Returning to build of mesa-libs-21.1.8
===>   mesa-libs-21.1.8 depends on file: /usr/local/libdata/pkgconfig/xxf86vm.pc - not found
===>   Installing existing package /packages/All/libXxf86vm-1.1.4_3.pkg
[130releng-riscv64-quarterly-job-01] Installing libXxf86vm-1.1.4_3...
[130releng-riscv64-quarterly-job-01] Extracting libXxf86vm-1.1.4_3: .......... done
===>   mesa-libs-21.1.8 depends on file: /usr/local/libdata/pkgconfig/xxf86vm.pc - found
===>   Returning to build of mesa-libs-21.1.8
===>   mesa-libs-21.1.8 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - not found
===>   Installing existing package /packages/All/libXrandr-1.5.2.pkg
[130releng-riscv64-quarterly-job-01] Installing libXrandr-1.5.2...
[130releng-riscv64-quarterly-job-01] `-- Installing libXrender-0.9.10_2...
[130releng-riscv64-quarterly-job-01] `-- Extracting libXrender-0.9.10_2: .......... done
[130releng-riscv64-quarterly-job-01] Extracting libXrandr-1.5.2: .......... done
===>   mesa-libs-21.1.8 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - found
===>   Returning to build of mesa-libs-21.1.8
===========================================================================
=======================<phase: lib-depends    >============================
===>   mesa-libs-21.1.8 depends on shared library: libOpenGL.so - not found
===>   Installing existing package /packages/All/libglvnd-1.3.4.pkg
[130releng-riscv64-quarterly-job-01] Installing libglvnd-1.3.4...
[130releng-riscv64-quarterly-job-01] Extracting libglvnd-1.3.4: .......... done
===>   mesa-libs-21.1.8 depends on shared library: libOpenGL.so - found (/usr/local/lib/libOpenGL.so)
===>   Returning to build of mesa-libs-21.1.8
===>   mesa-libs-21.1.8 depends on shared library: libwayland-egl.so - not found
===>   Installing existing package /packages/All/wayland-1.19.0_1.pkg
[130releng-riscv64-quarterly-job-01] Installing wayland-1.19.0_1...
[130releng-riscv64-quarterly-job-01] `-- Installing expat-2.4.1...
[130releng-riscv64-quarterly-job-01] `-- Extracting expat-2.4.1: .......... done
[130releng-riscv64-quarterly-job-01] `-- Installing libepoll-shim-0.0.20210418...
[130releng-riscv64-quarterly-job-01] `-- Extracting libepoll-shim-0.0.20210418: .......... done
[130releng-riscv64-quarterly-job-01] Extracting wayland-1.19.0_1: .......... done
=====
Message from wayland-1.19.0_1:

--
Wayland requires XDG_RUNTIME_DIR to be defined to a path that will
contain "wayland-%d" unix(4) sockets. This is usually handled by
consolekit2 (via ck-launch-session) or pam_xdg (via login).
===>   mesa-libs-21.1.8 depends on shared library: libwayland-egl.so - found (/usr/local/lib/libwayland-egl.so)
===>   Returning to build of mesa-libs-21.1.8
===>   mesa-libs-21.1.8 depends on shared library: libzstd.so - not found
===>   Installing existing package /packages/All/zstd-1.5.0.pkg
[130releng-riscv64-quarterly-job-01] Installing zstd-1.5.0...
[130releng-riscv64-quarterly-job-01] `-- Installing liblz4-1.9.3,1...
[130releng-riscv64-quarterly-job-01] `-- Extracting liblz4-1.9.3,1: .......... done
[130releng-riscv64-quarterly-job-01] Extracting zstd-1.5.0: .......... done
===>   mesa-libs-21.1.8 depends on shared library: libzstd.so - found (/usr/local/lib/libzstd.so)
===>   Returning to build of mesa-libs-21.1.8
===>   mesa-libs-21.1.8 depends on shared library: libexpat.so - found (/usr/local/lib/libexpat.so)
===>   mesa-libs-21.1.8 depends on shared library: libdrm.so - not found
===>   Installing existing package /packages/All/libdrm-2.4.107_1,1.pkg
[130releng-riscv64-quarterly-job-01] Installing libdrm-2.4.107_1,1...
[130releng-riscv64-quarterly-job-01] `-- Installing libpciaccess-0.16...
[130releng-riscv64-quarterly-job-01] |   `-- Installing pciids-20210829...
[130releng-riscv64-quarterly-job-01] |   `-- Extracting pciids-20210829: ..... done
[130releng-riscv64-quarterly-job-01] `-- Extracting libpciaccess-0.16: ......... done
[130releng-riscv64-quarterly-job-01] Extracting libdrm-2.4.107_1,1: .......... done
===>   mesa-libs-21.1.8 depends on shared library: libdrm.so - found (/usr/local/lib/libdrm.so)
===>   Returning to build of mesa-libs-21.1.8
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for mesa-libs-21.1.8
/usr/bin/printf "[binaries]\nllvm-config = '/usr/local/bin/llvm-config12'"  > /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-21.1.8/llvm.ini
The Meson build system
Version: 0.59.1
Source dir: /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-21.1.8
Build dir: /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-21.1.8/_build
Build type: native build
Program python3 found: YES (/wrkdirs/usr/ports/graphics/mesa-libs/work/.bin/python3)
Project name: mesa
Project version: 21.1.8
C compiler for the host machine: /nxb-bin/usr/bin/cc (clang 11.0.1 "FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)")
C linker for the host machine: /nxb-bin/usr/bin/cc ld.lld 11.0.1
C++ compiler for the host machine: /nxb-bin/usr/bin/c++ (clang 11.0.1 "FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)")
C++ linker for the host machine: /nxb-bin/usr/bin/c++ ld.lld 11.0.1
Host machine cpu family: riscv64
Host machine cpu: riscv64
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency clang found: NO (tried cmake)
Program python3 found: YES (/wrkdirs/usr/ports/graphics/mesa-libs/work/.bin/python3)
Fetching value of define "ETIME" :  
Checking for function "bswap32" : YES 
Checking for function "bswap64" : YES 
Checking for function "clz" : YES 
Checking for function "clzll" : YES 
Checking for function "ctz" : YES 
Checking for function "expect" : YES 
Checking for function "ffs" : YES 
Checking for function "ffsll" : YES 
Checking for function "popcount" : YES 
Checking for function "popcountll" : YES 
Checking for function "unreachable" : YES 
Checking for function "types_compatible_p" : YES 
Compiler for C supports function attribute const: YES 
Compiler for C supports function attribute flatten: YES 
Compiler for C supports function attribute malloc: YES 
Compiler for C supports function attribute pure: YES 
Compiler for C supports function attribute unused: YES 
Compiler for C supports function attribute warn_unused_result: YES 
Compiler for C supports function attribute weak: YES 
Compiler for C supports function attribute format: YES 
Compiler for C supports function attribute packed: YES 
Compiler for C supports function attribute returns_nonnull: YES 
Compiler for C supports function attribute alias: YES 
Compiler for C supports function attribute noreturn: YES 
Compiler for C supports function attribute visibility:hidden: YES 
Checking if "__uint128_t" compiles: YES 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Compiler for C supports arguments -Werror=return-type: YES 
Compiler for C supports arguments -Werror=empty-body: YES 
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES 
Compiler for C supports arguments -Werror=int-conversion: YES 
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wno-format-truncation: NO 
Compiler for C supports arguments -fno-math-errno: YES 
Compiler for C supports arguments -fno-trapping-math: YES 
Compiler for C supports arguments -Qunused-arguments: YES 
Compiler for C supports arguments -fno-common: YES 
Compiler for C supports arguments -Werror=format: YES 
Compiler for C supports arguments -Wformat-security: YES 
Compiler for C++ supports arguments -Werror=return-type: YES 
Compiler for C++ supports arguments -Werror=empty-body: YES 
Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES 
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Compiler for C++ supports arguments -Wno-format-truncation: NO 
Compiler for C++ supports arguments -fno-math-errno: YES 
Compiler for C++ supports arguments -fno-trapping-math: YES 
Compiler for C++ supports arguments -Qunused-arguments: YES 
Compiler for C++ supports arguments -flifetime-dse=1: NO 
Compiler for C++ supports arguments -Werror=format: YES 
Compiler for C++ supports arguments -Wformat-security: YES 
Compiler for C supports arguments -Wno-override-init: YES 
Compiler for C supports arguments -Wno-initializer-overrides: YES 
Compiler for C supports arguments -Werror=pointer-arith: YES 
Compiler for C++ supports arguments -Werror=pointer-arith: YES 
Compiler for C supports arguments -Werror=gnu-empty-initializer: YES 
Compiler for C++ supports arguments -Werror=gnu-empty-initializer: YES 
Compiler for C supports arguments -Wmicrosoft-enum-value: YES 
Checking if "GCC atomic builtins" compiles: YES 
Checking if "GCC atomic builtins required -latomic" links: YES 
Checking if "GCC 64bit atomics" with dependency not-found links: YES 
Library ws2_32 found: NO
Header <sys/sysmacros.h> has symbol "major" : NO 
Header <sys/mkdev.h> has symbol "major" : NO 
Check usable header "sys/sysctl.h" : YES 
Check usable header "xlocale.h" : YES 
Check usable header "linux/futex.h" : NO 
Check usable header "endian.h" : NO 
Check usable header "dlfcn.h" : YES 
Check usable header "execinfo.h" : YES 
Check usable header "sys/shm.h" : YES 
Check usable header "cet.h" : YES 
Check usable header "pthread_np.h" : YES 
Checking for function "strtof" : YES 
Checking for function "mkostemp" : YES 
Checking for function "timespec_get" : YES 
Checking for function "memfd_create" : YES 
Checking for function "random_r" : NO 
Checking for function "flock" : YES 
Checking for function "strtok_r" : YES 
Checking for function "getrandom" : YES 
Header <errno.h> has symbol "program_invocation_name" : NO 
Checking for function "posix_memalign" : YES 
Checking whether type "struct dirent" has member "d_type" : YES 
Checking if "strtod has locale support" links: YES 
Checking if "Bsymbolic" links: YES 
Checking if "gc-sections" links: YES 
Checking if "version-script" links: YES 
Checking if "dynamic-list" links: YES 
Compiler for C supports link arguments -Wl,--build-id=sha1: YES 
Checking for function "dlopen" : YES 
Checking for function "dladdr" with dependency not-found: YES 
Checking for function "dl_iterate_phdr" : YES 
Checking for function "clock_gettime" : YES 
Found pkg-config: /usr/local/bin/pkgconf (1.7.4)
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libzstd found: YES 1.5.0
Run-time dependency threads found: YES
Checking for function "pthread_setaffinity_np" with dependency threads: NO 
Run-time dependency expat found: YES 2.4.1
Library m found: YES
Run-time dependency libdrm_radeon found: NO (tried pkgconfig)

meson.build:1510:4: ERROR: Dependency "libdrm_radeon" not found, tried pkgconfig

A full log can be found at /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-21.1.8/_build/meson-logs/meson-log.txt
===>  Script "configure" failed unexpectedly.
Please report the problem to x11@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-21.1.8/_build/meson-logs/meson-log.txt"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/mesa-libs