rust-cross/cargo-zigbuild

invalid instruction: ring@0.17.8: strd r4,[sp,#0]

otavio opened this issue · 1 comments

Wrong build for ring:

% cargo-zigbuild b --target=arm-unknown-linux-gnueabi
   Compiling ring v0.17.8
The following warnings were emitted during compilation:

warning: ring@0.17.8: crypto/curve25519/asm/x25519-asm-arm.S:36:1: error: invalid instruction, any one of the following would fix this:
warning: ring@0.17.8: strd r4,[sp,#0]
warning: ring@0.17.8: ^
warning: ring@0.17.8: crypto/curve25519/asm/x25519-asm-arm.S:36:14: note: too few operands for instruction
warning: ring@0.17.8: strd r4,[sp,#0]
warning: ring@0.17.8:              ^
warning: ring@0.17.8: crypto/curve25519/asm/x25519-asm-arm.S:36:1: note: instruction requires: armv5te
warning: ring@0.17.8: strd r4,[sp,#0]
warning: ring@0.17.8: ^
warning: ring@0.17.8: crypto/curve25519/asm/x25519-asm-arm.S:36:1: note: instruction requires: thumb2
warning: ring@0.17.8: strd r4,[sp,#0]
warning: ring@0.17.8: ^
...

I tested using 841df51 and this still happens.