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

FileNotFound error when building from source #4

Closed
TKK13909 opened this issue Apr 17, 2023 · 1 comment
Closed

FileNotFound error when building from source #4

TKK13909 opened this issue Apr 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TKK13909
Copy link

TKK13909 commented Apr 17, 2023

Describe the bug

When I attempt to build from source following the instructions, I get the error: "FileNotFound: /home/tkk/temp/linuxwave/libs/zig-clap/clap.zig"

To reproduce

git clone https://github.com/orhun/linuxwave && cd linuxwave/ zig build -Drelease-safe

Expected behavior

The project should build with no errors

Screenshots / Logs
❯ zig build -Drelease-safe
warning: FileNotFound: /home/tkk/temp/linuxwave/libs/zig-clap/clap.zig
error: FileNotFound
error: linuxwave...
error: The following command exited with error code 1:
/usr/bin/zig build-exe /home/tkk/temp/linuxwave/src/main.zig -OReleaseSafe --cache-dir /home/tkk/temp/linuxwave/zig-cache --global-cache-dir /home/tkk/.cache/zig --name linuxwave --pkg-begin clap /home/tkk/temp/linuxwave/libs/zig-clap/clap.zig --pkg-end --pkg-begin file /home/tkk/temp/linuxwave/src/file.zig --pkg-end --pkg-begin gen /home/tkk/temp/linuxwave/src/gen.zig --pkg-end --pkg-begin wav /home/tkk/temp/linuxwave/src/wav.zig --pkg-end --pkg-begin build_options /home/tkk/temp/linuxwave/zig-cache/options/qMakyD73vBhS-mLFzE_KDtVFe5JLMb8_fa1uQfpzXJ_ZwUp24BkeEUgj8oneTF4J --pkg-end -fPIE --enable-cache
error: the following build command failed with exit code 1:
/home/tkk/temp/linuxwave/zig-cache/o/8205680e369cdd724044e5a08320985a/build /usr/bin/zig /home/tkk/temp/linuxwave /home/tkk/temp/linuxwave/zig-cache /home/tkk/.cache/zig -Drelease-safe

Software information

  • Operating system: Arch Linux 6.2.11-arch1-1
  • Zig version: 0.10.1
  • Project version: ?

P.S. This is my first bug report on GitHub. I don't quite know how to get Markdown to work properly

@TKK13909 TKK13909 added the bug Something isn't working label Apr 17, 2023
@orhun
Copy link
Owner

orhun commented Apr 17, 2023

I forgot to add a gitmodule update step to README.md. It is now added in ca62679

You simply need to update the git submodules before building:

git submodule update --init --recursive

@orhun orhun closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants