Things that work reliably well on my 32-bit #PowerPC machine.
GCC 13 works fine, but can't produce a working dynamically linked Python binary — probably has other issues so I've downgraded.
Rust up to 1.80 works, but segfaults when building certain crates, such as getrandom — probably related to newer versions of LLVM being horribly broken and LLVM12 probably works because it seems to ignore most optimisation flags.
And you can't build newer Rust using older tools — because it only supports last 3 releases of LLVM and they have cranked out quite a few of them in the past couple of years, but the worst part is those LLVM releases can only be built with GCC 13. This looks somewhat relevant: https://github.com/llvm/llvm-project/issues/95594
Why does everything have to depend on the latest versions and be so fucking broken? 😩
So, Zig indeed appears to be broken on Big Endian machines, even 0.12: https://github.com/ziglang/zig/issues/18100
The issue is rather old, but on the other hand, they don't have the resources of Google and even that of those who work on Rust, so hopefully there'd be a fix sooner or later.