Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923410

Summary: ERROR: sys-devel/gcc-13.2.1_p20240113-r1::gentoo failed (compile phase)
Product: Gentoo/Alt Reporter: Julián <jmorillo.pozo>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jmorillo.pozo, jsmolic, prefix, riscv
Priority: Normal    
Version: unspecified   
Hardware: riscv   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
gcc-build-logs
stage2.log

Description Julián 2024-01-31 10:11:32 UTC
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
Comment 1 Julián 2024-01-31 10:14:54 UTC
Created attachment 883853 [details]
build.log
Comment 2 Julián 2024-01-31 10:15:28 UTC
Created attachment 883854 [details]
environment
Comment 3 Julián 2024-01-31 10:16:03 UTC
Created attachment 883855 [details]
gcc-build-logs
Comment 4 Julián 2024-01-31 10:17:06 UTC
Created attachment 883856 [details]
stage2.log
Comment 5 Jakov Smolić archtester gentoo-dev 2024-02-04 01:22:39 UTC

*** This bug has been marked as a duplicate of bug 890636 ***
Comment 6 Larry the Git Cow gentoo-dev 2024-02-17 10:18:24 UTC
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(-)