pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lang/zig build failure
Hi,
Has anybody been able to build lang/zig on a recent -current or 10-Beta? I
am getting (when using pkgsrc):
[ 98%] Linking CXX executable zig1
[ 98%] Built target zig1
[ 99%] Building stage2 object /usr/pkgsrc/lang/zig/work/zig-0.10.0/zig2.o
./lib/std/Thread/Futex.zig:724:33: error: expected integer type, found
'comptime_int'
return addr >> @ctz(alignment);
^
./lib/std/os.zig:5300:17: error: querying for canonical path of a handle is
unsupported on this host
else => @compileError("querying for canonical path of a handle is
unsupported on this host"),
^
./lib/std/fs.zig:60:38: error: container 'std.os' has no member called
'MAXNAMLEN'
.netbsd, .openbsd, .solaris => os.MAXNAMLEN,
^
The git version of zig apparently has been touched lately, post 0.10;
today, I am able to build zig2 (using llvm-15.0.6 from pkgsrc), but the
build of zig3 fails:
...
(gdb) bt
#0 0x0000000000fbb5f9 in Air_typeOfIndex (a0=..., a1=<error reading
variable: Cannot access memory at address 0x7f7fff0c0f5c>) at
/home/xci/src/zig/build/zig2.c:1121743 #1 0x0000000000ab20ce in
Air_typeOf (a0=..., a1=14979) at /home/xci/src/zig/build/zig2.c:651126
#2
0x0000000000876790 in Sema_typeOf (a0=0x7f7fff4a7c30, a1=14979) at
/home/xci/src/zig/build/zig2.c:435182
#3 0x0000000000fdf1c4 in
Sema_resolveMaybeUndefValAllowVariablesMaybeRuntime (a0=0x7f7fff4a7c30,
a1=14979, a2=0x7f7fff0c1e57) at /home/xci/src/zig/build/zig2.c:1135472
#4 0x0000000000ad9799 in Sema_resolveMaybeUndefValAllowVariables
(a0=0x7f7fff4a7c30, a1=14979) at /home/xci/src/zig/build/zig2.c:665451
#5 0x0000000000f8880b in
Sema_resolveMaybeUndefVal (a0=0x7f7fff4a7c30, a1=14979) at
/home/xci/src/zig/build/zig2.c:1099919
#6 0x0000000000acfae4 in Sema_coerceExtra (a0=0x7f7fff4a7c30,
a1=0x7f7fff0cc110, a2=..., a3=14979, a4=..., a5=...) at
/home/xci/src/zig/build/zig2.c:662501 #7
0x000000000087688e in Sema_coerce (a0=0x7f7fff4a7c30, a1=0x7f7fff0cc110,
a2=..., a3=14979, a4=...) at /home/xci/src/zig/build/zig2.c:435225
#8 0x000000000137f5d4 in Sema_analyzeSlice
(a0=0x7f7fff4a7c30, a1=0x7f7fff0cc110, a2=..., a3=2508, a4=14979, a5=0,
a6=0, a7=...) at /home/xci/src/zig/build/zig2.c:1471304 #9
0x0000000000e7ddc9 in Sema_zirSliceStart (a0=0x7f7fff4a7c30,
a1=0x7f7fff0cc110, a2=10939) at /home/xci/src/zig/build/zig2.c:1009998
#10 0x0000000000a79c82 in
Sema_analyzeBodyInner (a0=0x7f7fff4a7c30, a1=0x7f7fff0cc110, a2=...) at
/home/xci/src/zig/build/zig2.c:626594
#11 0x0000000000862ced in Sema_analyzeBodyBreak (a0=0x7f7fff4a7c30,
a1=0x7f7fff0cc110, a2=...) at /home/xci/src/zig/build/zig2.c:426969
#12 0x000000000133daa9 in Sema_resolveBody
(a0=0x7f7fff4a7c30, a1=0x7f7fff0cc110, a2=..., a3=10936) at
/home/xci/src/zig/build/zig2.c:1445076 #13
0x0000000000e5b0f1 in Sema_zirCall (a0=0x7f7fff4a7c30, a1=0x7f7fff0cc110,
a2=10936) at /home/xci/src/zig/build/zig2.c:996823
#14 0x0000000000a74f72 in Sema_analyzeBodyInner
(a0=0x7f7fff4a7c30, a1=0x7f7fff0cc110, a2=...) at
/home/xci/src/zig/build/zig2.c:624948
#15 0x00000000013980a0 in Sema_resolveBlockBody (a0=0x7f7fff4a7c30,
a1=0x7f7fff0cec60, a2=..., a3=0x7f7fff0cc110, a4=..., a5=10930,
a6=0x7f7fff0cc1d8) at
/home/xci/src/zig/build/zig2.c:1478402
#16 0x0000000000f83ed1 in Sema_zirBlock (a0=0x7f7fff4a7c30,
a1=0x7f7fff0cec60, a2=10930) at /home/xci/src/zig/build/zig2.c:1098279
#17 0x0000000000a8a2c8 in
Sema_analyzeBodyInner (a0=0x7f7fff4a7c30, a1=0x7f7fff0cec60, a2=...) at
/home/xci/src/zig/build/zig2.c:632101
#18 0x0000000000e821a5 in Sema_analyzeBodyRuntimeBreak (a0=0x7f7fff4a7c30,
a1=0x7f7fff0cec60, a2=...) at /home/xci/src/zig/build/zig2.c:1011568
#19 0x0000000000f8757c in Sema_zirCondbr
(a0=0x7f7fff4a7c30, a1=0x7f7fff0d1810, a2=10927) at
/home/xci/src/zig/build/zig2.c:1099585
#20 0x0000000000a8c45f in Sema_analyzeBodyInner (a0=0x7f7fff4a7c30,
a1=0x7f7fff0d1810, a2=...) at /home/xci/src/zig/build/zig2.c:632636
#21 0x00000000013980a0 in
Sema_resolveBlockBody (a0=0x7f7fff4a7c30, a1=0x7f7fff0d4360, a2=...,
a3=0x7f7fff0d1810, a4=..., a5=10928, a6=0x7f7fff0d18d8)
at /home/xci/src/zig/build/zig2.c:1478402
#22 0x0000000000f83ed1 in Sema_zirBlock (a0=0x7f7fff4a7c30,
a1=0x7f7fff0d4360, a2=10928) at /home/xci/src/zig/build/zig2.c:1098279
#23 0x0000000000a8a2c8 in
Sema_analyzeBodyInner (a0=0x7f7fff4a7c30, a1=0x7f7fff0d4360, a2=...) at
/home/xci/src/zig/build/zig2.c:632101
#24 0x0000000000e821a5 in Sema_analyzeBodyRuntimeBreak (a0=0x7f7fff4a7c30,
a1=0x7f7fff0d4360, a2=...) at /home/xci/src/zig/build/zig2.c:1011568
#25 0x0000000000f87e34 in Sema_zirCondbr
(a0=0x7f7fff4a7c30, a1=0x7f7fff0d6f10, a2=10901) at
/home/xci/src/zig/build/zig2.c:1099728
#26 0x0000000000a8c45f in Sema_analyzeBodyInner (a0=0x7f7fff4a7c30,
a1=0x7f7fff0d6f10, a2=...) at /home/xci/src/zig/build/zig2.c:632636
#27 0x00000000013980a0 in
Sema_resolveBlockBody (a0=0x7f7fff4a7c30, a1=0x7f7fff0d9a60, a2=...,
a3=0x7f7fff0d6f10, a4=..., a5=10902, a6=0x7f7fff0d6fd8)
....
the break at /home/xci/src/zig/build/zig2.c:632101 is repeated a few
hundred times, then it ends with
....
build/zig2.c:1478402
#1099 0x0000000000f83ed1 in Sema_zirBlock (a0=0x7f7fff4a7c30,
a1=0x7f7fff4a7a40, a2=2886) at /home/xci/src/zig/build/zig2.c:1098279
#1100 0x0000000000a8a2c8 in Sema_analyzeBodyInner (a0=0x7f7fff4a7c30,
a1=0x7f7fff4a7a40, a2=...) at /home/xci/src/zig/build/zig2.c:632101
#1101 0x0000000000a2d707 in Sema_analyzeBody (a0=0x7f7fff4a7c30,
a1=0x7f7fff4a7a40, a2=...) at /home/xci/src/zig/build/zig2.c:599393
#1102 0x0000000000a31177 in Module_analyzeFnBody (a0=0x7723911966d8,
a1=0x772391b9ab40, a2=...) at /home/xci/src/zig/build/zig2.c:600446
#1103 0x000000000084444b in Module_ensureFuncBodyAnalyzed
(a0=0x7723911966d8, a1=0x772391b9ab40) at
/home/xci/src/zig/build/zig2.c:415990
#1104 0x000000000067b9c1 in Compilation_processOneJob (a0=0x772391f8c018,
a1=...) at /home/xci/src/zig/build/zig2.c:254120
#1105 0x000000000067f80c in Compilation_performAllTheWork
(a0=0x772391f8c018, a1=0x7f7fff4ab610) at
/home/xci/src/zig/build/zig2.c:255397
#1106 0x00000000004de32b in Compilation_update (a0=0x772391f8c018) at
/home/xci/src/zig/build/zig2.c:154182
#1107 0x0000000000500f93 in main_updateModule (a0=..., a1=0x772391f8c018,
a2=...) at /home/xci/src/zig/build/zig2.c:161339
#1108 0x0000000000568f70 in main_buildOutputType (a0=..., a1=..., a2=...,
a3=...) at /home/xci/src/zig/build/zig2.c:179380
#1109 0x000000000045144a in main_mainArgs (a0=..., a1=..., a2=...) at
/home/xci/src/zig/build/zig2.c:109453
#1110 0x000000000044edc8 in main_main () at
/home/xci/src/zig/build/zig2.c:108387
#1111 0x000000000044efea in main (a0=41, a1=0x7f7fff4bf3f8,
a2=0x7f7fff4bf548) at /home/xci/src/zig/build/zig2.c:108459
(gdb)
The above seems either a compiler bug, or some lack of a resource, no idea.
--
----
Chavdar Ivanov
Home |
Main Index |
Thread Index |
Old Index