For MIPS (all sub-targets, 64-bit and EL) & xtensa(eb), the compiler complains about running out of memory. Best I can see, that's not what actually happens, but that's the error message. I was going to investigate this later, but this was the error which was causing the test with the Haiku VM with that corresponding make target. My desktop & laptop have 64 GB, and I'm pretty sure it didn't get to that point.
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/8.3.0/../../../../x86_64-unknown-haiku/bin/ld: error: libqemu-mips-softmmu.fa.p/target_mips_tcg_sysemu_mips-semi.c.o(.rodata) is too large (0xffff405a bytes)
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/8.3.0/../../../../x86_64-unknown-haiku/bin/ld: final link failed: memory exhausted
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Makefile:158: recipe for target 'run-ninja' failed
make: *** [run-ninja] Error 1
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/8.3.0/../../../../x86_64-unknown-haiku/bin/ld: final link failed: memory exhausted
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Makefile:158: recipe for target 'run-ninja' failed
make: *** [run-ninja] Error 1
TPM is disabled as it's not supported in Haiku. Using that "finddir" command for capstone was done that way in Haiku's build recipe, so I copied it into the configure script. A quick test shows that pkg-config does find it properly, so I'll remove the "finddir" command and test again.