Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenCode error

OpenCode: CPU lacks AVX support. Please consider upgrading to a newer CPU

Error message
CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Illegal instruction at address 0x4001FB4
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Status: Fixed in releaseLast verified 2 documented fixes4 sources

What it means

The Bun runtime bundled in the OpenCode binary used CPU instructions (AVX) that older CPUs lack, so OpenCode crashed on start. This happened even with the baseline build.

Causes

  • A Bun regression in the v1.1.21 baseline build. A maintainer: "Bun bug :/" (#8611).

How to fix it

  1. Fix 1.

    A maintainer: "We will just downgrade bun, that should fix it in next release". Upgrade past v1.1.21.

    Terminal
    opencode upgrade
  2. Fix 2.

    Later releases fixed baseline handling. v1.1.64: "Baseline CPU detection fixed" (PR #13371). v1.2.11: "Upgrade to Bun 1.3.10 canary and force baseline builds always".

More OpenCode errors

All 17 OpenCode errors

FAQ

What does "CPU lacks AVX support. Please consider upgrading to a newer CPU" mean in OpenCode?

The Bun runtime bundled in the OpenCode binary used CPU instructions (AVX) that older CPUs lack, so OpenCode crashed on start. This happened even with the baseline build.

How do I fix "CPU lacks AVX support. Please consider upgrading to a newer CPU"?

There are 2 documented fixes. Start with the first: A maintainer: "We will just downgrade bun, that should fix it in next release". Upgrade past v1.1.21.

Is this OpenCode error fixed?

Status: Fixed in release. A release fixed this. The affected versions note says where the fix landed. Affected versions: v1.1.21-baseline (regression from v1.1.20). Baseline detection fixed in v1.1.64, and baseline builds forced from v1.2.11.

Sources

Last verified against 4 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.