I tried to do a bootstrap of Gentoo Prefix on a HiFive Unmatched board (which has a RISC-V CPU), running Ubuntu 21.04. I had to do the following small modification in bootstrap-prefix.sh (line 385) because my architecture was detected as riscv64-unknown-linux-gnu: riscv64-pc-linux-gnu) --> riscv64-*-linux-gnu After that, the bootstrapping failed in stage 2 with the following error: make[3]: Leaving directory '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/build/libcc1' make: *** [Makefile:1041: all] Error 2 * ERROR: sys-devel/gcc-13.2.1_p20240113-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-13.2.1_p20240113-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-13.2.1_p20240113-r1::gentoo'`. * The complete build log is located at '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/build.log'. * The ebuild environment file is located at '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/environment'. * Working directory: '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/build' * S: '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/gcc-13-20240113' * * Please include /home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/gcc-build-logs.tar.xz in your bug report. * >>> Failed to emerge sys-devel/gcc-13.2.1_p20240113-r1, Log file: >>> '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/build.log' * Messages for package sys-devel/gcc-13.2.1_p20240113-r1: * Disabling bootstrapping. ONLY recommended for development. * This is NOT a safe configuration for end users! * This compiler may not be safe or reliable for production use! * ERROR: sys-devel/gcc-13.2.1_p20240113-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-13.2.1_p20240113-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-13.2.1_p20240113-r1::gentoo'`. * The complete build log is located at '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/build.log'. * The ebuild environment file is located at '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/environment'. * Working directory: '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/build' * S: '/home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/gcc-13-20240113' * * Please include /home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/work/gcc-build-logs.tar.xz in your bug report. * Odd! Running /usr/bin/bash ./bootstrap-prefix.sh "/home/jmorillo/gentoo" stage2 failed! :( Details might be found in the build log: /home/jmorillo/gentoo/tmp/var/tmp/portage/sys-devel/gcc-13.2.1_p20240113-r1/temp/build.log (no build logs found?!?) I have no clue, really. Please find friendly folks in #gentoo-prefix on irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug at bugs.gentoo.org under Gentoo/Alt, Prefix Support. Remember you might find some clues in /home/jmorillo/gentoo/stage2.log CHOST: riscv64-pc-linux-gnu IDENT: riscv64-rap-linux-ubuntu21.04
Created attachment 883853 [details] build.log
Created attachment 883854 [details] environment
Created attachment 883855 [details] gcc-build-logs
Created attachment 883856 [details] stage2.log
*** This bug has been marked as a duplicate of bug 890636 ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e66a8e81b12473d92c7fadb361feffb2aa127d9e commit e66a8e81b12473d92c7fadb361feffb2aa127d9e Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-02-17 10:17:13 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-02-17 10:17:13 +0000 scripts/bootstrap-prefix: catch any riscv tuple #923410 Thanks Julián. Bug: https://bugs.gentoo.org/923410 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-prefix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)