Skip to content

Instantly share code, notes, and snippets.

@schmee
Last active March 21, 2022 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmee/7cbc2c54be51fd826ab321373a321b18 to your computer and use it in GitHub Desktop.
Save schmee/7cbc2c54be51fd826ab321373a321b18 to your computer and use it in GitHub Desktop.
$ zig build -Denable-llvm=true -Dskip-run-translated-c=true -Dskip-non-native=true -Dtarget='x86_64-macos.10.15.7...10.15.7-gnu' test-stage2
Test [1/100] test ""... compiler [1/847] stage2 compile errors [5/5] update [2/3] thread 7970261 panic: reached unreachable code
/Users/johnschmidt/repos/zig/build/lib/zig/std/debug.zig:234:14: 0x103f877f8 in std.debug.assert (test)
if (!ok) unreachable; // assertion failure
^
/Users/johnschmidt/repos/zig/src/Module.zig:561:15: 0x10437573f in Module.Decl.zirBlockIndex (test)
assert(decl.zir_decl_index != 0);
^
/Users/johnschmidt/repos/zig/src/Module.zig:3861:47: 0x104237ddf in Module.semaDecl (test)
const zir_block_index = decl.zirBlockIndex();
^
/Users/johnschmidt/repos/zig/src/Module.zig:3515:38: 0x104211f4c in Module.ensureDeclAnalyzed (test)
const type_changed = mod.semaDecl(decl) catch |err| switch (err) {
^
/Users/johnschmidt/repos/zig/src/Compilation.zig:2806:38: 0x104060ab4 in Compilation.processOneJob (test)
module.ensureDeclAnalyzed(decl) catch |err| switch (err) {
^
/Users/johnschmidt/repos/zig/src/Compilation.zig:2685:30: 0x10404aae3 in Compilation.performAllTheWork (test)
try processOneJob(self, work_item, main_progress_node);
^
/Users/johnschmidt/repos/zig/src/Compilation.zig:2090:31: 0x103fdd57a in Compilation.update (test)
try comp.performAllTheWork();
^
/Users/johnschmidt/repos/zig/src/test.zig:934:28: 0x103fc2e40 in TestContext.runOneCase (test)
try comp.update();
^
/Users/johnschmidt/repos/zig/src/test.zig:669:23: 0x103fafd39 in TestContext.run (test)
runOneCase(
^
/Users/johnschmidt/repos/zig/src/test.zig:35:16: 0x103f8a855 in test "" (test)
try ctx.run();
^
/Users/johnschmidt/repos/zig/build/lib/zig/std/special/test_runner.zig:79:28: 0x103fb07b0 in std.special.main (test)
} else test_fn.func();
^
/Users/johnschmidt/repos/zig/build/lib/zig/std/start.zig:565:22: 0x104327bac in std.start.callMain (test)
root.main();
^
/Users/johnschmidt/repos/zig/build/lib/zig/std/start.zig:509:12: 0x103fb24d7 in std.start.callMainWithArgs (test)
return @call(.{ .modifier = .always_inline }, callMain, .{});
^
/Users/johnschmidt/repos/zig/build/lib/zig/std/start.zig:474:12: 0x103fb2415 in std.start.main (test)
return @call(.{ .modifier = .always_inline }, callMainWithArgs, .{ @intCast(usize, c_argc), c_argv, envp });
^
???:?:?: 0x7fff68290cc8 in ??? (???)
???:?:?: 0x1 in ??? (???)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment