Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

failed to run custom build command for `boring-sys v4.10.2` (Windows 11 WSL2 arch linux)

未关闭
#283 19 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudflare/boring 的其他 Issue

查看 cloudflare/boring 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。