ITADN

Failed to build with 0.15.1 and master

#227Closedanta40 创建于 2025-09-12
A
anta40commented
I'm on macOS 15.6.1 (Apple Sillicon) with 2 zigs installed: ``` $ zvm ls 0.15.1 master ``` Make sure the default zig compiler is 0.15.1 `$ zvm use 0.15.1` Now create a Jetzig project and try to run it ``` $ jetzig init test01 Creating new project in /Users/andretampubolon/Codes/Zig/test01 [create] build.zig ✅ [create] config/database.zig ✅ [create] src/main.zig ✅ [create] src/app/middleware/DemoMiddleware.zig ✅ [create] src/app/views/root.zig ✅ [create] src/app/views/root/index.zmpl ✅ [create] src/app/views/root/_content.zmpl ✅ [create] public/jetzig.png ✅ [create] public/zmpl.png ✅ [create] public/favicon.ico ✅ [create] public/styles.css ✅ [create] .gitignore ✅ (working) . (done) ✅ zig fetch --save https://github.com/jetzig-framework/jetzig/archive/b6e0028f46505e0bb9283185ee927ff9c2a3cc49.tar.gz Setup complete! ✈️ 🦎 Launch your new application: $ cd /Users/andretampubolon/Codes/Zig/test01 $ zig build run or jetzig server And then browse to http://localhost:8080/ $ cd test01 $ jetzig server Launching development server. [reload:enabled] (working) ... (done) ❌ [stderr]: build.zig:10:10: error: no field named 'root_source_file' in struct 'Build.ExecutableOptions' .root_source_file = b.path("src/main.zig"), ^~~~~~~~~~~~~~~~ /Users/andretampubolon/.zvm/0.15.1/lib/std/Build.zig:771:31: note: struct declared here pub const ExecutableOptions = struct { ^~~~~~ referenced by: runBuild__anon_21153: /Users/andretampubolon/.zvm/0.15.1/lib/std/Build.zig:2215:44 main: /Users/andretampubolon/.zvm/0.15.1/lib/compiler/build_runner.zig:366:29 4 reference(s) hidden; use '-freference-trace=6' to see all references Build failed, waiting for file change... ``` The same error applies after I switch to master and try to build another new project.
关闭于 2026-01-25 24 条评论