Description
When installing opencode v1.15.10 on a Mac with an Ivy Bridge CPU (Core i7-3520M), the binary crashes immediately with exit code 132 (SIGILL — illegal instruction).
Steps to reproduce:
curl -fsSL https://opencode.ai/install | bash
opencode --version # exits with code 132
Or via npm:
npm i -g opencode-ai
postinstall fails with "could not find package opencode-darwin-x64-baseline"
Investigation findings:
sysctl -n hw.optional.avx2_0 returns 0 — no AVX2 support
sysctl -n hw.optional.fma returns 0 — no FMA support
opencode-darwin-x64 and opencode-darwin-x64-baseline from v1.15.10 are byte-identical (same MD5, same 112853072 byte size), so the baseline build is not actually a different target
otool -h shows cpusubtype 3 (CPU_SUBTYPE_X86_64_H — Haswell) for both
Even v1.15.9's opencode-darwin-x64-baseline binary crashes the same way on this CPU
Ivy Bridge (2012) supports x86-64-v2 but not x86-64-v3 (which requires AVX2 + FMA, introduced in Haswell 2013). The macOS "baseline" builds appear to still target x86-64-v3/Haswell.
Expected behavior: The baseline binary should either target x86-64-v2 or be clearly documented as requiring Haswell or newer.
System:
MacBook Pro, Intel Core i7-3520M @ 2.90GHz
macOS 24.6.0 (Darwin)
opencode v1.15.10
Plugins
No response
OpenCode version
v1.15.10
Steps to reproduce
npm error code 1
npm error path /usr/local/lib/node_modules/opencode-ai
npm error command failed
npm error command sh -c node ./postinstall.mjs
npm error It seems your package manager failed to install the right opencode CLI package. Try manually installing "opencode-darwin-x64-baseline" or "opencode-darwin-x64".
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
When installing opencode v1.15.10 on a Mac with an Ivy Bridge CPU (Core i7-3520M), the binary crashes immediately with exit code 132 (SIGILL — illegal instruction).
Steps to reproduce:
curl -fsSL https://opencode.ai/install | bash
opencode --version # exits with code 132
Or via npm:
npm i -g opencode-ai
postinstall fails with "could not find package opencode-darwin-x64-baseline"
Investigation findings:
sysctl -n hw.optional.avx2_0 returns 0 — no AVX2 support
sysctl -n hw.optional.fma returns 0 — no FMA support
opencode-darwin-x64 and opencode-darwin-x64-baseline from v1.15.10 are byte-identical (same MD5, same 112853072 byte size), so the baseline build is not actually a different target
otool -h shows cpusubtype 3 (CPU_SUBTYPE_X86_64_H — Haswell) for both
Even v1.15.9's opencode-darwin-x64-baseline binary crashes the same way on this CPU
Ivy Bridge (2012) supports x86-64-v2 but not x86-64-v3 (which requires AVX2 + FMA, introduced in Haswell 2013). The macOS "baseline" builds appear to still target x86-64-v3/Haswell.
Expected behavior: The baseline binary should either target x86-64-v2 or be clearly documented as requiring Haswell or newer.
System:
MacBook Pro, Intel Core i7-3520M @ 2.90GHz
macOS 24.6.0 (Darwin)
opencode v1.15.10
Plugins
No response
OpenCode version
v1.15.10
Steps to reproduce
npm error code 1
npm error path /usr/local/lib/node_modules/opencode-ai
npm error command failed
npm error command sh -c node ./postinstall.mjs
npm error It seems your package manager failed to install the right opencode CLI package. Try manually installing "opencode-darwin-x64-baseline" or "opencode-darwin-x64".
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response