Skip to content

fix(install,#980-bug1): auto-install cmake on Mac (vendored llama.cpp prereq)#987

Merged
joelteply merged 1 commit into
canaryfrom
fix/980-bug1-cmake-prereq
May 1, 2026
Merged

fix(install,#980-bug1): auto-install cmake on Mac (vendored llama.cpp prereq)#987
joelteply merged 1 commit into
canaryfrom
fix/980-bug1-cmake-prereq

Conversation

@joelteply
Copy link
Copy Markdown
Contributor

What

Add cmake to the Mac (Darwin) prereq block in install.sh. Auto-install via Homebrew when brew is available; fall back to a clear error message naming both `brew install cmake` and `xcode-select --install` (the macOS CLI tools alternative).

Why

M1 Carl-validator pass (issue #980, Bug 1 — Carl-blocker) hit:

install.sh said "✅ Continuum Tower installed!"
→ npm start → Phase 2a Rust build dies in workers/llama
→ cmake-0.1.57/src/lib.rs:1132:5: failed to execute command
→ "is \`cmake\` not installed?"

install.sh checked for git, docker, cargo, node — but NOT cmake — even though cmake is a hard requirement of the vendored llama.cpp build that runs as part of `npm start`. Carl saw the success banner, then the build crashed with no clear hint that cmake was the missing piece.

Pattern

Matches the existing node auto-install at line 303: check, info+install if brew available, fail with clear message if not.

Linux

Unchanged. continuum-core builds inside the Linux Docker image, so the Linux host doesn't need cmake at the host level — the container has its own toolchain.

Test

Dry-run on this M5 (cmake already installed → check passes immediately, no behaviour change).

Series context

This is the first concrete fix from #980's catalogued 10 bugs. Joel: "continue getting our carl case up to speed."

🤖 Generated with Claude Code

… prereq)

M1 Carl-validator pass (issue #980, Bug 1) hit a Carl-blocker:

  install.sh said "✅ Continuum Tower installed!"
  → npm start → Phase 2a Rust build dies in workers/llama
  → cmake-0.1.57/src/lib.rs:1132:5: failed to execute command
  → "is `cmake` not installed?"

install.sh checked for git, docker, cargo, node — but NOT cmake — even
though cmake is a hard requirement of the vendored llama.cpp build that
runs as part of `npm start`. Carl saw the success banner, then the
build crashed with no clear hint that cmake was the missing piece.

Fix: add a cmake check next to cargo + node in the Mac (Darwin) prereq
block. Auto-install via Homebrew when brew is available (matches the
existing node pattern at line 303). Fall back to a clear error message
naming both `brew install cmake` and `xcode-select --install` (the
macOS CLI tools alternative that also includes cmake).

Linux path is unchanged: continuum-core builds inside the Linux Docker
image, so the Linux host doesn't need cmake at the host level — the
container has its own toolchain.

Test: dry-run on this M5 (cmake already installed → check passes
immediately, no behaviour change).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joelteply joelteply merged commit faeb786 into canary May 1, 2026
3 checks passed
@joelteply joelteply deleted the fix/980-bug1-cmake-prereq branch May 1, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant