[package - main-arm64-default][lang/ghc] Failed for ghc-9.6.4 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 16 Mar 2024 22:29:51 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:     haskell@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/pd5512ae7b8c6_s4517b7a2d54/logs/ghc-9.6.4.log
Build URL:      https://pkg-status.freebsd.org/ampere2/build.html?mastername=main-arm64-default&build=pd5512ae7b8c6_s4517b7a2d54
Log:

=>> Building lang/ghc
build started at Sat Mar 16 20:59:13 UTC 2024
port directory: /usr/ports/lang/ghc
package name: ghc-9.6.4
building for: FreeBSD main-arm64-default-job-09 15.0-CURRENT FreeBSD 15.0-CURRENT 1500015 arm64
maintained by: haskell@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 13068 Mar 16 01:05 /usr/ports/lang/ghc/Makefile
Ports top last git commit: d5512ae7b8c
Ports top unclean checkout: no
Port dir last git commit: 973a7aaf483
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-1-g1e9f97d6
Host OSVERSION: 1500006
Jail OSVERSION: 1500015
Job Id: 09




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



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500015
UNAME_v=FreeBSD 15.0-CURRENT 1500015
UNAME_r=15.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.1-1-g1e9f97d6
MASTERMNT=/usr/local/poudriere/data/.m/main-arm64-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-arm64-default/09/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-arm64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-arm64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-1-g1e9f97d6
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---
===> The following configuration options are available for ghc-9.6.4:
     DOCS=on: Install HTML documentation
     DYNAMIC=on: Add support for dynamic linking
     GMP=on: Use GNU Multi-precision Library from Ports
     PROFILE=on: Add support for performance profiling
====> Bootsrap using installed ghc
     BOOT=off: Use installed GHC for bootstrapping
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
haskell@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--docdir=/usr/local/share/doc/ghc  --with-gmp-includes=/usr/local/include  --with-gmp-libraries=/usr/local/lib --with-system-libffi --with-ffi-includes=/usr/local/include --with-ffi-libraries=/usr/local/lib --host=aarch64-unknown-freebsd --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
ALEX=/usr/bin/true HAPPY=/usr/bin/true GHC=/wrkdirs/usr/ports/lang/ghc/work/ghc-boot-install/bin/ghc-9.2.8 LLC=llc12 OPT=opt12 MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1 PYTHON="/usr/local/bin/python3.9" CC=cc CXX=c++ XDG_DATA_HOME=/wrkdirs/usr/ports/lang/ghc/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/ghc/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/lang/ghc/work/.cache  HOME=/wrkdirs/usr/ports/lang/ghc/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/lang/ghc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/ghc/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh DEFAULT_AUTOCONF=2.72 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--

--MAKE_ENV--
PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/lang/ghc/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/ghc/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/lang/ghc/work/.cache  HOME=/wrkdirs/usr/ports/lang/ghc/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/lang/ghc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/ghc/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 DEFAULT_AUTOCONF=2.72 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 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  " BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -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--
CABAL_VERSION=3.10.1.0 ARRAY_VERSION=0.5.6.0 BASE_VERSION=4.18.2.0 BINARY_VERSION=0.8.9.1 BYTESTRING_VERSION=0.11.5.3 CONTAINERS_VERSION=0.6.7 DEEPSEQ_VERSION=1.4.8.1 DIRECTORY_VERSION=1.3.8.1 EXCEPTIONS_VERSION=0.10.7 FILEPATH_VERSION=1.4.200.1 GHC_VERSION=9.6.4 GHC-BIGNUM_VERSION=1.3 GHC-COMPACT_VERSION=0.1.0.0 GHC-PRIM_VERSION=0.10.0 HASKELINE_VERSION=0.8.2.1 HPC_VERSION=0.6.2.0 INTEGER-GMP_VERSION=1.1 MTL_VERSION=2.3.1 PARSEC_VERSION=3.1.16.1 PRETTY_VERSION=1.1.3.6 PROCESS_VERSION=1.6.17.0 STM_VERSION=2.5.1.0 TEMPLATE-HASKELL_VERSION=2.20.0.0 TERMINFO_VERSION=0.4.1.6 TEXT_VERSION=2.0.2 TIME_VERSION=1.12.2 TRANSFORMERS_VERSION=0.6.1.0 UNIX_VERSION=2.8.4.0 XHTML_VERSION=3000.2.2.1 PORTDOCS="" BOOT="@comment " NO_BOOT="" DOCS="" NO_DOCS="@comment " DYNAMIC="" NO_DYNAMIC="@comment " GMP="" NO_GMP="@comment " PROFILE="" NO_PROFILE="@comment " PYTHON_INCLUDEDIR=include/python3.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd15  PYTHON_SITELIBDIR=lib/python3.9/site-packa
ges  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" GHC_ARCH=aarch64 OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.36.3  PERL_VER=5.36  PERL5_MAN1=lib/perl5/site_perl/man/man1  PERL5_MAN3=lib/perl5/site_perl/man/man3  SITE_PERL=lib/perl5/site_perl  SITE_ARCH=lib/perl5/site_perl/mach/5.36 DOCSDIR="share/doc/ghc"  EXAMPLESDIR="share/examples/ghc"  DATADIR="share/ghc"  WWWDIR="www/ghc"  ETCDIR="etc/ghc"
--End PLIST_SUB--

--SUB_LIST--
 BOOT="@comment " NO_BOOT="" DOCS="" NO_DOCS="@comment " DYNAMIC="" NO_DYNAMIC="@comment " GMP="" NO_GMP="@comment " PROFILE="" NO_PROFILE="@comment " PYTHON_INCLUDEDIR=/usr/local/include/python3.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd15  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/ghc DOCSDIR=/usr/local/share/doc/ghc EXAMPLESDIR=/usr/local/share/examples/ghc  WWWDIR=/usr/local/www/ghc ETCDIR=/usr/local/etc/ghc
--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)  1048576
stack size              (kbytes, -s)  1048576
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 BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ghc-9.6.4 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.20.9_1.pkg
[main-arm64-default-job-09] Installing pkg-1.20.9_1...
[main-arm64-default-job-09] Extracting pkg-1.20.9_1: .......... done
===>   ghc-9.6.4 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ghc-9.6.4
===========================================================================
=======================<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 BSD3CLAUSE accepted by the user
=> ghc-9.6.4-src.tar.xz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://www.haskell.org/ghc/dist/9.6.4/ghc-9.6.4-src.tar.xz
ghc-9.6.4-src.tar.xz                                    28 MB   10 MBps    02s
=> hadrian-9.6.4-boot.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/arrowd/hadrian-9.6.4-boot.tar.gz
hadrian-9.6.4-boot.tar.gz                             1460 kB 2209 kBps    01s
===> Fetching all distfiles required by ghc-9.6.4 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by ghc-9.6.4 for building
=> SHA256 Checksum OK for ghc-9.6.4-src.tar.xz.
=> SHA256 Checksum OK for ghc-9.2.8-boot-aarch64-freebsd.tar.xz.
=> SHA256 Checksum OK for hadrian-9.6.4-boot.tar.gz.
===========================================================================
=======================<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 BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by ghc-9.6.4 for building
===>  Extracting for ghc-9.6.4
=> SHA256 Checksum OK for ghc-9.6.4-src.tar.xz.
=> SHA256 Checksum OK for ghc-9.2.8-boot-aarch64-freebsd.tar.xz.
=> SHA256 Checksum OK for hadrian-9.6.4-boot.tar.gz.
===========================================================================
=======================<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 ghc-9.6.4
===>  Applying FreeBSD patches for ghc-9.6.4 from /usr/ports/lang/ghc/files
/bin/rm -f -f /wrkdirs/usr/ports/lang/ghc/work/ghc-9.6.4/mk/build.mk
<snip>

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:60:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint32_t *' (aka 'unsigned int *') invalid)
       60 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acquire, memory_order_acquire); return old;
          |   ^                                       ~
   |
60 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acquire, memory_order_acquire); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:65:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint32_t *' (aka 'unsigned int *') invalid)
       65 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acq_rel, memory_order_acquire); return old;
          |   ^                                       ~
   |
65 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acq_rel, memory_order_acquire); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:70:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint32_t *' (aka 'unsigned int *') invalid)
       70 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_seq_cst, memory_order_seq_cst); return old;
          |   ^                                       ~
   |
70 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_seq_cst, memory_order_seq_cst); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:75:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid)
       75 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_relaxed, memory_order_relaxed); return old;
          |   ^                                       ~
   |
75 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_relaxed, memory_order_relaxed); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:80:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid)
       80 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acquire, memory_order_acquire); return old;
          |   ^                                       ~
   |
80 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acquire, memory_order_acquire); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:85:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid)
       85 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acq_rel, memory_order_acquire); return old;
          |   ^                                       ~
   |
85 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_acq_rel, memory_order_acquire); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:90:3: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint64_t *' (aka 'unsigned long *') invalid)
       90 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_seq_cst, memory_order_seq_cst); return old;
          |   ^                                       ~
   |
90 |   atomic_compare_exchange_strong_explicit(p, &old, new, memory_order_seq_cst, memory_order_seq_cst); return old;
   |   ^

/usr/include/stdatomic.h:238:2: error:
     note: expanded from macro 'atomic_compare_exchange_strong_explicit'
      238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
          |         ^                                    ~~~~~~
    |
238 |         __c11_atomic_compare_exchange_strong(object, expected, desired, \
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:95:10: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint8_t *' (aka 'unsigned char *') invalid)
       95 |   return atomic_exchange_explicit(p, v, memory_order_relaxed);
          |          ^                        ~
   |
95 |   return atomic_exchange_explicit(p, v, memory_order_relaxed);
   |          ^

/usr/include/stdatomic.h:245:2: error:
     note: expanded from macro 'atomic_exchange_explicit'
      245 |         __c11_atomic_exchange(object, desired, order)
          |         ^                     ~~~~~~
    |
245 |         __c11_atomic_exchange(object, desired, order)
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:100:10: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint8_t *' (aka 'unsigned char *') invalid)
      100 |   return atomic_exchange_explicit(p, v, memory_order_acquire);
          |          ^                        ~
    |
100 |   return atomic_exchange_explicit(p, v, memory_order_acquire);
    |          ^

/usr/include/stdatomic.h:245:2: error:
     note: expanded from macro 'atomic_exchange_explicit'
      245 |         __c11_atomic_exchange(object, desired, order)
          |         ^                     ~~~~~~
    |
245 |         __c11_atomic_exchange(object, desired, order)
    |  ^

In file included from rts/RtsSymbols.c:979:0: error: 

rts/ARMOutlineAtomicsSymbols.h:105:10: error:
     error: address argument to atomic operation must be a pointer to _Atomic type ('uint8_t *' (aka 'unsigned char *') invalid)
      105 |   return atomic_exchange_explicit(p, v, memory_order_release);
          |          ^                        ~
    |
105 |   return atomic_exchange_explicit(p, v, memory_order_release);
    |          ^

/usr/include/stdatomic.h:245:2: error:
     note: expanded from macro 'atomic_exchange_explicit'
      245 |         __c11_atomic_exchange(object, desired, order)
          |         ^                     ~~~~~~
    |
245 |         __c11_atomic_exchange(object, desired, order)
    |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
`clang' failed in phase `C Compiler'. (Exit code: 1)
Command failed
Build 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 in /usr/ports/lang/ghc