commit:     772a54809044917084b4dfb38890cf77c7814fb8
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sat May  9 08:07:02 2020 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon May 11 06:58:37 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=772a5480

bootstrap-prefix.sh: disable stage3 gcc bootstrap for RAP

stage2 glibc is incompatible with that of stage3. gcc bootstrap does
not handle this situation correctly.

During bootstrap src_compile(), it passes libstdc++ of new glibc by
LD_LIBRARY_PATH to work with g++ of stage2, resulting in symbol
conflicts at lease on CentOS 7.

The call of `emerge -e @system` will finally build a gcc in bootstrap
mode.

Reported-by: huiyiqun, jsteward
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 3e36df7396..ab57d62419 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1981,7 +1981,8 @@ bootstrap_stage3() {
        fi
 
        # try to get ourself out of the mudd, bug #575324
-       EXTRA_ECONF="--disable-compiler-version-checks $(rapx --disable-lto)" \
+       EXTRA_ECONF="--disable-compiler-version-checks $(rapx '--disable-lto 
--disable-bootstrap')" \
+       GCC_MAKE_TARGET=$(rapx all) \
        MYCMAKEARGS="-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=OFF" \
        PYTHON_COMPAT_OVERRIDE=python${PYTHONMAJMIN} \
        with_stack_emerge_pkgs --nodeps ${compiler} || return 1

Reply via email to