Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library usage error with Zig 0.14.0 #6

Open
ssilnicki-dev opened this issue Aug 10, 2024 · 0 comments · May be fixed by #7
Open

library usage error with Zig 0.14.0 #6

ssilnicki-dev opened this issue Aug 10, 2024 · 0 comments · May be fixed by #7

Comments

@ssilnicki-dev
Copy link

ssilnicki-dev commented Aug 10, 2024

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
@ssilnicki-dev ssilnicki-dev linked a pull request Aug 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant