emulators/mame poudreire-devel build on aarch64 targeting armv7: ld: error: failed to open ../../../../../mame: Cannot allocate memory

From: Mark Millard via freebsd-ports <freebsd-ports_at_freebsd.org>
Date: Sun, 12 Sep 2021 20:28:17 UTC
It looks like emulators/mame should be marked broken for the likes
of armv7 (and armv6) because of process size limitations for armv7
(or armv6).

From an attempted poudreire bulk -a that is ongoing:

[42:47:44] [10] [20:53:04] Finished emulators/mame | mame-0.226_1: Failed: build

for which:

. . .
Building driver list...
37791 driver(s) found
Compiling generated/mame/mame/drivlist.cpp...
Linking mame...
ld: error: failed to open ../../../../../mame: Cannot allocate memory
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [mame.make:269: ../../../../../mame] Error 1
gmake[2]: *** [Makefile:1147: mame] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/emulators/mame/work/mame-mame0226/build/projects/sdl/mame/gmake-freebsd-clang'
gmake[1]: *** [makefile:1533: freebsd_x86_clang] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/emulators/mame/work/mame-mame0226'
*** Error code 1

This was via:

# poudriere jail -i -jmain-CA7
Jail name:         main-CA7
Jail version:      14.0-CURRENT
Jail arch:         arm.armv7
Jail method:       null
Jail mount:        /usr/obj/DESTDIRs/main-CA7-poud
Jail fs:           
Jail updated:      2021-06-27 17:58:33
Jail pkgbase:      disabled

# pwd
/usr/ports
# ~/fbsd-based-on-what-commit.sh 
branch: main
merge-base: b0c4eaac2a3aa9bc422c21b9d398e4dbfea18736
merge-base: CommitDate: 2021-09-07 21:55:24 +0000
b0c4eaac2a3a (HEAD -> main, freebsd/main, freebsd/HEAD) security/suricata: Add patch for upstream locking fix
n557269 (--first-parent --count for merge-base)

# 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

This is a HoneyComb with 16 Cortex-A72's and 64 GiBytes of RAM.
So lots of room for processes limited to 4 GiBytes or less.
According to the top instance that I've been monitoring with, so
far the swap/paging space is unused.

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