Zig build run fails on Raspberry Pi 5
Zig Version
0.12.0-dev.2550+a65bc8d07
Steps to Reproduce and Observed Behavior
To Reproduce in Ras Pi 5:
mkdir zig-test cd zig-test zig init zig build run
zig goes through the build process and then stops with:
thread 1998 panic: reached unreachable code Panicked during a panic. Aborting. error: the following build command crashed: /home/craig/zig-test/zig-cache/o/5ab4d18f2ddd1ccfdec54cc769e36159/build /opt/zig-linux-aarch64-0.12.0-dev.2550+a65bc8d07/zig /home/craig/zig-test /home/craig/zig-test/zig-cache /home/craig/.cache/zig --seed 0x33ed21e0 run
I have also tried with zig 0.11.0 with equivalent results.
I followed exact same procedure on a Raspberry Pi 4B (with same OS version) and it worked fine.
As a side node running the code with:
zig run src/main.zig
works as expected on both platforms.
Expected Behavior
See: All your codebase are belong to us.
Known issue, will be resolved once #17382 is merged.
Perhaps dupe of #16331
Dupe of #16331