You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: Installer should detect CPU capabilities and use baseline binary for CPUs without AVX2 #12553
OpenCode v1.1.53 hangs on startup on Windows with CPUs that lack AVX2 instructions (e.g., Intel Ivy Bridge, Sandy Bridge, early Haswell).
The opencode-windows-x64 binary requires AVX2, but the installer doesn't detect CPU capabilities. When run on a CPU without AVX2, the binary crashes with "Illegal instruction" before any output.
Environment
OpenCode version: 1.1.53
Platform: Windows 11 x64
CPU: Intel Xeon E3-1230 V2 (Ivy Bridge) - has AVX but not AVX2
Installation method: bun install -g opencode-ai
Steps to Reproduce
On a Windows machine with a CPU lacking AVX2 (Ivy Bridge or older)
Run bun install -g opencode-ai
Run opencode
Observe: hangs indefinitely, no output, no error message
Root Cause
The Bun shim at ~/.bun/bin/opencode resolves to opencode-windows-x64/bin/opencode.exe which is compiled with AVX2 instructions. The CPU throws "Illegal instruction" when executing AVX2 opcodes.
The baseline binary (opencode-windows-x64-baseline/bin/opencode.exe) works correctly:
These all report the same underlying problem of OpenCode binaries requiring AVX2 instructions on older CPUs (Ivy Bridge, Sandy Bridge, etc.) and crashing with illegal instruction errors.
Feel free to ignore if this addresses a different aspect of the issue.
i am also having issues on the following device. i tried to make a summary with opencode (from another device) what we all tried...
are there any chance to get opencode compiled/running on such old cpus?
RAM: 5.8GB
Issue: OpenCode crashes with "Illegal instruction" (SIGILL, exit code 132) because the bundled binary requires AVX instructions, which this CPU doesn't support.
What we tried:
Downloaded and installed opencode via npm - binary crashes with SIGILL
Attempted to install bun for building from source - bun binaries also require AVX
Tried older bun versions (v0.6.0) - also require AVX
Cloned bun source repo - building requires an existing bun binary for transpilation (circular dependency)
Conclusion: OpenCode on this hardware requires either a pre-AVX binary release or building bun from scratch with custom CPU flags, which is impractical given the circular dependency and compilation time on this hardware.
Bun: Even bun install crashes (JS runtime uses AVX internally)
OpenCode: Bundled Bun binary requires AVX to execute
Both compiled with LLVM targeting AVX as minimum for x86-64
FYI i found yesterday crush, which is a followup development from opencode. i switched to it, as there is a fallback to non avx cpu hardware and it looks like working like a charm. so from my pov there is no sense in investing any effort in this issue report ;)
Activity
github-actions commentedon Feb 7, 2026
This issue might be a duplicate of existing issues. Please check:
These all report the same underlying problem of OpenCode binaries requiring AVX2 instructions on older CPUs (Ivy Bridge, Sandy Bridge, etc.) and crashing with illegal instruction errors.
Feel free to ignore if this addresses a different aspect of the issue.
BassemN commentedon Feb 8, 2026
I am using Ubuntu 20.04.6 LTS. Opencode was running properly on version 1.1.51, but after upgrading to version 1.1.52 or 1.1.53, it no longer runs.
pei55 commentedon Feb 9, 2026
the same to you.
feat: add CPU baseline detection for older processors
kgorgolewski commentedon Mar 28, 2026
hi there,
i am also having issues on the following device. i tried to make a summary with opencode (from another device) what we all tried...
are there any chance to get opencode compiled/running on such old cpus?
thanks
krzysztof
Device Info:
Issue: OpenCode crashes with "Illegal instruction" (SIGILL, exit code 132) because the bundled binary requires AVX instructions, which this CPU doesn't support.
What we tried:
Conclusion: OpenCode on this hardware requires either a pre-AVX binary release or building bun from scratch with custom CPU flags, which is impractical given the circular dependency and compilation time on this hardware.
kgorgolewski commentedon Apr 14, 2026
FYI i found yesterday crush, which is a followup development from opencode. i switched to it, as there is a fallback to non avx cpu hardware and it looks like working like a charm. so from my pov there is no sense in investing any effort in this issue report ;)
liucc52 commentedon May 13, 2026
how about the performace of the baseline version, is there any differnce compare with the normal one?
liucc52 commentedon May 20, 2026
what is the difference between the normal version and baseline version of opencode?
github-actions commentedon Jul 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.