pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lang/zig 0.10 build failures
Hi,
Under -current from a day before, amd64, with fully upgraded pkgsrc (after
pkg_rolling-replace), I get:
....
[ 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,
^
*** Error code 1
...
Likewise, under Ubuntu 22.10 Aarch64, again pkgsrc updated as above, I get:
.....
[ 99%] Building CXX object CMakeFiles/zig2.dir/src/stage1/empty.cpp.o
[100%] Linking CXX executable zig2
/usr/bin/ld: zig2.o: in function `codegen.llvm.initializeLLVMTarget':
/usr/pkgsrc/lang/zig/work/zig-0.10.0/src/codegen/llvm.zig:9882: undefined
reference to `LLVMInitializeVETarget'
/usr/bin/ld:
/usr/pkgsrc/lang/zig/work/zig-0.10.0/src/codegen/llvm.zig:9883: undefined
reference to `LLVMInitializeVETargetInfo'
/usr/bin/ld:
/usr/pkgsrc/lang/zig/work/zig-0.10.0/src/codegen/llvm.zig:9884: undefined
reference to `LLVMInitializeVETargetMC'
/usr/bin/ld:
/usr/pkgsrc/lang/zig/work/zig-0.10.0/src/codegen/llvm.zig:9885: undefined
reference to `LLVMInitializeVEAsmPrinter'
/usr/bin/ld:
/usr/pkgsrc/lang/zig/work/zig-0.10.0/src/codegen/llvm.zig:9886: undefined
reference to `LLVMInitializeVEAsmParser'
collect2: error: ld returned 1 exit status
--- zig2 ---
*** [zig2] Error code 1
....
By the way, the remark in the GitHub repo about zig2.o needing at least 9.1
Gb to build is indeed true, I had to stop a number of services on the
Ubuntu VM (a dual Ampere CPU 12GB Oracle OCI guest) to get to that point,
before that it was crashing.
--
----
Chavdar Ivanov
Home |
Main Index |
Thread Index |
Old Index