Zig Version
0.16.0
Steps to Reproduce, Observed Behavior, and Expected Behavior
I've installed river Wayland compositor with the following command:
zig build -Doptimize=ReleaseSafe -Dxwayland -Dman-pages --prefix ~/.local install
It worked fine as expected.
Now, when I try to uninstall river with zig build ... --prefix ~/.local uninstall, the application panics with the following message:
thread 9576 panic: TODO implement https://github.com/ziglang/zig/issues/14943
The linked Github issues is from 2023 and still marked as "open". I couldn't find a similar issue on Codeberg.
Thus, my question is: is this a known bug of Zig (as the error message suggests, since there is no function from the river build fn in the error backtrace) or might it be related to river?
Here is the full error output:
$ zig 0.16.0 build uninstall
anyzig: appdata '/home/lukeflo/.local/share/anyzig'
anyzig: zig '0.16.0' already exists at '/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ'
thread 9576 panic: TODO implement https://github.com/ziglang/zig/issues/14943
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Build.zig:1133:5: 0x162aa83 in makeUninstall (std.zig)
@panic("TODO implement https://github.com/ziglang/zig/issues/14943");
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Build/Step.zig:278:33: 0x1481a7f in make (std.zig)
const make_result = s.makeFn(s, options);
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/compiler/build_runner.zig:1345:26: 0x147fabe in makeStep (build_runner.zig)
} else if (s.make(.{
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Io.zig:1245:17: 0x147f6e5 in start (std.zig)
_ = @as(Cancelable!void, @call(.auto, function, args_casted.*)) catch {};
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Io/Threaded.zig:552:22: 0x1238285 in start (std.zig)
task.func(task.contextPointer());
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Io/Threaded.zig:1797:29: 0x1236484 in worker (std.zig)
runnable.startFn(runnable, &thread, t);
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Thread.zig:422:13: 0x1236165 in callFn__anon_27784 (std.zig)
@call(.auto, f, args);
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/Thread.zig:1431:30: 0x1235f20 in entryFn (std.zig)
return callFn(f, self.fn_args);
^
/home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib/std/os/linux/x86_64.zig:105:5: 0x1236085 in clone (std.zig)
asm volatile (
^
error: the following build command terminated with signal ABRT:
.zig-cache/o/2bfaa306a60e22ba5855ba83647f9d06/build /home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/zig /home/lukeflo/.cache/zig/p/N-V-__8AAFFSVRWqblwBIcA-Yqv-u7sbjsJoww8K0mWaHbmJ/lib /home/lukeflo/Documents/packages/river .zig-cache /home/lukeflo/.cache/zig --seed 0xf20196f0 -Z0e8945cf17853a71 uninstall
Of course, its possible I've overlooked something. If thats the case, sorry for the noise...