Alpine Linux on the Duo?

One more finding, after googling explicitely for the above code.

https://support.primatelabs.com/discussions/geekbench/81697-risc-v-geekbench-54-preview-fails-with-illegal-instruction-on-some-chips

Quotes:

  1. “It could be related to fact that some risc-v doesn’t handle unaligned memory access well”
  2. “[…] FENCE.TSO instruction should not crash on boards that support the FENCE instruction but not the FENCE.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 :wink:
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.