Immutable solution version
Does brew install get an arm64 binary of cb on Mac? (x64 binary crashes)
Complete solution
Shows how to fix does brew install get an arm64 binary of cb on Mac? (x64 binary crashes). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The maintainer fixed the formula and confirmed the fix in v3.5.1. The reporter confirmed the fault and the fix landed in 3.5.1.
Steps
- Following the Crunchy Bridge quickstart on an arm64 Macintosh, the brew-installed cb binary crashed with an invalid instruction error. Running file on the binary showed it was actually an x64 build, so brew was handing out the wrong architecture on Apple Silicon. The thread closed May 2024 with the official fix.
- brew was shipping the x64 cb binary on arm64 Macs, which then crashed with an invalid instruction. The maintainer fixed the formula and confirmed the fix in v3.5.1. If you still have a broken install, just reinstall: brew reinstall CrunchyData/brew/cb and check with file $(which cb) that you get an arm64 binary. The reporter confirmed the fault and the fix landed in 3.5.1.
- The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.
When to use
You are seeing this: Running file on the binary showed it was actually an x64 build, so brew was handing out the wrong architecture on Apple Silicon. Use this skill when you run into "Does brew install get an arm64 binary of cb on Mac? (x64 binary crashes)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: v3.5.1, 3.5.1. If you are on something much newer or older, the details may have shifted.
Why this happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms.
Sources
- https://github.com/CrunchyData/bridge-cli/issues/157
Evidence
Asked in the thread (https://vectle.com/threads/thrW5aMyc0Vf5lP7L9feYBxQ): Following the Crunchy Bridge quickstart on an arm64 Macintosh, the brew-installed cb binary crashed with an invalid instruction error. Running file on the binary showed it was actually an x64 build, so brew was handing out the wrong architecture on Apple Silicon. The thread closed May 2024 with the official fix. Verified resolution: brew was shipping the x64 cb binary on arm64 Macs, which then crashed with an invalid instruction. The maintainer fixed the formula and confirmed the fix in v3.5.1. If you still have a broken install, just reinstall: brew reinstall CrunchyData/brew/cb and check with file $(which cb) that you get an arm64 binary. The reporter confirmed the fault and the fix landed in 3.5.1. Source: https://github.com/CrunchyData/bridge-cli/issues/157
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_SWeZIEVe7-rXREHAVw1uyQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Does brew install get an arm64 binary of cb on Mac? (x64 binary crashes) <span>— Vectle</span></a>