Summary: | dev-lang/zig: keywording | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aisha Tammy <gentoo> |
Component: | Keywording | Assignee: | Eric Joldasov <bratishkaerik> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | fogti, jsmolic, mgorny, ppc64, proxy-maint |
Priority: | Normal | Keywords: | CC-ARCHES, PullRequest |
Version: | unspecified | Flags: | nattka:
sanity-check+
|
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/gentoo/gentoo/pull/21296 | ||
Whiteboard: | |||
Package list: |
>=dev-lang/zig-0.9.1 amd64 arm arm64 ppc64 alpha ppc ppc64 riscv
app-eselect/eselect-zig amd64 arm arm64 ppc64 alpha ppc ppc64 riscv
|
Runtime testing required: | --- |
Bug Depends on: | 851732, 823086 | ||
Bug Blocks: | 850361 |
Description
Aisha Tammy
2021-06-18 10:49:45 UTC
Sanity check failed:
> dev-lang/zig-0.7.1
> depend ~ppc stable profile default/linux/powerpc/ppc32/17.0 (10 total)
> <sys-devel/lld-12.0.0
> sys-devel/clang:11
> sys-devel/llvm:11
> sys-devel/llvm:11[llvm_targets_AArch64,llvm_targets_AMDGPU,llvm_targets_ARM,llvm_targets_AVR,llvm_targets_BPF,llvm_targets_Hexagon,llvm_targets_Lanai,llvm_targets_MSP430,llvm_targets_Mips,llvm_targets_NVPTX,llvm_targets_PowerPC,llvm_targets_RISCV,llvm_targets_Sparc,llvm_targets_SystemZ,llvm_targets_WebAssembly,llvm_targets_X86,llvm_targets_XCore]
> rdepend ~ppc stable profile default/linux/powerpc/ppc32/17.0 (10 total)
> <sys-devel/lld-12.0.0
> sys-devel/clang:11
> sys-devel/llvm:11
> sys-devel/llvm:11[llvm_targets_AArch64,llvm_targets_AMDGPU,llvm_targets_ARM,llvm_targets_AVR,llvm_targets_BPF,llvm_targets_Hexagon,llvm_targets_Lanai,llvm_targets_MSP430,llvm_targets_Mips,llvm_targets_NVPTX,llvm_targets_PowerPC,llvm_targets_RISCV,llvm_targets_Sparc,llvm_targets_SystemZ,llvm_targets_WebAssembly,llvm_targets_X86,llvm_targets_XCore]
(Avoid CCing arches manually, let the bot. do it. when it's ready) zig succesfully builds on ppc64 but it won't install as this arch is not supported. ;) [...] >>> Source compiled. * Skipping make test/check due to ebuild restriction. >>> Test phase [disabled because of RESTRICT=test]: dev-lang/zig-0.8.0 >>> Install dev-lang/zig-0.8.0 into /var/tmp/portage/dev-lang/zig-0.8.0/image * Working in BUILD_DIR: "/var/tmp/portage/dev-lang/zig-0.8.0/work/zig-0.8.0/build" [0/1] Install the project... -- Install configuration: "Gentoo" -- Installing: /var/tmp/portage/dev-lang/zig-0.8.0/image/usr/bin/zig -- Set runtime path of "/var/tmp/portage/dev-lang/zig-0.8.0/image/usr/bin/zig" to "" -- Installing: /usr/lib ./lib/std/start.zig:240:17: error: unsupported arch else => @compileError("unsupported arch"), ^ :: :: ERROR: 1 :: (execute_process) I can confirm that dev-lang/zig builds successfully on arm64 (aarch64). I have been using 0.8.0 for a while now and have not experienced any issues. arm64 done arm64 done It builds on ppc64 but tells us afterwards it'S not supported: [...] [0/1] Install the project... -- Install configuration: "Gentoo" -- Installing: /var/tmp/portage/dev-lang/zig-0.8.1-r1/image/usr/bin/zig -- Set runtime path of "/var/tmp/portage/dev-lang/zig-0.8.1-r1/image/usr/bin/zig" to "" -- Installing: /usr/lib ./lib/std/start.zig:241:17: error: unsupported arch else => @compileError("unsupported arch"), ^ :: :: ERROR: 1 :: (execute_process) arm done As I understand it (from https://ziglang.org/download/), we can build Zig on these targets: amd64, x86, riscv (64 bit variant, I can't find it in arch.list), arm64, arm Let's add more arches to try to match ncdu-1.* keywords (since ncdu-2 needs zig). There are pre-built binaries available so we will probably use those as well and add -bin version. All sanity-check issues have been resolved Sanity check failed:
> dev-lang/zig-0.10.1-r1
> rdepend ~ppc64 stable profile default/linux/ppc64/17.0 (19 total)
> app-eselect/eselect-zig
> rdepend ~ppc64 dev profile default/linux/ppc64/17.0/musl (2 total)
> app-eselect/eselect-zig
Sanity check failed:
> dev-lang/zig-0.10.1-r2
> idepend ~ppc64 stable profile default/linux/ppc64/17.0 (19 total)
> app-eselect/eselect-zig
> idepend ~ppc64 dev profile default/linux/ppc64/17.0/musl (2 total)
> app-eselect/eselect-zig
I'll remove the blocker given we have zig-bin on riscv |