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

Bug 473342

Summary: sys-devel/gcc: Allow 3 stage bootstrapping to be disabled
Product: Gentoo Linux Reporter: Raymond Jennings <shentino>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: jer, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Raymond Jennings 2013-06-15 06:16:43 UTC
Bootstrapping triples compilation time.

Allow it to be disabled, perhaps with a use flag or soemthing.

Upstream suggested --disable-bootstrap in configure, but the ebuild choked.  On further inspection I find that the toolchain eclass is forcing "bootstrap-lean" as a target.

Reproducible: Always
Comment 1 Raymond Jennings 2013-06-15 06:17:55 UTC
Just of note:  disabling bootstrap is supported by upstream gcc.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2013-06-15 18:06:59 UTC
That's why we use GCC_MAKE_TARGET rather than hardcoding it:

GCC_MAKE_TARGET="all" EXTRA_ECONF="--disable-bootstrap" emerge -av gcc
Comment 3 Raymond Jennings 2013-06-15 18:41:33 UTC
Thanks for documenting this.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-28 11:00:37 UTC
See also:

commit 1aa736843e87e105cbe479dd21dd09679dacfbaa
Author: Sam James <sam@gentoo.org>
Date:   Mon Jun 6 08:45:36 2022 +0100

    toolchain.eclass: allow forcefully disabling bootstrapping for development

    Users should *absolutely not* do this. It's just useful for quickly
    testing eclass changes.

    The resultant compiler may not be safe to use. Especially so if
    unusual flags and environment is used.

    Signed-off-by: Sam James <sam@gentoo.org>