armv7 context, ghostscript9-agpl-base-9.55.0 fails to build: 'asm/hwcap.h' file not found

From: Mark Millard <marklmi_at_yahoo.com>
Date: Wed, 16 Mar 2022 23:48:37 UTC
Context:  poudriere-devel based bulk build
(on aarchh64 hardware that also supports aarch32/armv7,
unlike the FreeBSD port-build servers.)

logs/errors/ghostscript9-agpl-base-9.55.0.log reports:

tesseract/src/arch/simddetect.cpp:46:10: fatal error: 'asm/hwcap.h' file not found
#include <asm/hwcap.h>
         ^~~~~~~~~~~~~
1 error generated.
gmake[3]: *** [base/tesseract.mak:278: soobj/tesseract_arch_simddetect.o] Error 1


For reference:

# poudriere jail -jmain-CA7 -i
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

# ~/fbsd-based-on-what-commit.sh -C /usr/ports
branch: main
merge-base: 0c4fe38bd1b9e3ede128751db17a8a2d1bdffe6f
merge-base: CommitDate: 2022-03-15 16:15:33 +0000
0c4fe38bd1b9 (HEAD -> main, freebsd/main, freebsd/HEAD) misc/urh: Update 2.9.2 -> 2.9.3
n577366 (--first-parent --count for merge-base)

# uname -apKU
FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #38 main-n253764-bce40c0242b1-dirty: Sun Mar 13 14:05:01 PDT 2022     root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400053 1400053

[00:54:14] [04] [00:09:01] Finished print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0: Failed: build
[00:54:19] [04] [00:09:06] Skipping multimedia/aom | aom-3.3.0_1: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping devel/doxygen | doxygen-1.9.3,2: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping multimedia/ffmpeg | ffmpeg-4.4.1_7,1: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping graphics/graphviz | graphviz-2.50.0: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping multimedia/gstreamer1-libav | gstreamer1-libav-1.16.2: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping multimedia/gstreamer1-plugins-core | gstreamer1-plugins-core-1.16: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping graphics/libjxl | libjxl-0.6.1_5: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping x11/lumina | lumina-1.6.2,3: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping x11/lumina-core | lumina-core-1.6.2_4: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping graphics/openexr | openexr-3.1.4: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping devel/py-breathe@py38 | py38-breathe-4.33.1: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping print/tex-dvipsk | tex-dvipsk-2021.1: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping print/tex-formats | tex-formats-20210325_1: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping print/texlive-base | texlive-base-20210325: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed
[00:54:19] [04] [00:09:06] Skipping print/texlive-texmf | texlive-texmf-20210325: Dependent port print/ghostscript9-agpl-base | ghostscript9-agpl-base-9.55.0 failed

===
Mark Millard
marklmi at yahoo.com