CPU family 6, model 60 indicates the Haswell family, which did have AVX
support. But additionally this is the Intel Pentium CPU G3220 which did
not support AVX and AVX2.

I can repro the SIGILL using qemu:

$ qemu-x86_64 -cpu Haswell,-avx,-avx2 /usr/bin/ghostty +version
qemu-x86_64: warning: TCG doesn't support requested feature: 
CPUID[eax=07h,ecx=00h].EBX.hle [bit 4]
qemu-x86_64: warning: TCG doesn't support requested feature: 
CPUID[eax=07h,ecx=00h].EBX.rtm [bit 11]
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction        (core dumped) qemu-x86_64 -cpu Haswell,-avx,-avx2 
/usr/bin/ghostty +version

OTOH, zig does not fail:

$ qemu-x86_64 -cpu Haswell,-avx,-avx2 /usr/bin/zig version
qemu-x86_64: warning: TCG doesn't support requested feature: 
CPUID[eax=07h,ecx=00h].EBX.hle [bit 4]
qemu-x86_64: warning: TCG doesn't support requested feature: 
CPUID[eax=07h,ecx=00h].EBX.rtm [bit 11]
0.15.2

This is probably because we use -DZIG_TARGET_MCPU=baseline while
building zig. We should try to add -mcpu baseline while building
Ghostty.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2148769

Title:
  ghosty does not start: Illegal instruction

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ghostty/+bug/2148769/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to