[exp - 143amd64-default-build-as-user][lang/ghc] Failed for ghc-9.8.4 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Wed, 08 Oct 2025 01:27:06 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/package19/data/143amd64-default-build-as-user/69a7a6d3a9e1/logs/ghc-9.8.4.log
Build URL:      https://pkg-status.freebsd.org/package19/build.html?mastername=143amd64-default-build-as-user&build=69a7a6d3a9e1
Log:

=>> Building lang/ghc
build started at Wed Oct  8 00:45:31 -00 2025
port directory: /usr/ports/lang/ghc
package name: ghc-9.8.4
building for: FreeBSD 143amd64-default-build-as-user-job-04 14.3-RELEASE-p4 FreeBSD 14.3-RELEASE-p4 amd64
maintained by: haskell@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 9357 Sep  7 00:02 /usr/ports/lang/ghc/Makefile
Ports top last git commit: 69a7a6d3a9
Ports top unclean checkout: no
Port dir last git commit: 6ebfb9059f
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.3-6-gb115e081
Host OSVERSION: 1600000
Jail OSVERSION: 1403000
Job Id: 04

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1403000
UNAME_v=FreeBSD 14.3-RELEASE-p4
UNAME_r=14.3-RELEASE-p4
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.3-6-gb115e081
MASTERMNT=/poudriere/data/.m/143amd64-default-build-as-user/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
GID=0
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
UID=0
PWD=/poudriere/data/.m/143amd64-default-build-as-user/04/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=143amd64-default-build-as-user
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/poudriere/data/.m/143amd64-default-build-as-user/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.3-6-gb115e081
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.8.4:
     DOCS=on: Build and install HTML documentation
     DYNAMIC=on: Add support for dynamic linking
     GMP=on: Use GNU Multi-precision Library from Ports
     PDFDOCS=off: Build and install PDF documentation
     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-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 --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
CC=cc CXX=c++ CPP=cpp GHC=/wrkdirs/usr/ports/lang/ghc/work/ghc-boot-install/bin/ghc-9.6.7  ALEX=/usr/bin/true HAPPY=/usr/bin/true MAKE=/usr/local/bin/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.11" 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 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 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" " 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="instal
l  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
CABAL_VERSION=3.10.3.0 ARRAY_VERSION=0.5.8.0 BASE_VERSION=4.19.2.0 BINARY_VERSION=0.8.9.1 BYTESTRING_VERSION=0.12.1.0 CONTAINERS_VERSION=0.6.8 DEEPSEQ_VERSION=1.5.1.0 DIRECTORY_VERSION=1.3.8.5 EXCEPTIONS_VERSION=0.10.7 FILEPATH_VERSION=1.4.301.0 GHC_VERSION=9.8.4 GHC-BIGNUM_VERSION=1.3 GHC-COMPACT_VERSION=0.1.0.0 GHC-PRIM_VERSION=0.11.0 HASKELINE_VERSION=0.8.2.1 HPC_VERSION=0.7.0.0 INTEGER-GMP_VERSION=1.1 MTL_VERSION=2.3.1 PARSEC_VERSION=3.1.17.0 PRETTY_VERSION=1.1.3.6 PROCESS_VERSION=1.6.25.0 STM_VERSION=2.5.3.1 SEMAPHORE-COMPAT_VERSION=1.0.0 TEMPLATE-HASKELL_VERSION=2.21.0.0 TERMINFO_VERSION=0.4.1.6 TEXT_VERSION=2.1.1 TIME_VERSION=1.12.2 TRANSFORMERS_VERSION=0.6.1.0 UNIX_VERSION=2.8.6.0 XHTML_VERSION=3000.2.2.1 GHC_ARCH=x86_64 PORTDOCS="" BOOT="@comment " NO_BOOT="" DOCS="" NO_DOCS="@comment " DYNAMIC="" NO_DYNAMIC="@comment " GMP="" NO_GMP="@comment " PDFDOCS="@comment " NO_PDFDOCS="" PROFILE="" NO_PROFILE="@comment " PYTHON_INCLUDEDIR=include/python3.11  PYTHON_LIBDIR=li
b/python3.11  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_BASESUFFIX=311  PYTHON_TAG=.cpython-311  PYTHON_SOABI=.cpython-311  PYTHON_VER=3.11  PYTHON_BASEVER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" OSREL=14.3 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.42.0  PERL_VER=5.42  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.42 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 " PDFDOCS="@comment " NO_PDFDOCS="" PROFILE="" NO_PROFILE="@comment " PYTHON_INCLUDEDIR=/usr/local/include/python3.11  PYTHON_LIBDIR=/usr/local/lib/python3.11  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_BASESUFFIX=311  PYTHON_TAG=.cpython-311  PYTHON_SOABI=.cpython-311  PYTHON_VER=3.11  PYTHON_BASEVER=3.11  PYTHON_VERSION=python3.11 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
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
---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=nobody UID=65534 GID=65534
===>  License BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ghc-9.8.4 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.3.1.pkg
[143amd64-default-build-as-user-job-04] Installing pkg-2.3.1...
[143amd64-default-build-as-user-job-04] Extracting pkg-2.3.1: .......... done
===>   ghc-9.8.4 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ghc-9.8.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
===> Fetching all distfiles required by ghc-9.8.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.8.4 for building
=> SHA256 Checksum OK for ghc-9.8.4-src.tar.xz.
=> SHA256 Checksum OK for ghc-9.6.7-boot-amd64-freebsd.tar.xz.
=> SHA256 Checksum OK for hadrian-9.8.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=nobody UID=65534 GID=65534
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by ghc-9.8.4 for building
===>  Extracting for ghc-9.8.4
=> SHA256 Checksum OK for ghc-9.8.4-src.tar.xz.
=> SHA256 Checksum OK for ghc-9.6.7-boot-amd64-freebsd.tar.xz.
=> SHA256 Checksum OK for hadrian-9.8.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=nobody UID=65534 GID=65534
===>  Patching for ghc-9.8.4
===>  Applying FreeBSD patches for ghc-9.8.4 from /usr/ports/lang/ghc/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ghc-9.8.4 depends on file: /usr/local/lib/libgmp.so - not found
===>   Installing existing package /packages/All/gmp-6.3.0.pkg
[143amd64-default-build-as-user-job-04] Installing gmp-6.3.0...
[143amd64-default-build-as-user-job-04] `-- Installing indexinfo-0.3.1_1...
[143amd64-default-build-as-user-job-04] `-- Extracting indexinfo-0.3.1_1: .... done
[143amd64-default-build-as-user-job-04] Extracting gmp-6.3.0: .......... done
===>   ghc-9.8.4 depends on file: /usr/local/lib/libgmp.so - found
===>   Returning to build of ghc-9.8.4
===>   ghc-9.8.4 depends on executable: sphinx-build - not found
===>   Installing existing package /packages/All/py311-sphinx-5.3.0_3,1.pkg
[143amd64-default-build-as-user-job-04] Installing py311-sphinx-5.3.0_3,1...
[143amd64-default-build-as-user-job-04] `-- Installing ca_root_nss-3.115_3...
[143amd64-default-build-as-user-job-04] `-- Extracting ca_root_nss-3.115_3: ....... done
[143amd64-default-build-as-user-job-04] `-- Installing py311-Babel-2.17.0_1...
[143amd64-default-build-as-user-job-04] |   `-- Installing python311-3.11.13_1...
[143amd64-default-build-as-user-job-04] |   | `-- Installing gettext-runtime-0.23.1...
<snip>
| Run Ghc CompileCWithGhc Stage1: rts/hooks/StackOverflow.c => _build/stage1/rts/build/c/hooks/StackOverflow.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Scav.c => _build/stage1/rts/build/c/sm/Scav.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/StablePtr.c => _build/stage1/rts/build/c/StablePtr.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/OutOfHeap.c => _build/stage1/rts/build/c/hooks/OutOfHeap.o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_reloc_aarch64.c => _build/stage1/rts/build/c/linker/elf_reloc_aarch64.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/StableName.c => _build/stage1/rts/build/c/StableName.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Hash.c => _build/stage1/rts/build/c/Hash.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/PEi386.c => _build/stage1/rts/build/c/linker/PEi386.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/MachO.c => _build/stage1/rts/build/c/linker/MachO.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/GC.c => _build/stage1/rts/build/c/sm/GC.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/OSThreads.c => _build/stage1/rts/build/c/posix/OSThreads.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Sweep.c => _build/stage1/rts/build/c/sm/Sweep.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/Proftimer.c => _build/stage1/rts/build/c/Proftimer.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/STM.c => _build/stage1/rts/build/c/STM.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/IOManager.c => _build/stage1/rts/build/c/IOManager.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingCensus.c => _build/stage1/rts/build/c/sm/NonMovingCensus.o
| Run Ghc CompileHs Stage1: compiler/GHC/Tc/Errors/Hole/Plugin.hs-boot => _build/stage1/compiler/build/GHC/Tc/Errors/Hole/Plugin.o-boot
| Run Ghc CompileCWithGhc Stage1: rts/hooks/OutOfHeap.c => _build/stage1/rts/build/c/hooks/OutOfHeap.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Storage.c => _build/stage1/rts/build/c/sm/Storage.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingShortcut.c => _build/stage1/rts/build/c/sm/NonMovingShortcut.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/CNF.c => _build/stage1/rts/build/c/sm/CNF.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/StackOverflow.c => _build/stage1/rts/build/c/hooks/StackOverflow.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/OldARMAtomic.c => _build/stage1/rts/build/c/OldARMAtomic.o
| Run Ghc CompileCWithGhc Stage1: rts/RtsAPI.c => _build/stage1/rts/build/c/RtsAPI.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/MBlock.c => _build/stage1/rts/build/c/sm/MBlock.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/MallocFail.c => _build/stage1/rts/build/c/hooks/MallocFail.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/Globals.c => _build/stage1/rts/build/c/Globals.o
| Run Ghc CompileCWithGhc Stage1: rts/Task.c => _build/stage1/rts/build/c/Task.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/OnExit.c => _build/stage1/rts/build/c/hooks/OnExit.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_plt.c => _build/stage1/rts/build/c/linker/elf_plt.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/SymbolExtras.c => _build/stage1/rts/build/c/linker/SymbolExtras.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/ThreadLabels.c => _build/stage1/rts/build/c/ThreadLabels.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/CloneStack.c => _build/stage1/rts/build/c/CloneStack.o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingSweep.c => _build/stage1/rts/build/c/sm/NonMovingSweep.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingMark.c => _build/stage1/rts/build/c/sm/NonMovingMark.o
| Run Ghc CompileCWithGhc Stage1: rts/CloneStack.c => _build/stage1/rts/build/c/CloneStack.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/MachO.c => _build/stage1/rts/build/c/linker/MachO.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/adjustor/AdjustorPool.c => _build/stage1/rts/build/c/adjustor/AdjustorPool.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/GCUtils.c => _build/stage1/rts/build/c/sm/GCUtils.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/Ticker.c => _build/stage1/rts/build/c/posix/Ticker.o
| Run Ghc CompileCWithGhc Stage1: rts/LibdwPool.c => _build/stage1/rts/build/c/LibdwPool.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/MBlock.c => _build/stage1/rts/build/c/sm/MBlock.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsUtils.c => _build/stage1/rts/build/c/RtsUtils.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsStartup.c => _build/stage1/rts/build/c/RtsStartup.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/HsFFI.c => _build/stage1/rts/build/c/HsFFI.o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/MallocFail.c => _build/stage1/rts/build/c/hooks/MallocFail.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/adjustor/AdjustorPool.c => _build/stage1/rts/build/c/adjustor/AdjustorPool.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Disassembler.c => _build/stage1/rts/build/c/Disassembler.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsDllMain.c => _build/stage1/rts/build/c/RtsDllMain.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Task.c => _build/stage1/rts/build/c/Task.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Evac.c => _build/stage1/rts/build/c/sm/Evac.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/Threads.c => _build/stage1/rts/build/c/Threads.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/TSANUtils.c => _build/stage1/rts/build/c/TSANUtils.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/Timer.c => _build/stage1/rts/build/c/Timer.p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/MachO.c => _build/stage1/rts/build/c/linker/MachO.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/InitFini.c => _build/stage1/rts/build/c/linker/InitFini.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingAllocate.c => _build/stage1/rts/build/c/sm/NonMovingAllocate.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Printer.c => _build/stage1/rts/build/c/Printer.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/Messages.c => _build/stage1/rts/build/c/Messages.o
| Run Ghc CompileCWithGhc Stage1: rts/Timer.c => _build/stage1/rts/build/c/Timer.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/TopHandler.c => _build/stage1/rts/build/c/TopHandler.p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/LoadNativeObjPosix.c => _build/stage1/rts/build/c/linker/LoadNativeObjPosix.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/Signals.c => _build/stage1/rts/build/c/posix/Signals.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Capability.c => _build/stage1/rts/build/c/Capability.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/Globals.c => _build/stage1/rts/build/c/Globals.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Sanity.c => _build/stage1/rts/build/c/sm/Sanity.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/FlagDefaults.c => _build/stage1/rts/build/c/hooks/FlagDefaults.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/BlockAlloc.c => _build/stage1/rts/build/c/sm/BlockAlloc.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_plt_arm.c => _build/stage1/rts/build/c/linker/elf_plt_arm.o
| Run Ghc CompileCWithGhc Stage1: rts/posix/OSMem.c => _build/stage1/rts/build/c/posix/OSMem.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/eventlog/EventLogWriter.c => _build/stage1/rts/build/c/eventlog/EventLogWriter.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/ExecPage.c => _build/stage1/rts/build/c/ExecPage.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/IOManager.c => _build/stage1/rts/build/c/IOManager.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Storage.c => _build/stage1/rts/build/c/sm/Storage.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsSymbols.c => _build/stage1/rts/build/c/RtsSymbols.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/OSThreads.c => _build/stage1/rts/build/c/posix/OSThreads.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Sanity.c => _build/stage1/rts/build/c/sm/Sanity.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsMain.c => _build/stage1/rts/build/c/RtsMain.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Storage.c => _build/stage1/rts/build/c/sm/Storage.p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingCensus.c => _build/stage1/rts/build/c/sm/NonMovingCensus.p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/LoadNativeObjPosix.c => _build/stage1/rts/build/c/linker/LoadNativeObjPosix.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/OnExit.c => _build/stage1/rts/build/c/hooks/OnExit.thr_p_o
| Run Ghc CompileCWithGhc Stage1: libraries/ghc-prim/cbits/clz.c => _build/stage1/libraries/ghc-prim/build/c/cbits/clz.o
| Run Ghc CompileCWithGhc Stage1: rts/ThreadLabels.c => _build/stage1/rts/build/c/ThreadLabels.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/macho/plt_aarch64.c => _build/stage1/rts/build/c/linker/macho/plt_aarch64.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/Select.c => _build/stage1/rts/build/c/posix/Select.p_o
| Run Ghc CompileCWithGhc Stage1: rts/Arena.c => _build/stage1/rts/build/c/Arena.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/StgPrimFloat.c => _build/stage1/rts/build/c/StgPrimFloat.thr_o
| Run Ghc CompileHs Stage1: rts/PrimOps.cmm => _build/stage1/rts/build/cmm/PrimOps.o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Storage.c => _build/stage1/rts/build/c/sm/Storage.o
| Run Ghc CompileCWithGhc Stage1: rts/ClosureFlags.c => _build/stage1/rts/build/c/ClosureFlags.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingShortcut.c => _build/stage1/rts/build/c/sm/NonMovingShortcut.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/GetTime.c => _build/stage1/rts/build/c/posix/GetTime.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Compact.c => _build/stage1/rts/build/c/sm/Compact.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Pool.c => _build/stage1/rts/build/c/Pool.o
| Run Ghc CompileCWithGhc Stage1: rts/linker/macho/plt_aarch64.c => _build/stage1/rts/build/c/linker/macho/plt_aarch64.p_o
| Run Ghc CompileCWithGhc Stage1: rts/IOManager.c => _build/stage1/rts/build/c/IOManager.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/M32Alloc.c => _build/stage1/rts/build/c/linker/M32Alloc.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/GetTime.c => _build/stage1/rts/build/c/posix/GetTime.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/StableName.c => _build/stage1/rts/build/c/StableName.p_o
| Run Ghc CompileCWithGhc Stage1: rts/Printer.c => _build/stage1/rts/build/c/Printer.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/CacheFlush.c => _build/stage1/rts/build/c/linker/CacheFlush.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsMain.c => _build/stage1/rts/build/c/RtsMain.p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_got.c => _build/stage1/rts/build/c/linker/elf_got.o
| Run Ghc CompileCWithGhc Stage1: libraries/ghc-prim/cbits/word2float.c => _build/stage1/libraries/ghc-prim/build/c/cbits/word2float.o
| Run Ghc CompileCWithGhc Stage1: rts/SpinLock.c => _build/stage1/rts/build/c/SpinLock.o
| Run Ghc CompileCWithGhc Stage1: rts/PathUtils.c => _build/stage1/rts/build/c/PathUtils.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/Elf.c => _build/stage1/rts/build/c/linker/Elf.thr_o
| Run Ghc CompileHs Stage1: rts/PrimOps.cmm => _build/stage1/rts/build/cmm/PrimOps.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/PEi386.c => _build/stage1/rts/build/c/linker/PEi386.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/adjustor/AdjustorPool.c => _build/stage1/rts/build/c/adjustor/AdjustorPool.p_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMoving.c => _build/stage1/rts/build/c/sm/NonMoving.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_tlsgd.c => _build/stage1/rts/build/c/linker/elf_tlsgd.o
| Run Ghc CompileCWithGhc Stage1: rts/RtsDllMain.c => _build/stage1/rts/build/c/RtsDllMain.o
| Run Ghc CompileCWithGhc Stage1: rts/linker/PEi386.c => _build/stage1/rts/build/c/linker/PEi386.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Messages.c => _build/stage1/rts/build/c/Messages.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/MallocFail.c => _build/stage1/rts/build/c/hooks/MallocFail.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsDllMain.c => _build/stage1/rts/build/c/RtsDllMain.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/HsFFI.c => _build/stage1/rts/build/c/HsFFI.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsStartup.c => _build/stage1/rts/build/c/RtsStartup.p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/M32Alloc.c => _build/stage1/rts/build/c/linker/M32Alloc.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/GetEnv.c => _build/stage1/rts/build/c/posix/GetEnv.p_o
| Run Ghc CompileCWithGhc Stage1: rts/StgCRun.c => _build/stage1/rts/build/c/StgCRun.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/StgPrimFloat.c => _build/stage1/rts/build/c/StgPrimFloat.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/ForeignExports.c => _build/stage1/rts/build/c/ForeignExports.thr_debug_p_o
| Run Ghc CompileHs Stage1: libraries/ghc-prim/GHC/Tuple.hs => _build/stage1/libraries/ghc-prim/build/GHC/Tuple.o
| Run Ghc CompileCWithGhc Stage1: rts/linker/M32Alloc.c => _build/stage1/rts/build/c/linker/M32Alloc.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/ProfHeap.c => _build/stage1/rts/build/c/ProfHeap.debug_p_o
| Run Ghc CompileHs Stage1: libraries/ghc-prim/GHC/Debug.hs => _build/stage1/libraries/ghc-prim/build/GHC/Debug.o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Scav.c => _build/stage1/rts/build/c/sm/Scav.p_o
| Run Ghc CompileCWithGhc Stage1: rts/Timer.c => _build/stage1/rts/build/c/Timer.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/ExecPage.c => _build/stage1/rts/build/c/ExecPage.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/CheckUnload.c => _build/stage1/rts/build/c/CheckUnload.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_got.c => _build/stage1/rts/build/c/linker/elf_got.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/StgCRun.c => _build/stage1/rts/build/c/StgCRun.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/StaticPtrTable.c => _build/stage1/rts/build/c/StaticPtrTable.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsSymbolInfo.c => _build/stage1/rts/build/c/RtsSymbolInfo.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_util.c => _build/stage1/rts/build/c/linker/elf_util.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/OutOfHeap.c => _build/stage1/rts/build/c/hooks/OutOfHeap.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/ZeroSlop.c => _build/stage1/rts/build/c/ZeroSlop.thr_o
| Run Ghc CompileCWithGhc Stage1: rts/Globals.c => _build/stage1/rts/build/c/Globals.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/ThreadLabels.c => _build/stage1/rts/build/c/ThreadLabels.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMoving.c => _build/stage1/rts/build/c/sm/NonMoving.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/ZeroSlop.c => _build/stage1/rts/build/c/ZeroSlop.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/StablePtr.c => _build/stage1/rts/build/c/StablePtr.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/Inlines.c => _build/stage1/rts/build/c/Inlines.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsUtils.c => _build/stage1/rts/build/c/RtsUtils.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/Threads.c => _build/stage1/rts/build/c/Threads.thr_debug_o
| Run Ghc CompileCWithGhc Stage1: rts/ReportMemoryMap.c => _build/stage1/rts/build/c/ReportMemoryMap.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingSweep.c => _build/stage1/rts/build/c/sm/NonMovingSweep.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/ClosureSize.c => _build/stage1/rts/build/c/ClosureSize.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/NonMovingCensus.c => _build/stage1/rts/build/c/sm/NonMovingCensus.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_reloc_aarch64.c => _build/stage1/rts/build/c/linker/elf_reloc_aarch64.o
| Run Ghc CompileHs Stage1: rts/PrimOps.cmm => _build/stage1/rts/build/cmm/PrimOps.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/Capability.c => _build/stage1/rts/build/c/Capability.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/Arena.c => _build/stage1/rts/build/c/Arena.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/OutOfHeap.c => _build/stage1/rts/build/c/hooks/OutOfHeap.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/GCUtils.c => _build/stage1/rts/build/c/sm/GCUtils.p_o
| Run Ghc CompileCWithGhc Stage1: rts/Globals.c => _build/stage1/rts/build/c/Globals.thr_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_reloc.c => _build/stage1/rts/build/c/linker/elf_reloc.thr_debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/sm/MBlock.c => _build/stage1/rts/build/c/sm/MBlock.debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/OldARMAtomic.c => _build/stage1/rts/build/c/OldARMAtomic.debug_o
| Run Ghc CompileCWithGhc Stage1: rts/hooks/LongGCSync.c => _build/stage1/rts/build/c/hooks/LongGCSync.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Arena.c => _build/stage1/rts/build/c/Arena.thr_debug_p_o
| Run Ghc CompileCWithGhc Stage1: rts/linker/elf_got.c => _build/stage1/rts/build/c/linker/elf_got.dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Heap.c => _build/stage1/rts/build/c/Heap.thr_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/posix/Ticker.c => _build/stage1/rts/build/c/posix/Ticker.debug_dyn_o
| Run Ghc CompileCWithGhc Stage1: rts/Capability.c => _build/stage1/rts/build/c/Capability.debug_o
| Run Ghc CompileHs Stage1: compiler/GHC/Utils/Containers/Internal/StrictPair.hs => _build/stage1/compiler/build/GHC/Utils/Containers/Internal/StrictPair.o
| Run Ghc CompileCWithGhc Stage1: rts/sm/MarkWeak.c => _build/stage1/rts/build/c/sm/MarkWeak.p_o
| Run Ghc CompileCWithGhc Stage1: rts/RtsSymbols.c => _build/stage1/rts/build/c/RtsSymbols.thr_debug_dyn_o
Command line: _build/stage0/bin/ghc -Wall -Wcompat -fdiagnostics-color=never -dynamic-too -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-env -' '-package-db _build/stage1/inplace/package.conf.d' '-this-unit-id ghc-9.8.4-inplace' '-package-id array-0.5.8.0-inplace' '-package-id base-4.19.2.0-inplace' '-package-id binary-0.8.9.1-inplace' '-package-id bytestring-0.12.1.0-inplace' '-package-id containers-0.6.8-inplace' '-package-id deepseq-1.5.1.0-inplace' '-package-id directory-1.3.8.5-inplace' '-package-id exceptions-0.10.7-inplace' '-package-id filepath-1.4.301.0-inplace' '-package-id ghc-boot-9.8.4-inplace' '-package-id ghc-heap-9.8.4-inplace' '-package-id ghci-9.8.4-inplace' '-package-id hpc-0.7.0.0-inplace' '-package-id process-1.6.25.0-inplace' '-package-id semaphore-compat-1.0.0-inplace' '-package-id stm-2.5.3.1-inplace' '-package-id template-haskell-2.21.0.0-inplace' '-package-id time-1.12.2-inplace' '-package-id transformers-0.6.1.
0-inplace' '-package-id unix-2.8.6.0-inplace' -i -i/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/compiler/build -i/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/compiler/build/autogen -i/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/compiler -Irts/include -I_build/stage1/compiler/build -I_build/stage1/compiler/build/. -Icompiler/. -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/process/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/process/build/include -I/usr/local/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/directory -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/directory/build -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/unix/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/unix/build/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/time/lib/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/time/buil
d/lib/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/containers/containers/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/containers/containers/build/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/bytestring/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/bytestring/build/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/base/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/base/build/include -I/usr/local/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/libraries/ghc-bignum/include/ -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/libraries/ghc-bignum/build/include/ -I/usr/local/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/rts/include -I/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/rts/build/include -optP-include -optP_build/stage1/compiler/build/autogen/cabal_macros.h -optc--target=x86_64-portbld-freebsd -optc-Q
unused-arguments -optP-DHAVE_INTERNAL_INTERPRETER -optP-DCAN_LOAD_DLL -outputdir _build/stage1/compiler/build -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -XHaskell2010 -XNoImplicitPrelude -XBangPatterns -XScopedTypeVariables -XMonoLocalBinds -XTypeOperators -no-global-package-db -package-db=/wrkdirs/usr/ports/lang/ghc/work/ghc-9.8.4/_build/stage1/inplace/package.conf.d -ghcversion-file=rts/include/ghcversion.h -ghcversion-file=rts/include/ghcversion.h -Wnoncanonical-monad-instances -optc-Wno-unknown-pragmas -c compiler/GHC/Utils/Containers/Internal/StrictPair.hs -o _build/stage1/compiler/build/GHC/Utils/Containers/Internal/StrictPair.o -O2 -H32m -haddock -Winvalid-haddock -Wno-deprecated-flags -Wcpp-undef
===> Command failed with error code: 1
ghc: panic! (the 'impossible' happened)
  GHC version 9.8.4:
	lookupGlobal
  ErrorWithoutFlag
    Failed to load interface for ‘GHC.Num.BigNat’.
    There are files missing in the ‘ghc-bignum-1.3’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:191:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/Tc/Utils/Env.hs:154:18 in ghc:GHC.Tc.Utils.Env
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Utils/Error.hs:503:29 in ghc:GHC.Utils.Error


Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

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