Skip to content

(error): no field named 'root_source_file' in struct 'Build.ExecutableOptions' #3

Description

@thecodebreeze

On a newly cloned version of the repository, when running zig build I get this error:

build.zig:9:10: error: no field named 'root_source_file' in struct 'Build.ExecutableOptions'
        .root_source_file = .{ .cwd_relative = "src/main.zig" },
         ^~~~~~~~~~~~~~~~
/usr/lib/zig/std/Build.zig:771:31: note: struct declared here
pub const ExecutableOptions = struct {
                              ^~~~~~
referenced by:
    runBuild__anon_23564: /usr/lib/zig/std/Build.zig:2214:33
    main: /usr/lib/zig/compiler/build_runner.zig:366:29
    5 reference(s) hidden; use '-freference-trace=7' to see all references

I'm running:

  • Zig 0.15.2
  • Linux 6.17.13-hardened
  • clang/llvm 20
  • latest MESA drivers (vulkan support is active and working fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions