[package - main-amd64-default][devel/oclgrind] Failed for oclgrind-21.10,1 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Wed, 29 Apr 2026 18:37:33 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:     ports@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy24/data/main-amd64-default/pc5823c817db8_s54922e4ec89/logs/oclgrind-21.10,1.log
Build URL:      https://pkg-status.freebsd.org/beefy24/build.html?mastername=main-amd64-default&build=pc5823c817db8_s54922e4ec89
Log:

=>> Building devel/oclgrind
build started at Wed Apr 29 18:37:21 UTC 2026
port directory: /usr/ports/devel/oclgrind
package name: oclgrind-21.10,1
building for: FreeBSD main-amd64-default-job-10 16.0-CURRENT FreeBSD 16.0-CURRENT 1600017 amd64
maintained by: ports@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 801 Sep 30  2025 /usr/ports/devel/oclgrind/Makefile
Ports top last git commit: c5823c817db8ff370aaf69ce09bb8ff437575513
Ports top unclean checkout: no
Port dir last git commit: b64b73fd938d5b2788547d16ed6a76493acc9142
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.8
Host OSVERSION: 1600014
Jail OSVERSION: 1600017
Job Id: 10




!!! Jail is newer than host. (Jail: 1600017, Host: 1600014) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1600017
UNAME_v=FreeBSD 16.0-CURRENT 1600017
UNAME_r=16.0-CURRENT
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
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.8
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-default/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/main-amd64-default/10/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.8
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--
ports@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/devel/oclgrind/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/oclgrind/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/oclgrind/work/.cache  HOME=/wrkdirs/usr/ports/devel/oclgrind/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/oclgrind/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/oclgrind/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--
NINJA_STATUS="[%p %s/%t] " XDG_DATA_HOME=/wrkdirs/usr/ports/devel/oclgrind/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/oclgrind/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/oclgrind/work/.cache  HOME=/wrkdirs/usr/ports/devel/oclgrind/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/devel/oclgrind/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/oclgrind/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 DESTDIR=/wrkdirs/usr/ports/devel/oclgrind/work/stage PREFIX=/usr/local  LOCALBASE=/usr/local  CC="clang12" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="clang-cpp12" CPPFLAGS=""  LDFLAGS=" " LIBS=""  CXX="clang++12" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing   " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_IN
STALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
CMAKE_BUILD_TYPE="release" OSREL=16.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/oclgrind"  EXAMPLESDIR="share/examples/oclgrind"  DATADIR="share/oclgrind"  WWWDIR="www/oclgrind"  ETCDIR="etc/oclgrind"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/oclgrind DOCSDIR=/usr/local/share/doc/oclgrind EXAMPLESDIR=/usr/local/share/examples/oclgrind  WWWDIR=/usr/local/www/oclgrind ETCDIR=/usr/local/etc/oclgrind
--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
pipebuf                         (-y)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>   NOTICE:

The oclgrind 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

===>  License BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   oclgrind-21.10,1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.7.4.pkg
[main-amd64-default-job-10] Installing pkg-2.7.4...
[main-amd64-default-job-10] Extracting pkg-2.7.4: .......... done
===>   oclgrind-21.10,1 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of oclgrind-21.10,1
===========================================================================
=======================<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
===>   NOTICE:

The oclgrind 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

===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by oclgrind-21.10,1 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>   NOTICE:

The oclgrind 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

===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by oclgrind-21.10,1 for building
=> SHA256 Checksum OK for jrprice-Oclgrind-v21.10_GH0.tar.gz.
<snip>
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:425 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/local/bin/python3.11 (found version "3.11.15")
-- Configuring done (1.4s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_COLOR_MAKEFILE
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_VERBOSE_MAKEFILE
    FETCHCONTENT_FULLY_DISCONNECTED
    THREADS_HAVE_PTHREAD_ARG


-- Build files have been written to: /wrkdirs/usr/ports/devel/oclgrind/work/.build
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for oclgrind-21.10,1
[  1% 3/58] cd /wrkdirs/usr/ports/devel/oclgrind/work/.build && /usr/local/bin/cmake -E copy /usr/local/llvm12/lib/clang/12.0.1/include/opencl-c-base.h include/oclgrind/opencl-c-base.h
[  3% 4/58] cd /wrkdirs/usr/ports/devel/oclgrind/work/.build && /usr/local/bin/cmake -E copy /usr/local/llvm12/lib/clang/12.0.1/include/opencl-c.h include/oclgrind/opencl-c.h
[  5% 5/58] /usr/local/bin/clang++12 -DLIBDIR_SUFFIX=\"\" -I/usr/local/llvm12/include -I/include -I/wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src -I/wrkdirs/usr/ports/devel/oclgrind/work/.build -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-rtti -Wall -Wno-strict-aliasing -Wno-ignored-attributes -Wno-gcc-compat -Wno-availability -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DNDEBUG -std=gnu++14   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o -MF CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o.d -o CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o -c /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp
FAILED: [code=1] CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o 
/usr/local/bin/clang++12 -DLIBDIR_SUFFIX=\"\" -I/usr/local/llvm12/include -I/include -I/wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src -I/wrkdirs/usr/ports/devel/oclgrind/work/.build -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fno-rtti -Wall -Wno-strict-aliasing -Wno-ignored-attributes -Wno-gcc-compat -Wno-availability -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DNDEBUG -std=gnu++14   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o -MF CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o.d -o CMakeFiles/oclgrind-exe.dir/src/runtime/oclgrind.cpp.o -c /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:88:
/usr/include/c++/v1/__cstddef/size_t.h:18:1: error: expected identifier or '{'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:79: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:88:
/usr/include/c++/v1/__cstddef/size_t.h:18:1: error: C++ requires a type specifier for all declarations
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:79: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:88:
/usr/include/c++/v1/__cstddef/size_t.h:18:1: error: expected expression
/usr/include/c++/v1/__config:599:79: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:90:
In file included from /usr/include/c++/v1/stdlib.h:89:
In file included from /usr/include/stdlib.h:37:
/usr/include/sys/_types.h:41:1: error: expected ';' after top level declarator
typedef signed char             __int8_t;
^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:90:
In file included from /usr/include/c++/v1/stdlib.h:109:
In file included from /usr/include/c++/v1/__math/abs.h:13:
/usr/include/c++/v1/__type_traits/enable_if.h:18:1: error: expected identifier or '{'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:79: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:90:
In file included from /usr/include/c++/v1/stdlib.h:109:
In file included from /usr/include/c++/v1/__math/abs.h:13:
/usr/include/c++/v1/__type_traits/enable_if.h:18:1: error: C++ requires a type specifier for all declarations
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:79: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:90:
In file included from /usr/include/c++/v1/stdlib.h:109:
In file included from /usr/include/c++/v1/__math/abs.h:13:
/usr/include/c++/v1/__type_traits/enable_if.h:18:1: error: expected expression
/usr/include/c++/v1/__config:599:79: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
In file included from /usr/include/c++/v1/cstdlib:90:
In file included from /usr/include/c++/v1/stdlib.h:109:
In file included from /usr/include/c++/v1/__math/abs.h:14:
In file included from /usr/include/c++/v1/__type_traits/is_integral.h:13:
/usr/include/c++/v1/__type_traits/integral_constant.h:18:1: error: expected ';' after top level declarator
_LIBCPP_BEGIN_NAMESPACE_STD
^
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:40: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                       ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
/usr/include/c++/v1/cstdlib:104:1: error: expected identifier or '{'
_LIBCPP_BEGIN_NAMESPACE_STD
^
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:79: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
/usr/include/c++/v1/cstdlib:104:1: error: C++ requires a type specifier for all declarations
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:79: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:11:
/usr/include/c++/v1/cstdlib:104:1: error: expected expression
/usr/include/c++/v1/__config:599:79: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                                                              ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:12:
In file included from /usr/include/c++/v1/cstring:64:
/usr/include/c++/v1/__type_traits/is_constant_evaluated.h:18:1: error: expected ';' after top level declarator
_LIBCPP_BEGIN_NAMESPACE_STD
^
/usr/include/c++/v1/__config:599:39: note: expanded from macro '_LIBCPP_BEGIN_NAMESPACE_STD'
#  define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD inline namespace _LIBCPP_ABI_NAMESPACE {
                                      ^
/usr/include/c++/v1/__config:595:40: note: expanded from macro '_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD'
    _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS namespace _LIBCPP_NAMESPACE_VISIBILITY std {
                                       ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:13:
In file included from /usr/include/c++/v1/iostream:45:
In file included from /usr/include/c++/v1/ios:222:
In file included from /usr/include/c++/v1/iosfwd:120:
In file included from /usr/include/c++/v1/__std_mbstate_t.h:14:
In file included from /usr/include/c++/v1/__mbstate_t.h:47:
In file included from /usr/include/wchar.h:67:
/usr/include/_ctype.h:99:44: error: use of undeclared identifier '___runetype'
        return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) :
                                                  ^
/usr/include/_ctype.h:106:26: error: use of undeclared identifier '__mb_sb_limit'
        return (_c < 0 || _c >= __mb_sb_limit) ? 0 :
                                ^
/usr/include/_ctype.h:132:43: error: use of undeclared identifier '___toupper'; did you mean '__toupper'?
        return (_c < 0 || _c >= _CACHED_RUNES) ? ___toupper(_c) :
                                                 ^
/usr/include/_ctype.h:130:1: note: '__toupper' declared here
__toupper(__ct_rune_t _c)
^
/usr/include/_ctype.h:139:26: error: use of undeclared identifier '__mb_sb_limit'
        return (_c < 0 || _c >= __mb_sb_limit) ? _c :
                                ^
/usr/include/_ctype.h:146:43: error: use of undeclared identifier '___tolower'; did you mean '__tolower'?
        return (_c < 0 || _c >= _CACHED_RUNES) ? ___tolower(_c) :
                                                 ^
/usr/include/_ctype.h:144:1: note: '__tolower' declared here
__tolower(__ct_rune_t _c)
^
/usr/include/_ctype.h:153:26: error: use of undeclared identifier '__mb_sb_limit'
        return (_c < 0 || _c >= __mb_sb_limit) ? _c :
                                ^
In file included from /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/runtime/oclgrind.cpp:13:
In file included from /usr/include/c++/v1/iostream:45:
In file included from /usr/include/c++/v1/ios:222:
In file included from /usr/include/c++/v1/iosfwd:120:
In file included from /usr/include/c++/v1/__std_mbstate_t.h:14:
In file included from /usr/include/c++/v1/__mbstate_t.h:47:
In file included from /usr/include/wchar.h:245:
/usr/include/xlocale/_wchar.h:39:7: error: unknown type name 'locale_t'
                           locale_t);
                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[  6% 5/58] cd /wrkdirs/usr/ports/devel/oclgrind/work/.build && /usr/local/llvm12/bin/clang -cc1 -x cl -cl-std=CL1.2 -O0 -fno-builtin -fgnu89-inline -emit-pch -triple spir-unknown-unknown -relocatable-pch -isysroot /wrkdirs/usr/ports/devel/oclgrind/work/.build/include/oclgrind/ include/oclgrind/opencl-c.h -o include/oclgrind/opencl-c-1.2-32.pch
[  8% 5/58] cd /wrkdirs/usr/ports/devel/oclgrind/work/.build && /usr/local/bin/cmake -DSOURCE_FILE=/usr/local/llvm12/lib/clang/12.0.1/include/opencl-c.h -P /wrkdirs/usr/ports/devel/oclgrind/work/Oclgrind-21.10/src/core/gen_opencl-c.h.cmake
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/devel/oclgrind