The arch for RISC-V targets are displayed as * in --show-target-cfg. $ crossdev --show-target-cfg riscv64 arch=* target=riscv64-unknown-linux-gnu category=cross-riscv64-unknown-linux-gnu binutils_category=sys-devel binutils_pn=binutils gcc_category=sys-devel gcc_pn=gcc kernel_category=sys-kernel kernel_pn=linux-headers libc_category=sys-libs libc_pn=glibc crosspkgs='binutils gcc kernel libc' Since RISC-V is a supported target for installing Gentoo, I expect arch here to be riscv instead: $ crossdev --show-target-cfg riscv64 arch=riscv target=riscv64-unknown-linux-gnu category=cross-riscv64-unknown-linux-gnu binutils_category=sys-devel binutils_pn=binutils gcc_category=sys-devel gcc_pn=gcc kernel_category=sys-kernel kernel_pn=linux-headers libc_category=sys-libs libc_pn=glibc crosspkgs='binutils gcc kernel libc' Might give this a try.
(In reply to mcendu from comment #0) > The arch for RISC-V targets are displayed as * in --show-target-cfg. > [...] > > Since RISC-V is a supported target for installing Gentoo, I expect arch here > to be riscv instead: > [...] > > Might give this a try. If you're willing, please do! It should be a nice first patch.
Created attachment 871473 [details, diff] [PATCH] make riscv targets use riscv portage arch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=90995af1950ac42dbb8795450dabd93de6d15dc3 commit 90995af1950ac42dbb8795450dabd93de6d15dc3 Author: Nathan Du <nathandu@outlook.com> AuthorDate: 2023-09-26 07:39:19 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-09-26 18:30:18 +0000 make riscv targets use riscv portage arch Closes: https://bugs.gentoo.org/914725 Signed-off-by: Nathan Du <nathandu@outlook.com> Signed-off-by: Sam James <sam@gentoo.org> crossdev | 1 + 1 file changed, 1 insertion(+)
Thanks for your contribution!