buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.15k stars 31 forks source link

Can't build #244

Closed Jipok closed 6 months ago

Jipok commented 6 months ago

./zig-linux-x86_64-0.11.0/zig build run

~/dev/buzz/build.zig:109:30: error: struct 'child_process.ChildProcess' has no member named 'run'
            (std.ChildProcess.run(.{
             ~~~~~~~~~~~~~~~~^~~~
zig-linux-x86_64-0.11.0/lib/std/child_process.zig:20:26: note: struct declared here
pub const ChildProcess = struct {
                         ^~~~~~
referenced by:
    runBuild__anon_7185: zig-linux-x86_64-0.11.0/lib/std/Build.zig:1639:37
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

./zig-linux-x86_64-0.12.0-dev.2059+42389cb9c/zig build

~/dev/buzz/build.zig:3:18: error: root struct of file 'std' has no member named 'build'
const Build = std.build;
              ~~~^~~~~~
zig-linux-x86_64-0.12.0-dev.2059+42389cb9c/lib/std/std.zig:1:1: note: struct declared here
pub const ArrayHashMap = array_hash_map.ArrayHashMap;
^~~
referenced by:
    build: /home/kiv/dev/jlang/buzz/build.zig:92:18
    runBuild__anon_8087: zig/lib/std/Build.zig:1849:50
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
giann commented 6 months ago

See my comment here: https://github.com/buzz-language/buzz/issues/243#issuecomment-1878813674 The repo is currently not exactly up to date with zig nightly.

The situation will soon be corrected. In the meantime you can either use the 0.3.0 binaries or try to pull the zig version 0.12.0-dev.1253+b798aaf49.