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

Zig 0.13.0+ build error #618

Closed
andoan12 opened this issue Jun 12, 2024 · 4 comments
Closed

Zig 0.13.0+ build error #618

andoan12 opened this issue Jun 12, 2024 · 4 comments
Labels
bug This issue or pull request discusses a bug

Comments

@andoan12
Copy link

Hi, I just install Debian and I want to use Ly, I install necessary tools to install in Debian. I am using Zig version 0.14.0-dev. But when I run zig build and all other command have the same error like this:

/home/peter/ly/build.zig:32:33: error: no field named 'path' in union 'Build.LazyPath' .root_source_file = .{ .path = "src/main.zig" },

/home/peter/Downloads/zig-linux/lib/std/Build.zig:2185:22: note: union declared here pub const LazyPath = union(enum) {

referenced by: runBuild__anon_8808: /home/peter/Downloads/zig-linux/lib/std/Build.zig:2130:27 main: /home/peter/Downloads/zig-linux/lib/compiler/build_runner.zig:301:29 remaining reference traces hidden; use '-freference-trace' to see all reference traces

I have the same issue like the user Jabuxas in #614
Hope this information will help to fix the issue!
Thanks a lot!

@mookums
Copy link
Contributor

mookums commented Jun 15, 2024

@vexar-fantasy Try Zig 0.12.0

@AnErrupTion
Copy link
Collaborator

@vexar-fantasy This is most likely because Zig 0.13.0+ isn't supported by Ly yet. I do plan on adding support for it after #606 is merged.

@AnErrupTion AnErrupTion changed the title zig build error Zig 0.13.0+ build error Jun 16, 2024
@AnErrupTion AnErrupTion added the bug This issue or pull request discusses a bug label Jun 16, 2024
@nmarks413
Copy link

@vexar-fantasy zig is an ever changing language and has not hit 1.0 yet. Breaking changes happen nearly constantly, so whenever you want to compile a zig project, make sure you use the recommended version (in this case 0.12.0)

@andoan12
Copy link
Author

andoan12 commented Jun 27, 2024

yep, thanks a lot, and sorry for reply late

Have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request discusses a bug
Projects
None yet
Development

No branches or pull requests

4 participants