failed to run custom build command for `boring-sys v4.10.2` (Windows 11 WSL2 arch linux)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- rust
- 领域
- build-system
调研方向
首先,在报告的 Windows 11 WSL2 Arch Linux 环境中重现 boring-sys v4.10.2 的 cargo run,然后检查 boring-sys 的自定义构建命令,以及输出中显示的 bindgen 0.70.1 查找 libclang 的过程。完成的标准是确定该失败是由于缺少环境依赖,还是由于项目构建问题,并提供可复现的修复方案或记录在案的受支持配置。
由索引模型根据 Issue 内容生成。
描述
Similar issues:
The output:
cargo run
Compiling boring-sys v4.10.2
error: failed to run custom build command for `boring-sys v4.10.2`
Caused by:
process didn't exit successfully: `/home/***/***/target/debug/build/boring-sys-21189a854ea148ad/build-script-main` (exit status: 101)
--- stdout
... building logs ...
--- stderr
thread 'main' panicked at /home/***/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.70.1/lib.rs:622:27:
Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This line seems odd:
"where one of these files can be found (invalid: [])"
System information:
- The computer is a Windows 11 Pro.
- The build is executed on WSL2 (Arch Linux, variant of my company).
I don't install boring-sys directly, it is an indirect dependency of jwt-simple.
jwt-simple v0.12.10
├── boring v4.10.2
├── boring-sys v4.10.2
Final note, the project builds without any issue on MacOS Sonoma.
- 主要语言
- Rust
- 星标
- 527
- 派生
- 180
- 平均合并
- 15 小时 34 分钟
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudflare/boring 的其他 Issue
-
cargo builds can corrupt consumer git repos due to env vars可能已有人在做 @RaphaelFakhri 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
cloudflare/boring#527 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
cloudflare/boring#526 ·
维护者通常 1 天内回复
-
SLH-DSA support可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
cloudflare/boring#522 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
cloudflare/boring#517 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
cloudflare/boring#500 · 2 条评论 ·
维护者通常 1 天内回复
查看 cloudflare/boring 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
git-ai-project/git-ai#2434 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
peteonrails/voxtype#909 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
kucherenko/jscpd#1239 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
alchemyplatform/rundler#1358 ·
维护者通常 3 天内回复