xai-org/grok-build · error
Unsupported architecture
Error message
Unsupported architecture
What it means
Error "Unsupported architecture" thrown in xai-org/grok-build.
Source
Thrown at crates/codegen/xai-grok-update/src/auto_update.rs:1008
/// native build instead of perpetuating the translated one. This mirrors
/// install.sh's `hw.optional.arm64` probe; without it, a lingering x86_64
/// process would reinstall x86_64 right over a fresh native install.
pub(crate) fn detect_platform() -> Result<(&'static str, &'static str)> {
let os = if cfg!(target_os = "macos") {
"macos"
} else if cfg!(target_os = "linux") {
"linux"
} else if cfg!(target_os = "windows") {
"windows"
} else {
anyhow::bail!("Unsupported OS");
};
let arch = if cfg!(target_arch = "x86_64") {
"x86_64"
} else if cfg!(target_arch = "aarch64") {
"aarch64"
} else {
anyhow::bail!("Unsupported architecture");
};
Ok((
os,
corrected_arch(os, arch, running_under_rosetta_on_apple_silicon()),
))
}
/// Age past which a leftover `.tmp` download file (or a freshly-renamed
/// versioned binary) is considered abandoned (crashed/killed updater) and
/// safe for `cleanup_old_downloads` to sweep. Generous compared to the
/// longest plausible download (per-request budget is
/// [`DOWNLOAD_REQUEST_TIMEOUT`]; the leader check+download pass matches) so
/// a concurrent updater's in-flight or just-landed file is never deleted
/// out from under it.
const STALE_TMP_AGE: Duration = Duration::from_secs(60 * 60);
/// Total timeout for a CLI artifact download request (including body).
/// Previously 5 minutes, which was too tight on slow links and caused theView on GitHub (pinned to bc7f02eddd)
When it happens
Trigger: Thrown at crates/codegen/xai-grok-update/src/auto_update.rs:1008 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of xai-org/grok-build@bc7f02eddd (2026-08-31).
Data as JSON: /api/errors/cafdb6e7dd7ca9bd.
Report an issue: GitHub.