I tried to do a bootstrap of Gentoo Prefix on a Starfive VisionFive 2 (which has a RISC-V CPU) today, and it failed in stage 1 due to failures of sys-devel/bison and sys-devel/patch: checking build system type... Invalid configuration `riscv64-pc-linux-gnu': machine `riscv64-pc' not recognized Both could be easily solved by installing these tools on the host operating system, but just wanted to report it anyway, since it's probably easy to fix.
(In reply to Bob Dröge from comment #0) > I tried to do a bootstrap of Gentoo Prefix on a Starfive VisionFive 2 (which > has a RISC-V CPU) today, and it failed in stage 1 due to failures of > sys-devel/bison and sys-devel/patch: > > checking build system type... Invalid configuration `riscv64-pc-linux-gnu': > machine `riscv64-pc' not recognized > > Both could be easily solved by installing these tools on the host operating > system, but just wanted to report it anyway, since it's probably easy to fix. Could you please attach the build log? I have successfully compiled with "checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu" Try change the CHOST="riscv64-unknown-linux-gnu" in /etc/portage/make.conf
Created attachment 855266 [details] Bootstrap stage 1 log
Created attachment 855268 [details] Bison 2.4 config.log
I tried creating a folder $EPREFIX/etc/portage and a file make.conf (doesn't exist yet at this point) containing that line, but that didn't seem to help. It's still complaining about the same thing: checking build system type... Invalid configuration `riscv64-pc-linux-gnu': machine `riscv64-pc' not recognized configure: error: /bin/bash build-aux/config.sub riscv64-pc-linux-gnu failed
I've bumped bison in the hope that fixes it, but the fact it falls back to 2.4 isn't hopeful.
I've just started another bootstrap on the same hardware (with the latest version of the bootstrap script), and this seems to work fine now: it's picking up Bison 3.8.2 and this version installed without any issues. So I'm closing this issue.