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

Build failure with zig 0.13 #66

Open
carlocab opened this issue Sep 13, 2024 · 0 comments
Open

Build failure with zig 0.13 #66

carlocab opened this issue Sep 13, 2024 · 0 comments

Comments

@carlocab
Copy link

carlocab commented Sep 13, 2024

Running zig build fails with the latest release of zig (0.13) with:

❯ zig build
/private/tmp/fastfec-0.2.0/build.zig:43:20: error: member function expected 1 argument(s), found 2
        fastfec_cli.addCSourceFiles(&libSources, &buildOptions);
        ~~~~~~~~~~~^~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/zig/0.13.0/lib/zig/std/Build/Step/Compile.zig:782:5: note: function declared here
pub fn addCSourceFiles(compile: *Compile, options: Module.AddCSourceFilesOptions) void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    runBuild__anon_8415: /opt/homebrew/Cellar/zig/0.13.0/lib/zig/std/Build.zig:2117:37
    main: /opt/homebrew/Cellar/zig/0.13.0/lib/zig/compiler/build_runner.zig:301:29
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

zig build also broke in 0.11 (see #61, fixed in #62). A longer-term solution may be to use a more stable build system (e.g. standard Makefiles, or CMake).

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

No branches or pull requests

1 participant