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
opencode exits immediately with Illegal instruction on WSL2/Linux (ACP unusable) #18411
The common thread across these issues is that opencode's bundled Bun binary requires AVX/AVX2 CPU instructions, and environments lacking those (including some WSL2 setups or older CPUs) crash with Illegal instruction. Please check if any of these match your situation before this issue proceeds.
The common thread across these issues is that opencode's bundled Bun binary requires AVX/AVX2 CPU instructions
The bot at least did find the issue in my case , and this is a dupe of other issues - I'm using a very old core2 duo proc, and bun's decision to require amd64v3+ means that my cpu platform can't use it.
This is odd, since afaik every native language (go/gcc/clang/nim/d/rust/etc) default to emitting amd64v1 binaries, unless a distro or user explicitly says to use a different variant (which is uncommon). Not something opencode can change, it's another flaw with Bun.
Since this is the top search result, i'll mention i tried what was suggested in this previous thread (use mainline from releases page) which didn't work - same error.
There is a fork of bun+opencode that addresses this issue.
What i did was follow this guy's path, which was to use a different harness entirely that doesn't have this problem.
Activity
github-actions commentedon Mar 20, 2026
This issue might be a duplicate of existing issues. Please check:
The common thread across these issues is that opencode's bundled Bun binary requires AVX/AVX2 CPU instructions, and environments lacking those (including some WSL2 setups or older CPUs) crash with
Illegal instruction. Please check if any of these match your situation before this issue proceeds.github-actions commentedon Jul 4, 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.
glepretre commentedon Jul 6, 2026
Another unresolved legitimate issue closed by a bot
Knetic commentedon Sep 15, 2026
The bot at least did find the issue in my case , and this is a dupe of other issues - I'm using a very old core2 duo proc, and bun's decision to require amd64v3+ means that my cpu platform can't use it.
This is odd, since afaik every native language (go/gcc/clang/nim/d/rust/etc) default to emitting amd64v1 binaries, unless a distro or user explicitly says to use a different variant (which is uncommon). Not something opencode can change, it's another flaw with Bun.
Since this is the top search result, i'll mention i tried what was suggested in this previous thread (use mainline from releases page) which didn't work - same error.
There is a fork of bun+opencode that addresses this issue.
What i did was follow this guy's path, which was to use a different harness entirely that doesn't have this problem.