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

library usage error with Zig 0.14.0

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, zig
领域
build-system

调研方向

使用 Zig 0.14.0,通过所示的 zig fetch --save 和 zig build 命令重现该失败。首先检查包内容和 build.zig 入口点,了解 config.h.in 如何传递给 autoconf 配置步骤;当示例能够针对报告的目标成功构建时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

I didn't try to import libusb with zig 0.13.0, but with 0.14.0 version building it from within my project failing with this error:

$ zig fetch --save git+https://github.com/ZigEmbeddedGroup/libusb
$ zig build
install
└─ install hello
   └─ zig build-exe hello Debug x86_64-windows
      └─ zig build-lib usb Debug x86_64-windows
         └─ configure autoconf header config.h.in to config.h failure
error: unable to read autoconf input file '/home/ws/.cache/zig/p/1220c50cbc5bbd2758216cd7840712fa2b76a446c801345780cd30454e6d55670b7e/config.h.in': FileNotFound
install
└─ install hello
   └─ zig build-exe hello Debug x86_64-linux-gnu
      └─ zig build-lib usb Debug x86_64-linux-gnu
         └─ configure autoconf header config.h.in to config.h failure
error: unable to read autoconf input file '/home/ws/.cache/zig/p/1220c50cbc5bbd2758216cd7840712fa2b76a446c801345780cd30454e6d55670b7e/config.h.in': FileNotFound
Build Summary: 4/13 steps succeeded; 2 failed
install transitive failure
├─ install hello transitive failure
│  └─ zig build-exe hello Debug x86_64-windows transitive failure
│     └─ zig build-lib usb Debug x86_64-windows transitive failure
│        └─ configure autoconf header config.h.in to config.h failure
└─ install hello transitive failure
   └─ zig build-exe hello Debug x86_64-linux-gnu transitive failure
      └─ zig build-lib usb Debug x86_64-linux-gnu transitive failure
         └─ configure autoconf header config.h.in to config.h failure
error: the following build command failed with exit code 1:
/home/ws/p/hello/.zig-cache/o/4ebda243aceaa5c78a31079b235acb3f/build /home/ws/tools/zig/build/stage3/bin/zig /home/ws/tools/zig/build/stage3/lib/zig /home/ws/p/hello /home/ws/p/hello/.zig-cache /home/ws/.cache/zig --seed 0xfa960794 -Z6fd333ad21519aa3
主要语言
C
星标
17
派生
15
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

allyourcodebase/libusb 的其他 Issue

查看 allyourcodebase/libusb 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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