ish-app / ish-app/ish

Zig fails to build: SIGILL

Open
#2,145 1 comment 1 reaction 0 assignees View on GitHub
emulator
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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
```zig

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.