Giter Site home page Giter Site logo

Comments (3)

xiusin avatar xiusin commented on May 27, 2024

when run zig build basic get some error:

-> % zig build basic
Unable to spawn zig-cache/basic: FileNotFound
error: FileNotFound
/opt/zig/lib/zig/std/mem.zig:55:13: 0x258f06 in std.mem.Allocator.noResize (build)
            return error.OutOfMemory;
            ^
/opt/zig/lib/zig/std/mem.zig:49:9: 0x2522ab in std.mem.Allocator.callResizeFn (build)
        return self.resizeFn(self, buf, new_len, len_align);
        ^
/opt/zig/lib/zig/std/mem.zig:55:13: 0x258f06 in std.mem.Allocator.noResize (build)
            return error.OutOfMemory;
            ^
/opt/zig/lib/zig/std/mem.zig:49:9: 0x2522ab in std.mem.Allocator.callResizeFn (build)
        return self.resizeFn(self, buf, new_len, len_align);
        ^
/opt/zig/lib/zig/std/os.zig:2148:19: 0x271afc in std.os.mkdiratZ (build)
        EEXIST => return error.PathAlreadyExists,
                  ^
/opt/zig/lib/zig/std/os.zig:2109:9: 0x2719cb in std.os.mkdirat (build)
        return mkdiratZ(dir_fd, &sub_dir_path_c, mode);
        ^
/opt/zig/lib/zig/std/fs.zig:879:9: 0x271866 in std.fs.Dir.makeDir (build)
        try os.mkdirat(self.fd, sub_path, default_new_dir_mode);
        ^
/opt/zig/lib/zig/std/mem.zig:55:13: 0x258f06 in std.mem.Allocator.noResize (build)
            return error.OutOfMemory;
            ^
/opt/zig/lib/zig/std/mem.zig:49:9: 0x2522ab in std.mem.Allocator.callResizeFn (build)
        return self.resizeFn(self, buf, new_len, len_align);
        ^
/opt/zig/lib/zig/std/mem.zig:55:13: 0x258f06 in std.mem.Allocator.noResize (build)
            return error.OutOfMemory;
            ^
/opt/zig/lib/zig/std/mem.zig:49:9: 0x2522ab in std.mem.Allocator.callResizeFn (build)
        return self.resizeFn(self, buf, new_len, len_align);
        ^
/opt/zig/lib/zig/std/os.zig:2148:19: 0x271afc in std.os.mkdiratZ (build)
        EEXIST => return error.PathAlreadyExists,
                  ^
/opt/zig/lib/zig/std/os.zig:2109:9: 0x2719cb in std.os.mkdirat (build)
        return mkdiratZ(dir_fd, &sub_dir_path_c, mode);
        ^
/opt/zig/lib/zig/std/fs.zig:879:9: 0x271866 in std.fs.Dir.makeDir (build)
        try os.mkdirat(self.fd, sub_path, default_new_dir_mode);
        ^
/opt/zig/lib/zig/std/child_process.zig:241:9: 0x29b2fb in std.child_process.ChildProcess.waitPosix (build)
        return self.term.?;
        ^
/opt/zig/lib/zig/std/child_process.zig:172:13: 0x28dfe7 in std.child_process.ChildProcess.wait (build)
            return self.waitPosix();
            ^
/opt/zig/lib/zig/std/build/run.zig:197:13: 0x28477d in std.build.run.RunStep.make (build)
            return err;
            ^
/opt/zig/lib/zig/std/build.zig:2465:9: 0x27286e in std.build.Step.make (build)
        try self.makeFn(self);
        ^
/opt/zig/lib/zig/std/build.zig:405:9: 0x271315 in std.build.Builder.makeOneStep (build)
        try s.make();
        ^
/opt/zig/lib/zig/std/build.zig:399:17: 0x2712bc in std.build.Builder.makeOneStep (build)
                return err;
                ^
/opt/zig/lib/zig/std/build.zig:360:13: 0x260817 in std.build.Builder.make (build)
            try self.makeOneStep(s);
            ^
/opt/zig/lib/zig/std/special/build_runner.zig:125:21: 0x257c8b in main (build)
            else => return err,
                    ^

Build failed. The following command failed:
/mnt/e/projects/src/github.com/xiusin/routez/zig-cache/o/1RkhEvxqkO_5UcR52abDG1vBOcBb0vz1MUSOv1uFNT-uYZfIlP-DUlOzGbPh1Jml/build /opt/zig/zig /mnt/e/projects/src/github.com/xiusin/routez /mnt/e/projects/src/github.com/xiusin/routez/z
ig-cache basic

from routez.

Vexu avatar Vexu commented on May 27, 2024

Looks like the build system is having trouble finding the executable. Do you see the basic executable in your zig-cache directory? Does running zig build test work?

from routez.

xiusin avatar xiusin commented on May 27, 2024

basic can be found under zig-cache (basic can also be executed normally), but exec zig build basic will result in some errors

from routez.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.