Bundled Bun binary lacks AVX baseline support — crashes on non-AVX CPUs
Status Open
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 13 comments · opened Mar 11, 2026
Problem
When launching Claude Code on a machine without AVX CPU support, the following warning appears:
warn: CPU lacks AVX support, strange crashes may occur. Reinstall Bun or use *-baseline build:
https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-darwin-x64-baseline.zip
Claude Code bundles its own Bun binary internally (inside node_modules/@anthropic-ai/claude-code). Users cannot replace it with the baseline build because there is no exposed binary path to swap — the standard ~/.bun/bin/bun approach does not apply.
Environment
- OS: macOS (Darwin 25.3.0, x64)
- Claude Code installed via:
npm install -g @anthropic-ai/claude-code - Node: v22.22.1 (via nvm)
- CPU: Does not support AVX instructions
Expected behavior
Claude Code should ship with or auto-select the Bun baseline build on CPUs that lack AVX support, or at minimum document how users can replace the bundled binary.
Workaround
None available currently. The warning cannot be resolved by the user without access to the internal bundled Bun binary.
Showing cached comments. Read the full discussion on GitHub ↗
10 Comments
Having the same issue on M2 Pro CPU, latest macOS.
I'm running Claude Code from homebrew installation.
Seeing:
warn: CPU lacks AVX support, strange crashes may occur. Reinstall Bun or use *-baseline build:
https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-darwin-x64-baseline.zip
Macbook M2 Pro CPU. The same issue
claude --warn: CPU lacks AVX support, strange crashes may occur. Reinstall Bun or use *-baseline build:
https://github.com/oven-sh/bun/releases/download/bun-v1.3.11/bun-darwin-x64-baseline.zip
Same issue here too.
============================================================
Bun v1.3.11 (a2743b6d) Windows x64 (baseline)
Windows v.win10_cu
Args:
Features: no_avx2 no_avx
Elapsed: 3ms | User: 15ms | Sys: 0ms
RSS: 16.20MB | Peak: 16.22MB | Commit: 54.23MB | Faults: 4538
CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic (thread 476624): attempt to use null value
oh no Bun has crashed. This indicates a bug in Bun, not your code.
still seeing this problem with Claude Code v2.1.85
Claude Code v2.1.109
warn: CPU lacks AVX support, strange crashes may occur. Reinstall Bun or use *-baseline build:
https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-darwin-x64-baseline.zip
Fixed the issue for me.
Had x86 installed after migrating from older MacBook.
Replaced with arm homebrew. No warnings after that
From my chat w/ Claude app on Xubuntu-24.04:
Btw, per Claude app's suggestion, I had to remove the write permission on both the claude-code binary, and the download folder to prevent auto-update from working as anything above 2.1.14 needs AVX and I, sadly, don't have that on my CPU. So now I've claude-code CLI working (it's pinned to v2.1.14), but the 'code' in Claude app doesn't work. I hope dependency on AVX is removed, or if it's needed then a fork or a version pinning mechanism is provided. Would be great to have 'code' work in both the Claude app and the CLI with feature parity. Thanks.
Edit: I heard that this is also seen in hypervisor mode, so want to make it clear that mine is bare metal usage
Hitting this on a 2013 Mac Pro (Xeon E5-2697 v2, Ivy Bridge-EP), bare metal.
CPU has AVX but not AVX2:
Since AVX is present, Bun's runtime check passes and no warning prints. SIGILL on the first AVX2 instruction (
Illegal instruction: 4, exit 132, dies in dyld init beforemain).Bisect:
bun build --compilebakes the runtime into the 200MB Mach-O, so installingbun-darwin-x64-baselinesystem-wide doesn't help. No JS fallback shipped since 2.1.113.Could you publish
@anthropic-ai/claude-code-darwin-x64-baseline(and linux/win equivalents) compiled against baseline Bun? Same optionalDependency layout as the current per-platform packages.Pinned to 2.1.112 for now to keep things working, but locked out of newer releases.
Additional repro — Intel Ivy Bridge (i7-3520M), macOS Sonoma
Adding another confirmed affected environment to strengthen this report.
Environment
npm install -g @anthropic-ai/claude-codeError
Root Cause (confirmed)
The bundled Bun binary starting from v2.1.113 requires AVX2 instructions. The i7-3520M is a pre-Haswell CPU (Ivy Bridge, 2012) that supports AVX but not AVX2. Any Claude Code version using Bun 1.3.14 or later compiled without the
-baselineflag will SIGILL immediately on launch.Workaround
Pinning to the last working version:
Related issues
Request
Please ship the Bun baseline binary (compiled without AVX2) for macOS x64, or auto-detect CPU capabilities at install time and select the appropriate binary. This affects all Intel Macs from 2012 and earlier (Ivy Bridge and older), which are still officially supported under macOS Sonoma.
Related: If you're affected by this, there's an active discussion on #55520 proposing a clean fix — shipping both AVX + baseline Bun builds with runtime auto-detection, so all users are covered with zero tradeoff. Drop a 👍 there to help get it prioritized: https://github.com/anthropics/claude-code/issues/55520#issuecomment-4763182570