Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923410 - ERROR: sys-devel/gcc-13.2.1_p20240113-r1::gentoo failed (compile phase)
Summary: ERROR: sys-devel/gcc-13.2.1_p20240113-r1::gentoo failed (compile phase)
Status: RESOLVED DUPLICATE of bug 890636
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-31 10:11 UTC by Julián
Modified: 2024-02-17 10:18 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.zip,74.06 KB, application/x-zip-compressed)
2024-01-31 10:14 UTC, Julián
Details
environment (environment,129.91 KB, text/plain)
2024-01-31 10:15 UTC, Julián
Details
gcc-build-logs (gcc-build-logs.tar.xz,101.59 KB, application/x-xz)
2024-01-31 10:16 UTC, Julián
Details
stage2.log (stage2.zip,491.30 KB, application/x-zip-compressed)
2024-01-31 10:17 UTC, Julián
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)