grub-mkrescue: error: `mformat` invocation failed
Closed this issue · 2 comments
glyh commented
I tried to run zig build, but I got this:
The following command exited with error code 1 (expected 0):
cd /home/lyh/Documents/CS/OS/pluto && ./makeiso.sh /home/lyh/Documents/CS/OS/pluto/zig-out/iso/boot /home/lyh/Documents/CS/OS/pluto/zig-out/iso/modules /home/lyh/Documents/CS/OS/pluto/zig-out/iso /home/lyh/Documents/CS/OS/pluto/zig-out/pluto.elf /home/lyh/Documents/CS/OS/pluto/zig-out/initrd.ramdisk /home/lyh/Documents/CS/OS/pluto/zig-out/pluto.iso
error: UnexpectedExitCode
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2714:19: 0x2cc922 in std.os.readlinkZ (build)
.INVAL => return error.NotLink,
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2693:9: 0x2cd672 in std.os.readlink (build)
return readlinkZ(&file_path_c, out_buffer);
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2418:19: 0x2afb6b in std.os.mkdiratZ (build)
.EXIST => return error.PathAlreadyExists,
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2380:9: 0x2afa53 in std.os.mkdirat (build)
return mkdiratZ(dir_fd, &sub_dir_path_c, mode);
^
/home/lyh/.zvm/0.9.1/lib/std/fs.zig:1261:9: 0x2af946 in std.fs.Dir.makeDir (build)
try os.mkdirat(self.fd, sub_path, default_new_dir_mode);
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2418:19: 0x2afb6b in std.os.mkdiratZ (build)
.EXIST => return error.PathAlreadyExists,
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2380:9: 0x2afa53 in std.os.mkdirat (build)
return mkdiratZ(dir_fd, &sub_dir_path_c, mode);
^
/home/lyh/.zvm/0.9.1/lib/std/fs.zig:1261:9: 0x2af946 in std.fs.Dir.makeDir (build)
try os.mkdirat(self.fd, sub_path, default_new_dir_mode);
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2418:19: 0x2afb6b in std.os.mkdiratZ (build)
.EXIST => return error.PathAlreadyExists,
^
/home/lyh/.zvm/0.9.1/lib/std/os.zig:2380:9: 0x2afa53 in std.os.mkdirat (build)
return mkdiratZ(dir_fd, &sub_dir_path_c, mode);
^
/home/lyh/.zvm/0.9.1/lib/std/fs.zig:1261:9: 0x2af946 in std.fs.Dir.makeDir (build)
try os.mkdirat(self.fd, sub_path, default_new_dir_mode);
^
/home/lyh/.zvm/0.9.1/lib/std/build/RunStep.zig:238:17: 0x2d50c0 in std.build.RunStep.make (build)
return error.UnexpectedExitCode;
^
/home/lyh/.zvm/0.9.1/lib/std/build.zig:3201:9: 0x2b0d7e in std.build.Step.make (build)
try self.makeFn(self);
^
/home/lyh/.zvm/0.9.1/lib/std/build.zig:502:9: 0x2af41c in std.build.Builder.makeOneStep (build)
try s.make();
^
/home/lyh/.zvm/0.9.1/lib/std/build.zig:496:17: 0x2af3c8 in std.build.Builder.makeOneStep (build)
return err;
^
/home/lyh/.zvm/0.9.1/lib/std/build.zig:457:13: 0x29ebc1 in std.build.Builder.make (build)
try self.makeOneStep(s);
^
/home/lyh/.zvm/0.9.1/lib/std/special/build_runner.zig:213:21: 0x293624 in main (build)
else => return err,
^
error: the following build command failed with exit code 1:
/home/lyh/Documents/CS/OS/pluto/zig-cache/o/38d7c81fc25fb94e944230497698c1bc/build /home/lyh/.zvm/0.9.1/zig /home/lyh/Documents/CS/OS/pluto /home/lyh/Documents/CS/OS/pluto/zig-cache /home/lyh/.cache/zig
My OS version: Linux arch 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux
My zig version: 0.9.1
glyh commented
This solves it
https://bbs.archlinux.org/viewtopic.php?id=219955
SamTebbs33 commented
Thanks for notifying us about this. The readme is missing mtools as a dependency so I'll add that. Please also feel free to raise a PR that adds that information.