ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.94k stars 892 forks source link

Zig fails to build: SIGILL #2145

Open juliettebee opened 1 year ago

juliettebee commented 1 year ago

I’m running zig build-exe hello.zig which returns fish: Job 1, 'zig build-exe hello.zig' terminated by signal SIGILL (Illegal instruction).

hello.zig is


const std = @import("std");

pub fn main() !void {
    const stdout = std.io.getStdOut().writer();
    try stdout.print("Hello, {s}!\n", .{"world"});
}

dmseg is:

64 illegal instruction at 0x94645cf: 0f 50 c2 0f 28 d3 0f 94 
stack at fffef4c0, base at 0, ip at 94645cf
fffef4c0: 00000000 00000000 00000000 00000000 11000320 00000000 00000000 00000000 
fffef4e0: ffffb2d0 00000000 00000200 02a9fc50 000000a2 08000000 ffff0148 00000000 
fffef500: 00000000 00000000 00000000 00000000 00000000 00000000 000000e4 00000000 
fffef520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
fffef540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
fffef560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ffff9020 
fffef580: 00000004 00000014 00000045 ffff40f2 00000003 00000000 00000000 00000004 
fffef5a0: 00000014 00000045 ffff40f2 00000003 00000000 00000000 00000002 00000013 
saagarjha commented 1 year ago

movmskps