Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796596 - dev-lang/zig: keywording
Summary: dev-lang/zig: keywording
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eric Joldasov
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords: CC-ARCHES, PullRequest
Depends on: 851732 823086
Blocks: 850361
  Show dependency tree
 
Reported: 2021-06-18 10:49 UTC by Aisha Tammy
Modified: 2024-03-01 20:14 UTC (History)
5 users (show)

See Also:
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: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aisha Tammy 2021-06-18 10:49:45 UTC
upstream says that it can be made on all LLVM archs so we can keyword for all of them.
Comment 1 NATTkA bot gentoo-dev 2021-06-18 10:56:21 UTC Comment hidden (obsolete)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-18 13:02:17 UTC
(Avoid CCing arches manually, let the bot. do it. when it's ready)
Comment 3 ernsteiswuerfel archtester 2021-08-27 20:32:00 UTC
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)
Comment 4 Niklaus 'vimja' Hofer 2021-11-08 00:59:59 UTC
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.
Comment 5 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-11-21 04:58:31 UTC
arm64 done
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-21 09:49:52 UTC
arm64 done
Comment 7 ernsteiswuerfel archtester 2021-12-06 20:34:34 UTC
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)
Comment 8 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-12-25 17:27:00 UTC
arm done
Comment 9 Eric Joldasov 2022-04-03 15:59:02 UTC
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
Comment 10 Jakov Smolić archtester gentoo-dev 2022-06-07 07:52:11 UTC
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.
Comment 11 NATTkA bot gentoo-dev 2022-06-07 07:56:38 UTC Comment hidden (obsolete)
Comment 12 NATTkA bot gentoo-dev 2023-03-09 10:56:40 UTC Comment hidden (obsolete)
Comment 13 NATTkA bot gentoo-dev 2023-03-09 17:52:39 UTC Comment hidden (obsolete)
Comment 14 Jakov Smolić archtester gentoo-dev 2023-11-17 10:36:28 UTC
I'll remove the blocker given we have zig-bin on riscv