Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923617 - bootstrap-prefix.sh broken stage3 build due to unknown gcc version
Summary: bootstrap-prefix.sh broken stage3 build due to unknown gcc version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-02 11:05 UTC by Mart Raudsepp
Modified: 2024-02-02 12:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2024-02-02 11:05:36 UTC
commit 2f78608740da9ba4dda7194f2696d64a1fb90fef made the GCC version check use `CC` instead of /usr/bin/gcc:

https://github.com/gentoo/prefix/commit/2f78608740da9ba4dda7194f2696d64a1fb90fef.patch

So before it used to find clang 15 version for me and be fine in the checks below, but now it finds the stage2 GCC it itself built (gcc 13), which isn't known and it just immediately errors on start of stage3 processing with a short and not so sweet stage3.log:

* Triggering Darwin with GCC toolchain
!!! unknown compiler: gcc (Gentoo 13.2.0 p7) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


This is on M2 Ultra Darwin 23.
Comment 1 Fabian Groffen gentoo-dev 2024-02-02 11:41:59 UTC
oh that's crap

and probably why I used a full path in the past

Let me fix that, thanks
Comment 2 Larry the Git Cow gentoo-dev 2024-02-02 12:07:26 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=377f6f4e9776170245bbf4fe908032b69c9a9d01

commit 377f6f4e9776170245bbf4fe908032b69c9a9d01
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-02-02 12:05:58 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-02-02 12:05:58 +0000

    scripts/bootstrap-prefix: fix configure_toolchain for Darwin
    
    Don't get confused by (just) bootstrapped compilers, in fact, drop the
    detection of host-compilers, because they are insufficient to bootstrap
    nowadays.
    
    Bug: https://bugs.gentoo.org/923617
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 29 ++++++++++++-----------------
 1 file changed, 12 insertions(+), 17 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-02-02 12:14:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=885a6df29cfa5e73483f33c05fef8dac3f7ec55a

commit 885a6df29cfa5e73483f33c05fef8dac3f7ec55a
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-02-02 12:13:02 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-02-02 12:13:02 +0000

    scripts/bootstrap-prefix: change CPU usage suggestion for modern hardware
    
    Previous cap of 8 was based on old T1/T2.  Nowadays we can use more.
    
    Suggest something along the lines of 50-75% of available CPUs to stay on
    the modest side.  The user can override this in any case.
    
    Closes: https://bugs.gentoo.org/923617
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
Comment 4 Fabian Groffen gentoo-dev 2024-02-02 12:14:48 UTC
wrong bug, sorry