Closed
Description
Zig Version
Steps to Reproduce and Observed Behavior
Getting this error this morning, latest git ref:
[100%] Building stage3
thread 216084 panic: reached unreachable code
~/zig/lib/std/debug.zig:406:14: 0x14a655d in assert (build)
if (!ok) unreachable; // assertion failure
^
~/zig/lib/std/zig/system.zig:1024:15: 0x151c9c7 in resolveElfFileRecursively (build)
assert(std.fs.path.isAbsolute(current_path));
^
~/zig/lib/std/zig/system.zig:1202:54: 0x14c9043 in detectAbiAndDynamicLinker (build)
break :try_path resolveElfFileRecursively(cwd, start_path) catch |err| switch (err) {
^
~/zig/lib/std/zig/system.zig:402:47: 0x14bac2f in resolveTargetQuery (build)
var result = try detectAbiAndDynamicLinker(cpu, os, query);
^
~/zig/lib/compiler/build_runner.zig:81:60: 0x14b46eb in main (build)
.result = try std.zig.system.resolveTargetQuery(.{}),
^
~/zig/lib/std/start.zig:656:37: 0x14a2202 in posixCallMainAndExit (build)
const result = root.main() catch |err| {
^
~/zig/lib/std/start.zig:271:5: 0x14a1ded in _start (build)
asm volatile (switch (native_arch) {
^
???:?:?: 0x0 in ??? (???)
error: the following build command crashed:
~/zig/.zig-cache/o/870e50c2aff81ffee3616827801d1ede/build ~/zig/build/zig2 ~/zig/lib ~/zig ~/zig/.zig-cache ~/.cache/zig --seed 0xb0b9a0e1 -Z47fc2f1651da8e67 --prefix ~/zig/build/stage3 -Dversion-string=0.14.0-dev.2878+d652dd065 -Dtarget=native -Dcpu=native -Denable-llvm -Dconfig_h=~/zig/build/config.h -Dno-langref -Doptimize=ReleaseFast -Dstrip
make[2]: *** [CMakeFiles/stage3.dir/build.make:73: stage3/bin/zig] Error 1
make[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/stage3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Some cpu info, using Ubuntu 24.04.
$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 25
model : 97
model name : AMD Ryzen 9 7950X3D 16-Core Processor
stepping : 2
microcode : 0xa601209
cpu MHz : 545.000
cache size : 1024 KB
physical id : 0
siblings : 32
core id : 0
cpu cores : 16
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 16
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
bugs : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass srso
bogomips : 8383.69
TLB size : 3584 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
Expected Behavior
It should build.