native aarch64 lang/mono6.8 build in poudriere hangs up (and, so, eventually times out)

From: Mark Millard via freebsd-ports <freebsd-ports_at_freebsd.org>
Date: Fri, 08 Oct 2021 01:28:45 UTC
On aarh64 my poudriere=-devel builds of lang/mono6.8 get stuck
(and so evenutally time out with a lack of output to stdout).

. . .
[00:02:42] Building 1 packages using 1 builders
[00:02:42] Starting/Cloning builders
[00:02:43] Hit CTRL+t at any time to see build progress and stats
[00:02:43] [01] [00:00:00] Building lang/mono6.8 | mono6.8-6.8.0.123

In a variant of top the hangup looks like (process birth time ordering,
most recent first):

11715 root         52    0  95196Ki   49412Ki usem     1   0:00   0.00% /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mono/mini/mono --config /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123
11715 root         52    0  95196Ki   49412Ki ucond    7   0:00   0.00% /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mono/mini/mono --config /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123
11715 root         52    0  95196Ki   49412Ki umtxpi   2   0:01   0.00% /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mono/mini/mono --config /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123
11714 root         52    0  12912Ki    2932Ki wait     3   0:00   0.00% gmake -s .//build/deps/basic-profile-check.out
11712 root         52    0  13620Ki    3200Ki wait     4   0:00   0.00% /bin/sh -c ok=:; \\\nrm -f .//build/deps/basic-profile-check.exe .//build/deps/basic-profile-check.out; \\\nif [ -z '-s' ] && [
11711 root         52    0  12912Ki    2936Ki wait     0   0:00   0.00% gmake do-profile-check
11705 root         52    0  12912Ki    2920Ki wait     8   0:00   0.00% gmake -s do-profile-check-monolite
11700 root         52    0  12912Ki    2944Ki wait     9   0:00   0.00% gmake PROFILE=build all
11699 root         52    0  12912Ki    2912Ki wait     2   0:00   0.00% gmake profile-do--binary_reference_assemblies--all profile-do--net_4_x--all profile-do--xbuild_12--all profile-do--xbuild_14--a
11698 root         52    0  12912Ki    2908Ki wait    14   0:00   0.00% gmake --no-print-directory -s NO_DIR_CHECK=1 PROFILES=binary_reference_assemblies net_4_x xbuild_12 xbuild_14               CC=
11674 root         52    0  12912Ki    2928Ki wait     4   0:00   0.00% gmake all
95294 root         52    0  13620Ki    3204Ki wait     8   0:00   0.00% /bin/sh -c fail=; \\\nif (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running_with_option: internal erro
95293 root         52    0  12912Ki    2916Ki wait    12   0:00   0.00% gmake all-recursive
95000 root         52    0  12912Ki    2904Ki wait     7   0:00   0.00% gmake -f Makefile -j16 all
94999 root         52    0  13620Ki    3180Ki wait     0   0:00   0.00% /bin/sh -e -c (cd /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123; if ! /usr/bin/env MONO_SHARED_DIR="/wrkdirs/usr/ports/la
94974 root         52    0  12960Ki    3556Ki wait     2   0:00   0.00% /usr/bin/make -C /usr/ports/lang/mono6.8 build
94973 root         27    0  26292Ki    7956Ki wait    13   0:00   0.00% sh: poudriere[main-CA72-default][01]: build_pkg (mono6.8-6.8.0.123) (sh)
69377 root         20    0  26292Ki    7964Ki select   3   0:00   0.00% sh: poudriere[main-CA72-default][01]: build_pkg (mono6.8-6.8.0.123) (sh)

The log files shows what apepars to have lead to such a status:

. . .
echo '#! /bin/sh' > _tmpinst/bin/mcs ; \
r=`pwd`; m=`cd /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \
chmod +x _tmpinst/bin/mcs
echo '#! /bin/sh' > _tmpinst/bin/al ; \
r=`pwd`; m=`cd /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/al.exe"'" "$@"' >> _tmpinst/bin/al ; \
if test -w /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mcs; then :; else chmod -R +w /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mcs; fi
cd /wrkdirs/usr/ports/lang/mono6.8/work/mono-6.8.0.123/mcs && gmake --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14              ' CC='cc' all-profiles
mkdir -p -- build/deps
gmake[7]: mcs: No such file or directory
gmake[7]: *** [build/profiles/build.make:134: build/deps/basic-profile-check.exe] Error 127
*** The runtime 'mono' doesn't appear to be usable.
*** Trying the 'monolite-unix/ABB721D6-116A-4555-B4FD-9248146D2051' directory.

(There is no more to the log at this point.)

For reference:

# uname -apKU
FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #12 main-n249019-0637070b5bca-dirty: Tue Aug 31 02:24:20 PDT 2021     root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72  arm64 aarch64 1400032 1400032

# pwd
/usr/ports
# ~/fbsd-based-on-what-commit.sh 
branch: main
merge-base: 59611d61d70a85f4418f3f701db1b7baf58560ba
merge-base: CommitDate: 2021-09-29 09:39:17 +0000
59611d61d70a (HEAD -> main, freebsd/main, freebsd/HEAD) databases/postgresql14-server: fix openssl dependency
n560161 (--first-parent --count for merge-base)

(This was discovered via bulk -a testing. I do not normally build
lang/mono6.8 .)

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)