[package - main-amd64-default][lang/ghc] Failed for ghc-8.10.7 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 20 Nov 2021 01:51:41 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:        http://beefy18.nyi.freebsd.org/data/main-amd64-default/p420387d97886_sed6a9452be/logs/ghc-8.10.7.log
Build URL:      http://beefy18.nyi.freebsd.org/build.html?mastername=main-amd64-default&build=p420387d97886_sed6a9452be
Log:

=>> Building lang/ghc
build started at Sat Nov 20 01:28:07 UTC 2021
port directory: /usr/ports/lang/ghc
package name: ghc-8.10.7
building for: FreeBSD main-amd64-default-job-07 14.0-CURRENT FreeBSD 14.0-CURRENT 1400042 amd64
maintained by: haskell@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-21-g883afb07
Host OSVERSION: 1400008
Jail OSVERSION: 1400042
Job Id: 07




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



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400042
UNAME_v=FreeBSD 14.0-CURRENT 1400042
UNAME_r=14.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
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-21-g883afb07
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/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 ghc-8.10.7:
     DOCS=on: Install HTML documentation
     DYNAMIC=on: Add support for dynamic linking
     GMP=on: Use GNU Multi-precision Library for big integers support
     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--
--with-system-libffi --with-ffi-includes=/usr/local/include --with-ffi-libraries=/usr/local/lib --with-gmp-includes=/usr/local/include --with-gmp-libraries=/usr/local/lib GHC=/wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7-boot/bin/ghc-8.10.7 --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PATH=/wrkdirs/usr/ports/lang/ghc/work/slaves_prefix/bin:/wrkdirs/usr/ports/lang/ghc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl  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" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local" 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--
PATH=/wrkdirs/usr/ports/lang/ghc/work/slaves_prefix/bin:/wrkdirs/usr/ports/lang/ghc/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin 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" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES 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 -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-isystem /usr/local/include"  LDFLAGS=" -fstack-protector-strong -L/usr/local/lib " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 06
 44"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
GHC_VERSION=8.10.7 CABAL_VERSION=3.2.1.0 PORTDOCS="" BOOT="@comment " NO_BOOT="" DOCS="" NO_DOCS="@comment " DYNAMIC="" NO_DYNAMIC="@comment " NODYNAMIC="@comment " GMP="" NO_GMP="@comment " GMP="" SIMPLE="@comment " PROFILE="" NO_PROFILE="@comment " OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.32.1  PERL_VER=5.32  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.32 DOCSDIR="share/doc/ghc-8.10.7"  EXAMPLESDIR="share/examples/ghc-8.10.7"  DATADIR="share/ghc-8.10.7"  WWWDIR="www/ghc"  ETCDIR="etc/ghc"
--End PLIST_SUB--

--SUB_LIST--
GHC_VERSION=8.10.7  NCURSESINC="/usr/include" NCURSESLIB="/usr/lib"  CFLAGS="-O2 -pipe  " BOOT="@comment " NO_BOOT="" HSC2HS=/wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7-boot/bin/hsc2hs DOCS="" NO_DOCS="@comment " DYNAMIC="" NO_DYNAMIC="@comment " WITH_DYNAMIC="YES" GMP="" NO_GMP="@comment " INTEGER_LIBRARY="integer-gmp" PROFILE="" NO_PROFILE="@comment " WITH_PROFILE="YES" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/ghc-8.10.7 DOCSDIR=/usr/local/share/doc/ghc-8.10.7 EXAMPLESDIR=/usr/local/share/examples/ghc-8.10.7  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
#### /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_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-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_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=14.0-CURRENT
OSREL=14.0
OSVERSION=1400042
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
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)  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   >============================
===>  License BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   ghc-8.10.7 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.17.5.pkg
[main-amd64-default-job-07] Installing pkg-1.17.5...
[main-amd64-default-job-07] Extracting pkg-1.17.5: .......... done
===>   ghc-8.10.7 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ghc-8.10.7
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by ghc-8.10.7 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by ghc-8.10.7 for building
=> SHA256 Checksum OK for ghc-8.10.7-src.tar.xz.
=> SHA256 Checksum OK for hscolour-1.24.4.tar.gz.
=> SHA256 Checksum OK for ghc-8.10.7-boot-amd64-freebsd.tar.xz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by ghc-8.10.7 for building
===>  Extracting for ghc-8.10.7
=> SHA256 Checksum OK for ghc-8.10.7-src.tar.xz.
=> SHA256 Checksum OK for hscolour-1.24.4.tar.gz.
=> SHA256 Checksum OK for ghc-8.10.7-boot-amd64-freebsd.tar.xz.
===========================================================================
=======================<phase: patch-depends  >============================
===>   ghc-8.10.7 depends on file: /usr/local/bin/iconv - not found
===>   Installing existing package /packages/All/libiconv-1.16.pkg
<snip>
  rts_dist_HC rts/dist/build/RtsSymbolInfo.o
  rts_dist_HC rts/dist/build/RtsSymbols.o
  rts_dist_HC rts/dist/build/RtsUtils.o
  rts_dist_HC rts/dist/build/Schedule.o
  rts_dist_HC rts/dist/build/Sparks.o
  rts_dist_HC rts/dist/build/SpinLock.o
  rts_dist_HC rts/dist/build/StableName.o
  rts_dist_HC rts/dist/build/StablePtr.o
  rts_dist_HC rts/dist/build/StaticPtrTable.o
  rts_dist_HC rts/dist/build/Stats.o
  rts_dist_HC rts/dist/build/StgCRun.o
  rts_dist_HC rts/dist/build/StgPrimFloat.o
  rts_dist_HC rts/dist/build/STM.o
  rts_dist_HC rts/dist/build/Task.o
  rts_dist_HC rts/dist/build/ThreadLabels.o
  rts_dist_HC rts/dist/build/ThreadPaused.o
  rts_dist_HC rts/dist/build/Threads.o
  rts_dist_HC rts/dist/build/Ticky.o
  rts_dist_HC rts/dist/build/Timer.o
  rts_dist_HC rts/dist/build/TopHandler.o
  rts_dist_HC rts/dist/build/Trace.o
  rts_dist_HC rts/dist/build/TraverseHeap.o
  rts_dist_HC rts/dist/build/Weak.o
  rts_dist_HC rts/dist/build/WSDeque.o
"inplace/bin/mkdirhier" rts/dist/build/hooks//.
"inplace/bin/mkdirhier" rts/dist/build/sm//.
"inplace/bin/mkdirhier" rts/dist/build/eventlog//.
"inplace/bin/mkdirhier" rts/dist/build/linker//.
"inplace/bin/mkdirhier" rts/dist/build/linker/macho//.
"inplace/bin/mkdirhier" rts/dist/build/posix//.
  rts_dist_HC rts/dist/build/Apply.o
  rts_dist_HC rts/dist/build/Compact.o
  rts_dist_HC rts/dist/build/Exception.o
  rts_dist_HC rts/dist/build/HeapStackCheck.o
  rts_dist_HC rts/dist/build/PrimOps.o
  rts_dist_HC rts/dist/build/StgMiscClosures.o
  rts_dist_HC rts/dist/build/StgStartup.o
  rts_dist_HC rts/dist/build/StgStdThunks.o
  rts_dist_HC rts/dist/build/Updates.o
  HC [stage 0] utils/genapply/dist/build/Main.o
"inplace/bin/mkdirhier" utils/genapply/dist/build/tmp//.
  rts_dist_HC rts/dist/build/Adjustor.p_o
  rts_dist_HC rts/dist/build/Arena.p_o
  rts_dist_HC rts/dist/build/Capability.p_o
  rts_dist_HC rts/dist/build/CheckUnload.p_o
  rts_dist_HC rts/dist/build/ClosureFlags.p_o
  rts_dist_HC rts/dist/build/Disassembler.p_o
  rts_dist_HC rts/dist/build/FileLock.p_o
  rts_dist_HC rts/dist/build/ForeignExports.p_o
  rts_dist_HC rts/dist/build/fs.p_o
  rts_dist_HC rts/dist/build/Globals.p_o
  rts_dist_HC rts/dist/build/Hash.p_o
  rts_dist_HC rts/dist/build/Heap.p_o
  rts_dist_HC rts/dist/build/Hpc.p_o
  rts_dist_HC rts/dist/build/HsFFI.p_o
  rts_dist_HC rts/dist/build/Inlines.p_o
  rts_dist_HC rts/dist/build/Interpreter.p_o
  rts_dist_HC rts/dist/build/LdvProfile.p_o
  rts_dist_HC rts/dist/build/Libdw.p_o
  rts_dist_HC rts/dist/build/LibdwPool.p_o
  rts_dist_HC rts/dist/build/Linker.p_o
  rts_dist_HC rts/dist/build/Messages.p_o
  rts_dist_HC rts/dist/build/OldARMAtomic.p_o
  rts_dist_HC rts/dist/build/PathUtils.p_o
  rts_dist_HC rts/dist/build/Pool.p_o
  rts_dist_HC rts/dist/build/Printer.p_o
  rts_dist_HC rts/dist/build/ProfHeap.p_o
  rts_dist_HC rts/dist/build/ProfilerReport.p_o
  rts_dist_HC rts/dist/build/ProfilerReportJson.p_o
  rts_dist_HC rts/dist/build/Profiling.p_o
  rts_dist_HC rts/dist/build/Proftimer.p_o
  rts_dist_HC rts/dist/build/RaiseAsync.p_o
  rts_dist_HC rts/dist/build/RetainerProfile.p_o
  rts_dist_HC rts/dist/build/RetainerSet.p_o
  rts_dist_HC rts/dist/build/RtsAPI.p_o
  rts_dist_HC rts/dist/build/RtsDllMain.p_o
  rts_dist_HC rts/dist/build/RtsFlags.p_o
  rts_dist_HC rts/dist/build/RtsMain.p_o
  rts_dist_HC rts/dist/build/RtsMessages.p_o
  rts_dist_HC rts/dist/build/RtsStartup.p_o
  rts_dist_HC rts/dist/build/RtsSymbolInfo.p_o
  rts_dist_HC rts/dist/build/RtsSymbols.p_o
  rts_dist_HC rts/dist/build/RtsUtils.p_o
  rts_dist_HC rts/dist/build/Schedule.p_o
  rts_dist_HC rts/dist/build/Sparks.p_o
  rts_dist_HC rts/dist/build/SpinLock.p_o
  rts_dist_HC rts/dist/build/StableName.p_o
  rts_dist_HC rts/dist/build/StablePtr.p_o
  rts_dist_HC rts/dist/build/StaticPtrTable.p_o
  rts_dist_HC rts/dist/build/Stats.p_o
  rts_dist_HC rts/dist/build/StgCRun.p_o
  rts_dist_HC rts/dist/build/StgPrimFloat.p_o
  rts_dist_HC rts/dist/build/STM.p_o
  rts_dist_HC rts/dist/build/Task.p_o
  rts_dist_HC rts/dist/build/ThreadLabels.p_o
  rts_dist_HC rts/dist/build/ThreadPaused.p_o
  rts_dist_HC rts/dist/build/Threads.p_o
  rts_dist_HC rts/dist/build/Ticky.p_o
  rts_dist_HC rts/dist/build/Timer.p_o
  rts_dist_HC rts/dist/build/TopHandler.p_o
  rts_dist_HC rts/dist/build/Trace.p_o
  rts_dist_HC rts/dist/build/TraverseHeap.p_o
  rts_dist_HC rts/dist/build/Weak.p_o
  rts_dist_HC rts/dist/build/WSDeque.p_o
  rts_dist_HC rts/dist/build/hooks/FlagDefaults.p_o
  rts_dist_HC rts/dist/build/hooks/LongGCSync.p_o
  rts_dist_HC rts/dist/build/hooks/MallocFail.p_o
  rts_dist_HC rts/dist/build/hooks/OnExit.p_o
  rts_dist_HC rts/dist/build/hooks/OutOfHeap.p_o
  rts_dist_HC rts/dist/build/hooks/StackOverflow.p_o
  rts_dist_HC rts/dist/build/sm/BlockAlloc.p_o
  rts_dist_HC rts/dist/build/sm/CNF.p_o
  rts_dist_HC rts/dist/build/sm/Compact.p_o
  rts_dist_HC rts/dist/build/sm/Evac_thr.p_o
  rts_dist_HC rts/dist/build/sm/Evac.p_o
  rts_dist_HC rts/dist/build/sm/GC.p_o
  rts_dist_HC rts/dist/build/sm/GCAux.p_o
  rts_dist_HC rts/dist/build/sm/GCUtils.p_o
  rts_dist_HC rts/dist/build/sm/MarkWeak.p_o
  rts_dist_HC rts/dist/build/sm/MBlock.p_o
  rts_dist_HC rts/dist/build/sm/NonMoving.p_o
  rts_dist_HC rts/dist/build/sm/NonMovingCensus.p_o
  rts_dist_HC rts/dist/build/sm/NonMovingMark.p_o
  rts_dist_HC rts/dist/build/sm/NonMovingScav.p_o
  rts_dist_HC rts/dist/build/sm/NonMovingShortcut.p_o
  rts_dist_HC rts/dist/build/sm/NonMovingSweep.p_o
  rts_dist_HC rts/dist/build/sm/Sanity.p_o
  rts_dist_HC rts/dist/build/sm/Scav_thr.p_o
  rts_dist_HC rts/dist/build/sm/Scav.p_o
  rts_dist_HC rts/dist/build/sm/Storage.p_o
  rts_dist_HC rts/dist/build/sm/Sweep.p_o
  rts_dist_HC rts/dist/build/eventlog/EventLog.p_o
  rts_dist_HC rts/dist/build/eventlog/EventLogWriter.p_o
  rts_dist_HC rts/dist/build/linker/CacheFlush.p_o
  rts_dist_HC rts/dist/build/linker/elf_got.p_o
  rts_dist_HC rts/dist/build/linker/elf_plt_aarch64.p_o
  rts_dist_HC rts/dist/build/linker/elf_plt_arm.p_o
  rts_dist_HC rts/dist/build/linker/elf_plt.p_o
  rts_dist_HC rts/dist/build/linker/elf_reloc_aarch64.p_o
  rts_dist_HC rts/dist/build/linker/elf_reloc.p_o
  rts_dist_HC rts/dist/build/linker/elf_util.p_o
  rts_dist_HC rts/dist/build/linker/Elf.p_o
  rts_dist_HC rts/dist/build/linker/LoadArchive.p_o
  rts_dist_HC rts/dist/build/linker/M32Alloc.p_o
  rts_dist_HC rts/dist/build/linker/MachO.p_o
  rts_dist_HC rts/dist/build/linker/PEi386.p_o
  rts_dist_HC rts/dist/build/linker/SymbolExtras.p_o
  rts_dist_HC rts/dist/build/linker/macho/plt_aarch64.p_o
  rts_dist_HC rts/dist/build/linker/macho/plt.p_o
  rts_dist_HC rts/dist/build/posix/GetEnv.p_o
  rts_dist_HC rts/dist/build/posix/GetTime.p_o
  rts_dist_HC rts/dist/build/posix/Itimer.p_o
  rts_dist_HC rts/dist/build/posix/OSMem.p_o
  rts_dist_HC rts/dist/build/posix/OSThreads.p_o

rts/posix/OSThreads.c:314:5: error:
     error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'?
        cpu_set_t cs;
        ^~~~~~~~~
        cpuset_t
    |
314 |     cpu_set_t cs;
    |     ^

/usr/include/sys/_cpuset.h:50:24: error:
     note: 'cpuset_t' declared here
   |
50 | typedef struct _cpuset cpuset_t;
   |                        ^
typedef struct _cpuset cpuset_t;
                       ^

rts/posix/OSThreads.c:322:5: error:
     warning: implicit declaration of function 'sched_setaffinity' is invalid in C99 [-Wimplicit-function-declaration]
        sched_setaffinity(0, sizeof(cpu_set_t), &cs);
        ^
    |
322 |     sched_setaffinity(0, sizeof(cpu_set_t), &cs);
    |     ^

rts/posix/OSThreads.c:322:33: error:
     error: use of undeclared identifier 'cpu_set_t'
        sched_setaffinity(0, sizeof(cpu_set_t), &cs);
                                    ^
    |
322 |     sched_setaffinity(0, sizeof(cpu_set_t), &cs);
    |                                 ^
1 warning and 2 errors generated.
`cc' failed in phase `C Compiler'. (Exit code: 1)
gmake[2]: *** [rts/ghc.mk:325: rts/dist/build/posix/OSThreads.p_o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [Makefile:128: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7'
===> 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