[nu-demo] hero_voice build needs cmake (whisper.cpp build step) — not in installer apt deps #172

Closed
opened 2026-04-24 15:43:05 +00:00 by mik-tf · 1 comment
Owner

Symptom

After resolving libclang-dev (home#169), cargo build -p hero_voice_server still fails:

thread 'main' (28203) panicked at cmake-0.1.58/src/lib.rs:1132:5:
failed to execute command: No such file or directory (os error 2)
is `cmake` not installed?
build script failed, must exit now

whisper-rs-sys includes whisper.cpp and drives its build via the cmake Rust crate, which shells out to the cmake binary.

Root cause

cmake is not in hero_skills/tools/modules/installers/installers.nu apt-dep list. Combined with libclang-dev (home#169), the voice build has two hidden system-level prerequisites not captured by the nu-shell installer.

Fix

Add both to the apt-dep list in installers.nu:

"cmake"
"libclang-dev"

Total size impact: ~200 MB (libclang-18 at ~100 MB, cmake + deps at ~60 MB, rest is shared libs). Reasonable on a 16 GB rootfs.

Demo workaround (herodemo 2026-04-24)

apt-get install -y cmake

Then cargo build -p hero_voice_server succeeds.

  • home#128 — hero_skills installers missing apt dev packages (THIS adds to the list)
  • home#169 — libclang-dev, sibling missing package
  • home#134 — service_voice commented out in packages.nu (related; voice wasn't even attempted by install_all)

Signed-off-by: mik-tf

## Symptom After resolving `libclang-dev` ([home#169](https://forge.ourworld.tf/lhumina_code/home/issues/169)), `cargo build -p hero_voice_server` still fails: ``` thread 'main' (28203) panicked at cmake-0.1.58/src/lib.rs:1132:5: failed to execute command: No such file or directory (os error 2) is `cmake` not installed? build script failed, must exit now ``` `whisper-rs-sys` includes whisper.cpp and drives its build via the cmake Rust crate, which shells out to the `cmake` binary. ## Root cause `cmake` is not in `hero_skills/tools/modules/installers/installers.nu` apt-dep list. Combined with `libclang-dev` (home#169), the voice build has two hidden system-level prerequisites not captured by the nu-shell installer. ## Fix Add both to the apt-dep list in `installers.nu`: ```nu "cmake" "libclang-dev" ``` Total size impact: ~200 MB (libclang-18 at ~100 MB, cmake + deps at ~60 MB, rest is shared libs). Reasonable on a 16 GB rootfs. ## Demo workaround (herodemo 2026-04-24) ```bash apt-get install -y cmake ``` Then `cargo build -p hero_voice_server` succeeds. ## Related - [home#128](https://forge.ourworld.tf/lhumina_code/home/issues/128) — hero_skills installers missing apt dev packages (THIS adds to the list) - [home#169](https://forge.ourworld.tf/lhumina_code/home/issues/169) — libclang-dev, sibling missing package - [home#134](https://forge.ourworld.tf/lhumina_code/home/issues/134) — service_voice commented out in packages.nu (related; voice wasn't even attempted by install_all) Signed-off-by: mik-tf
Author
Owner

Partially closed by hero_skills #125 (commit 1379cc0)

The apt-side gap is now codified in install_base: libssl-dev, pkg-config, wget, jq, sqlite3, libsqlite3-dev, python3, python3-pip, python3-venv, python3-openpyxl.

Note: this issue mentions multiple specific gaps. Some are now resolved upstream; others (e.g. uv install, ONNX runtime, Chrome) are tracked in the same Phase 2 effort and will land in a follow-up PR — see home#185 for the master tracker.

Signed-off-by: mik-tf

## Partially closed by hero_skills #125 (commit `1379cc0`) The apt-side gap is now codified in `install_base`: libssl-dev, pkg-config, wget, jq, sqlite3, libsqlite3-dev, python3, python3-pip, python3-venv, python3-openpyxl. Note: this issue mentions multiple specific gaps. Some are now resolved upstream; others (e.g. `uv` install, ONNX runtime, Chrome) are tracked in the same Phase 2 effort and will land in a follow-up PR — see [home#185](https://forge.ourworld.tf/lhumina_code/home/issues/185) for the master tracker. Signed-off-by: mik-tf
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/home#172
No description provided.