Windows build failure: whisper-rs-sys bindgen generates glibc-specific types under MSVC
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- build-system, operating-systems
Direzione di ricerca
Start by reproducing the failure for x86_64-pc-windows-msvc and inspect whisper-rs-sys binding generation, bundled bindings, and the resolved whisper-rs versions. Compare the behavior with WHISPER_DONT_GENERATE_BINDINGS=1 and the documented Windows build path. Done means establishing a supported Windows build approach and documenting or implementing the required compatibility change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Building CodexMonitor on Windows with the MSVC toolchain fails in whisper-rs-sys during binding generation / validation.
The generated or bundled bindings appear to assume glibc/GNU types and layouts, which are not valid for x86_64-pc-windows-msvc.
This blocks local Windows development from source.
Environment
- OS: Windows 11
- Rust: 1.95.0
- Target:
x86_64-pc-windows-msvc - LLVM/clang installed at
C:\Program Files\LLVM\bin LIBCLANG_PATHset correctly- No
gccinPATH - Using MSVC toolchain, not MinGW/MSYS2
Error
Build fails in whisper-rs-sys with errors like:
error[E0080]: attempt to compute `12_usize - 16_usize`, which would overflow
["Size of _G_fpos_t"][::std::mem::size_of::<_G_fpos_t>() - 16usize];
Similar failures also occur for:
_G_fpos64_t_IO_FILE
Observations
- These types (
_G_fpos_t,_G_fpos64_t,_IO_FILE) are glibc/GNU-specific, not MSVC / Windows CRT types. - That suggests
bindgenis generating Linux/glibc bindings during a Windows build, or the bundled bindings were generated from a glibc environment and are being reused on MSVC. - The issue reproduces across multiple
whisper-rsversions, including:whisper-rs = 0.12.0whisper-rs = 0.16.0
- It also still happens when setting:
WHISPER_DONT_GENERATE_BINDINGS=1
which suggests the pre-generated bindings are also not MSVC-compatible.
Dependency resolution seen
whisper-rs v0.14.3 (git)
└── whisper-rs-sys v0.13.0
Why this matters
CodexMonitor documents Windows source builds and ships Windows artifacts, but this failure makes it unclear how Windows builds are expected to work for contributors using the standard MSVC Rust target.
Questions
- How is CodexMonitor successfully producing a Windows MSI today?
- Are bindings pre-generated in a Windows-safe way somewhere else?
- Is a specific toolchain required here (MSYS2 / MinGW vs MSVC)?
- Is there a known-good
whisper-rs/whisper-rs-sysversion combination for Windows? - Should Windows builds disable dictation / whisper by default until bindings are known to be portable?
Possible directions
- Avoid generating bindings from glibc headers on Windows/MSVC.
- Ship Windows/MSVC-compatible pre-generated bindings.
- Gate dictation / whisper behind target-specific features.
- Document the exact supported Windows toolchain and dependency expectations.
- Lingua principale
- TypeScript
- Stelle
- 4.4k
- Fork
- 418
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Dimillian/CodexMonitor
-
Listed in Awesome Codex CLIAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
Dimillian/CodexMonitor#590 ·
-
Local usage overcounts resumed sessions by treating inherited cumulative totals as new usageForse già presa @Huang-siyuan l’ha presa 51 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Dimillian/CodexMonitor#616 ·
-
Unable to select the commandAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 63/100
Dimillian/CodexMonitor#615 ·
-
Codex Monitor does not surface MCP browser tool approval prompts, making browser tools appear hungAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Dimillian/CodexMonitor#612 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Dimillian/CodexMonitor#602 · 1 commento · 1 reazione ·
Tutte le issue di Dimillian/CodexMonitor
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
justyns/silverbullet-ai#199 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
comet-ml/opik#9877 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
area: board bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
lingdojo/kana-dojo#34857 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno