Skip to content

fix(deps): re-pin whisper-rs-sys to the bindgen 0.72.1 fix - #89

Merged
JSKitty merged 1 commit into
VectorPrivacy:masterfrom
BonesGit:fix/whisper-llvm22-repin
Sep 10, 2026
Merged

fix(deps): re-pin whisper-rs-sys to the bindgen 0.72.1 fix#89
JSKitty merged 1 commit into
VectorPrivacy:masterfrom
BonesGit:fix/whisper-llvm22-repin

Conversation

@BonesGit

Copy link
Copy Markdown

What

One lockfile change: whisper-rs-sys re-pinned from eb61d3d8 to af034af9
(the merge of whisper-rs#2), which carries bindgen 0.72.1.

cargo keeps the locked git commit even when the tracked master branch
moves, so Vector kept building against the pre-fix commit until now.

Why

LLVM 22 (libclang 22, e.g. Arch) changed the AST representation of nested
name specs. bindgen < 0.72.1 then walks the forward-declaration cursor for
structs declared early and defined later (struct whisper_full_params; in
whisper.h, struct _IO_FILE; in glibc) and emits 1-byte opaque stubs while
the layout assertion still expects the real C size → E0080 in
whisper-rs-sys. Fixed upstream in rust-lang/rust-bindgen#3278, released in
0.72.1.

Verified

On Arch (clang 22.1.8), clean npm run build with default features
(whisper, tor):

  • whisper-rs-sys #af034af9 regenerates bindings live — no
    WHISPER_DONT_GENERATE_BINDINGS, no manually patched bindings
  • whisper_full_params: 57 fields, _IO_FILE: 33 fields, all 7
    ggml_backend_vk_* externs — no E0080
  • binary + .deb/.rpm bundles build; app runs (verified on-device)

No Cargo.toml change — the dependency tracks the branch.

Closes #88

cargo kept whisper-rs-sys at eb61d3d8 even after VectorPrivacy/whisper-rs
master moved; that commit pins bindgen 0.71, which emits 1-byte stub
structs under libclang 22 and breaks the build with E0080.

Re-pinned to af034af9 (bindgen 0.72.1, whisper-rs#2). Verified on Arch
with clang 22.1.8: bindings regenerate live with full field lists.

Fixes VectorPrivacy#88

@JSKitty JSKitty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work 🙏 Merging!

@JSKitty
JSKitty merged commit 0ca50a9 into VectorPrivacy:master Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

whisper build fails on LLVM 22 machines (Arch) — re-pin whisper-rs-sys once upstream PR merges

2 participants