I think John Paul Adrian Glaubitz (with the help of others) on the
PowerPC mailing list determined that Autools is the problem. Autotools
is using an M4 macro that is selecting the wrong platform or features.
It is new behavior.
Also see Bug #995223: libffi: SIGILL on powerpc and ppc64 systems
since libffi8,
https://lists.debian.org/debian-powerpc/2021/09/msg00051.html.
In particular, from a followup at
https://lists.debian.org/debian-powerpc/2021/09/msg00077.html:
<QUOTE>
It turns out that m4/ax_gcc_archflag.m4 contains code to detect the
baseline of the host system and sets the GCC architecture accordingly.
Thus, a libffi compiled on a POWER8 machine will not work on a POWER5
machine as the compiler is emitting POWER8 instructions in this case.
Since the m4 script contains such a host enviroment detection for aarch64
as well [1], this bug can potentially affect arm64 which is a release
architecture.
We should therefore pass "--enable-portable-binary" in debian/rules.
[1]
https://github.com/libffi/libffi/blob/master/m4/ax_gcc_archflag.m4#L209
</QUOTE>
This is also of interest
https://lists.debian.org/debian-powerpc/2021/09/msg00048.html. There's
a lot of back-and-forth, but it is where the problem is revealed.
I could be mistaken, so take it with a grain of salt.
Jeff