omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Dictation installer offers AVX2-only Voxtype on CPUs without AVX2

Open t0d0r opened this issue 3 months ago • 6 comments

System details

  • Omarchy: 4.0.0-1
  • Hardware: Apple iMac10,1
  • CPU: Intel Core 2 Duo E7600 (Penryn, x86-64-v1)
  • CPU features: SSE4.1; no SSE4.2, POPCNT, AVX, or AVX2
  • Kernel: 7.1.8-arch1-3
  • Package: voxtype-bin 0.7.5-1

What's wrong?

Omarchy offers Dictation through omarchy-voxtype-install without checking whether the CPU supports the installed Voxtype executable.

On this machine, /usr/bin/voxtype points directly to the AVX2 build:

/usr/bin/voxtype -> /usr/lib/voxtype/voxtype-avx2

The CPU has no AVX or AVX2 support. The package contains AVX2 and AVX-512 CPU executables, but no baseline executable:

/usr/lib/voxtype/voxtype-avx2
/usr/lib/voxtype/voxtype-avx512
/usr/lib/voxtype/voxtype-onnx-avx2
/usr/lib/voxtype/voxtype-onnx-avx512

As a result, Omarchy allows Dictation to be installed on hardware that cannot run its selected executable.

The installer currently proceeds directly to:

omarchy-pkg-add wtype voxtype-bin
voxtype setup --download --no-post-install

That attempts to execute the incompatible binary during installation.

Steps to reproduce

  1. Use Omarchy on an x86-64 CPU without AVX2.
  2. Select Install > AI > Dictation.
  3. Install Voxtype.
  4. Inspect /usr/bin/voxtype or attempt to configure/use Dictation.
  5. Observe that the command targets voxtype-avx2, which the CPU cannot run.

Expected behavior

omarchy-voxtype-install should check for AVX2 before installing or executing the CPU build.

If no compatible backend is available, the installer should stop before downloading the package/model and display a clear explanation such as:

Voxtype Dictation requires AVX2 on this hardware and cannot be installed.

If a compatible Vulkan or other backend can operate without AVX2, the installer could select it before executing Voxtype. Otherwise, Dictation should remain uninstalled.

A feature check such as looking for avx2 in /proc/cpuinfo would be preferable to checking CPU model names.

Related issue

This is related to #7881, which reports Omarchy installing incompatible Bun-based agents on older CPUs. Voxtype is a separate package and installation path, but exposes the same missing CPU-capability gating.

Diagnostic summary

omarchy debug --no-sudo --print reports:

Intel Core2 Duo E7600
Architecture level: x86-64-v1
Flags: sse sse2 sse3 ssse3 sse4_1

No matching existing Omarchy issue was found when searching for Voxtype, Dictation, AVX2, old CPUs, and illegal instructions.

Filed by GPT-5 via Codex.

t0d0r avatar Aug 23 '26 12:08 t0d0r

I'd like to take this. I'll add a regression test that runs the real installer against a simulated non-AVX2 CPU, then add a capability guard before any prompt or package/model download.

kx0101 avatar Aug 23 '26 13:08 kx0101

I'm testing Ivy Bridge and pre-Ivy Bridge binaries now. Also, now packaging arm binaries.

peteonrails avatar Sep 02 '26 15:09 peteonrails

Checked this against quattro and the current voxtype-bin package.

The package now has a build for this CPU. voxtype-bin 1.1.0-2, which is in the Omarchy package repository, ships a voxtype-baseline binary, and its install hook links /usr/bin/voxtype to it whenever /proc/cpuinfo has neither avx512f nor avx2. Upstream labels it x86-64-v2, and an E7600 is x86-64-v1 (no POPCNT or SSE4.2), so I ran the upstream 1.1.0 binaries on a worker under qemu's TCG emulation with -cpu Penryn, which does trap POPCNT (a one-line POPCNT test program dies with SIGILL there and runs under -cpu Nehalem). voxtype-baseline transcribed a 16 kHz speech WAV correctly with the tiny.en model under Penryn, Nehalem and Haswell; voxtype-avx2 stopped with its own SIGILL message under Penryn and Nehalem. That is emulation rather than your iMac, with tiny.en rather than the default base.en, and it does not exercise audio capture.

What is still wrong in Omarchy. bin/omarchy-voxtype-install:17-19 runs voxtype setup gpu --enable whenever omarchy-hw-vulkan finds any Vulkan ICD, without checking the CPU, so a machine without AVX2 that has a Vulkan driver is moved off the baseline build onto the Vulkan build, which needs AVX2. #7890 is the fix for that: it takes the Vulkan step only when the CPU has AVX2, and it already closes this issue. It is reviewed and verified as its own item and waits on the maintainer. #8197 reports the same crash on Ivy Bridge.

If you can, updating (omarchy-update) and then checking that readlink -f /usr/bin/voxtype shows /usr/lib/voxtype/voxtype-baseline and that F9 dictation works on the iMac would confirm the package side on real hardware.

Diagnosed by Claude Opus 5.5. No second opinion ran on this issue: the configured reviewer, Codex Medium, had used up today's review budget.

omarchybot avatar Oct 08 '26 13:10 omarchybot

Real-hardware follow-up from the original iMac10,1 / Core 2 Duo E7600 report:

  • Omarchy: 4.0.4-1
  • CPU: Intel Core 2 Duo E7600 (no AVX2, no SSE4.2)
  • voxtype-bin: 1.1.0-2
  • Vulkan detection: yes
  • readlink -f /usr/bin/voxtype: /usr/lib/voxtype/voxtype-baseline
  • /usr/lib/voxtype/voxtype-vulkan and voxtype-osd-gtk4 are both installed and executable

The package-side baseline selection is therefore working for the main voxtype binary. However, the GTK4 OSD still repeatedly exits with SIGILL on this CPU. The user journal reports:

FATAL: Illegal CPU instruction (SIGILL)
This CPU does not support AVX2, and the binary you are running requires it.
Switch to the baseline variant...
voxtype setup variant --to baseline
...
OSD child exited 3 times within 5s. Giving up

The parent daemon logs that it will keep running, but voxtype-osd-gtk4 itself is not compatible with this non-AVX2 CPU. So the baseline main binary addresses only part of the original compatibility problem; the packaged OSD path also needs a compatible build or an Omarchy-side fallback/disable path.

These results are from the physical E7600 machine, not emulation.

t0d0r avatar Nov 15 '26 15:11 t0d0r

The GTK4 OSD failure is reproducible on a disposable Omarchy worker: the actual upstream 1.1.0 and packaged 1.2.2-1 frontends both exit with your SIGILL banner under Penryn CPU emulation, while both reach idle under Nehalem. In 1.2.2, the traced fault is POPCNT; enabling just that feature on the emulated Penryn lets it start without AVX2. These are frontend startup checks, without audio capture or transcription; this session did not test a physical iMac or identify the faulting instruction on yours.

The upstream OSD builds target x86-64-v2, which requires more than the E7600 provides. The SIGILL handler selects its AVX2 advice from CPU features rather than the instruction that failed. Switching the main daemon to baseline does not replace these companion executables. Newer Voxtype defaults to Quickshell when available, but its packaged voxtype-audio-bridge also SIGILLs under Penryn and survives startup with POPCNT enabled. Updating alone is therefore not an established fix for this CPU.

My earlier comment was incomplete: #7890 only guards Vulkan selection and does not address this remaining OSD failure.

For a temporary workaround, set enabled = false in the existing [osd] section of ~/.config/voxtype/config.toml, or add this section if absent:

[osd]
enabled = false

Then run systemctl --user restart voxtype.service. The daemon checks this setting before spawning the OSD in both 1.1.0 and 1.2.2. It disables the separate overlay and leaves the selected transcription binary alone. After that, does your dictation key produce text? The baseline symlink alone does not establish that transcription works.

Diagnosed by GPT-6 High in Codex. Opus 5.5 High identified the newer Quickshell path, which led to the additional audio-bridge test. muse-wonder via pi, thinking high, agreed with the GTK diagnosis; review independence is not guaranteed. This remains with the maintainer to coordinate a compatible companion build or decide on a fallback.

omarchybot avatar Nov 18 '26 02:11 omarchybot

Here's where it stands. voxtype's floor on x86 is x86-64-v2, which needs SSE4.2 and POPCNT. The E7600 is x86-64-v1, so it sits just below it. The package links /usr/bin/voxtype to voxtype-baseline correctly, as you saw. But the OSD and the audio bridge are built for v2 as well, and they hit POPCNT as soon as they start. That's the SIGILL in your journal.

The message is wrong for your CPU, too. It tells you to switch to baseline, and you're already on it. voxtype 1.3.2-rc1 (pre-release) says plainly when a CPU is below the floor instead. It also refuses to switch to the Vulkan build on a CPU without AVX2, so the installer's GPU step can't move you off baseline.

For now, turning the overlay off keeps those companions from starting:

[osd]
enabled = false

then systemctl --user restart voxtype.

Does your dictation key type text after that? omarchybot's run showed the baseline daemon transcribing under Penryn emulation, but I'd like to know whether it holds up on the real machine.

peteonrails avatar Nov 22 '26 02:11 peteonrails