I receive the following internal compile error:
❯ zig build test --fuzz
info(web_server): web interface listening at http://[::1]:38197/
info(web_server): hint: pass '--webui=[::1]:38197' to use the same port next time
Build Summary: 3/3 steps succeeded; 1/1 tests passed
test
└─ run test
└─ compile test Debug native 1 errors
/usr/lib/zig/compiler/test_runner.zig:566:55: error: expected type '*const debug.StackTrace', found '*builtin.StackTrace'
std.debug.writeStackTrace(trace, stderr) catch break :p;
^~~~~
/usr/lib/zig/compiler/test_runner.zig:566:55: note: pointer type child 'builtin.StackTrace' cannot cast into pointer type child 'debug.StackTrace'
/usr/lib/zig/std/builtin.zig:11:24: note: struct declared here
pub const StackTrace = struct {
^~~~~~
/usr/lib/zig/std/debug.zig:604:24: note: struct declared here
pub const StackTrace = struct {
^~~~~~
/usr/lib/zig/std/debug.zig:824:28: note: parameter type declared here
pub fn writeStackTrace(st: *const StackTrace, t: Io.Terminal) Writer.Error!void {
^~~~~~~~~~~~~~~~~
referenced by:
fuzz__anon_48913: /usr/lib/zig/compiler/test_runner.zig:589:41
fuzz [inlined]: /usr/lib/zig/std/testing.zig:1232:32
test.fuzz parser: src/parser.zig:867:25
error: 1 compilation errors
failed command: /usr/bin/zig test -ffuzz -ODebug -Mroot=/home/max/Documents/programming/github/ironmatch/src/parser.zig --cache-dir .zig-cache --global-cache-dir /home/max/.cache/zig --name test --zig-lib-dir /usr/lib/zig/ --listen=-
error: one or more unit tests failed to be rebuilt in fuzz mode
error: the following build command failed with exit code 1:
.zig-cache/o/bbf98b5211b68f8544003036256c057a/build /usr/bin/zig /usr/lib/zig /home/max/Documents/programming/github/ironmatch .zig-cache /home/max/.cache/zig --seed 0x7a2a62a7 -Z015a4ad1ae65fe37 test --fuzz
For details see below