zig
zig copied to clipboard
test\standalone\mix_c_files failing in the LLVM16 branch on Windows
Zig Version
0.11.0-dev.1869+df4cfc2ec
Steps to Reproduce and Observed Behavior
On Windows:
zig build test-standalone
error: TestUnexpectedResult
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\start.zig:516:80: 0x7ff7f31a0c48 in main (test.exe.lto.obj)
return @call(.always_inline, callMainWithArgs, .{ @intCast(usize, c_argc), @ptrCast([*][*:0]u8, c_argv), envp });
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\start.zig:516:80: 0x7ff7f31a0c50 in main (test.exe.lto.obj)
return @call(.always_inline, callMainWithArgs, .{ @intCast(usize, c_argc), @ptrCast([*][*:0]u8, c_argv), envp });
^
The following command exited with code 1 (expected exited with code 0):
cd D:\a\zig\zig\test\standalone\mix_c_files && D:\a\zig\zig\test\standalone\mix_c_files\zig-cache\o\010d375bd278a4bfff5e44dacaa16c99\test.exe
error: UnexpectedExit
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\Build\RunStep.zig:424:9: 0x7ff63a648b60 in runCommand (build.exe.obj)
return error.UnexpectedExit;
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\Build\RunStep.zig:290:5: 0x7ff63a62c453 in make (build.exe.obj)
try runCommand(
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\Build\Step.zig:75:5: 0x7ff63a59a43d in make (build.exe.obj)
try self.makeFn(self);
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\Build.zig:763:5: 0x7ff63a587735 in makeOneStep (build.exe.obj)
try s.make();
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\Build.zig:757:13: 0x7ff63a5876e1 in makeOneStep (build.exe.obj)
return err;
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\std\Build.zig:718:9: 0x7ff63a587479 in make (build.exe.obj)
try self.makeOneStep(s);
^
D:\a\zig\zig\build-debug\stage3-debug\lib\zig\build_runner.zig:259:21: 0x7ff63a58aa74 in main (build.exe.obj)
else => return err,
^
error: the following build command failed with exit code 1:
D:\a\zig\zig\test\standalone\mix_c_files\zig-cache\o\033a1ba26f43b9d82b6ac2c9cc0b3131\build.exe D:\a\zig\zig\build-debug\stage3-debug\bin\zig.exe D:\a\zig\zig\test\standalone\mix_c_files D:\a\zig\zig\test\standalone\mix_c_files\zig-cache C:\Users\runneradmin\AppData\Local\zig test -Doptimize=ReleaseSafe
The following command exited with code 1 (expected exited with code 0):
cd D:\a\zig\zig && build-debug\stage3-debug\bin\zig.exe build --build-file D:\a\zig\zig\test\standalone\mix_c_files\build.zig test -Doptimize=ReleaseSafe
error: UnexpectedExit
D:\a\zig\zig\lib\std\Build\RunStep.zig:424:9: 0x7ff717477740 in runCommand (build.exe.obj)
return error.UnexpectedExit;
^
D:\a\zig\zig\lib\std\Build\RunStep.zig:290:5: 0x7ff71742d033 in make (build.exe.obj)
try runCommand(
^
D:\a\zig\zig\lib\std\Build\Step.zig:75:5: 0x7ff7173ab6bd in make (build.exe.obj)
try self.makeFn(self);
^
D:\a\zig\zig\lib\std\Build.zig:763:5: 0x7ff717387735 in makeOneStep (build.exe.obj)
try s.make();
^
D:\a\zig\zig\lib\std\Build.zig:757:13: 0x7ff7173876e1 in makeOneStep (build.exe.obj)
return err;
^
D:\a\zig\zig\lib\std\Build.zig:757:13: 0x7ff7173876e1 in makeOneStep (build.exe.obj)
return err;
^
D:\a\zig\zig\lib\std\Build.zig:757:13: 0x7ff7173876e1 in makeOneStep (build.exe.obj)
return err;
^
D:\a\zig\zig\lib\std\Build.zig:718:9: 0x7ff717387479 in make (build.exe.obj)
try self.makeOneStep(s);
^
D:\a\zig\zig\lib\build_runner.zig:259:21: 0x7ff71738aa74 in main (build.exe.obj)
else => return err,
^
The same issue is happening on the CI for:
- x86_64-windows debug
- x86_64-windows release
- aarch64-windows
Expected Behavior
Test passed.