Windows build failure: whisper-rs-sys bindgen generates glibc-specific types under MSVC
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- rust
- Lĩnh vực
- build-system, operating-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 4.3k
- Fork
- 416
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Dimillian/CodexMonitor
-
Listed in Awesome Codex CLI Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Dimillian/CodexMonitor#590 ·
-
Unable to select the command Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 63/100
Dimillian/CodexMonitor#615 ·
-
Codex Monitor does not surface MCP browser tool approval prompts, making browser tools appear hung Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Dimillian/CodexMonitor#612 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Dimillian/CodexMonitor#602 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Dimillian/CodexMonitor#598 ·
Tất cả issue của Dimillian/CodexMonitor
Issue tương tự
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100