One more finding, after googling explicitely for the above code.
Quotes:
- “It could be related to fact that some risc-v doesn’t handle unaligned memory access well”
- “[…]
FENCE.TSO
instruction should not crash on boards that support theFENCE
instruction but not theFENCE.TSO
instruction.”
So, this apparently some instruction that concerns memory regions is failing here on the duo. Amazingly working with SBCs really gets you closer to the hardware
I don’t know if there could be a microcode update that changes the behaviour.
I think the tl;dr is we need to keep the bootstrap’d clang and cmake if we want something working. The upstream builder’s code will not match with the Duo CPU and the CPU seems to not correctly handle this case.
We could probably successfully apk build
the affected packages on a Duo S for peformance.
I did also report this on the alpine-devel list, but no feedback so far.