Gentoo Prefix bootstrap fails during stage3 (Failed to emerge sys-devel/gcc-10.2.0-r5) Reproducible: Always Steps to Reproduce: 1../bootstrap-prefix.sh Actual Results: Comparing stages 2 and 3 warning: gcc/cc1obj-checksum.o differs warning: gcc/cc1objplus-checksum.o differs Bootstrap comparison failure! gcc/tree-ssa-operands.o differs gcc/tree-ssanames.o differs gcc/ipa-inline.o differs gcc/tree-ssa-pre.o differs gcc/gimple-loop-interchange.o differs <Many lines deleted> libiberty/vprintf-support.o differs make[2]: *** [Makefile:21250: compare] Error 1 make[2]: Leaving directory '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build' make[1]: *** [Makefile:21230: stage3-bubble] Error 2 make[1]: Leaving directory '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build' make: *** [Makefile:1026: all] Error 2 * ERROR: sys-devel/gcc-10.2.0-r5::gentoo_prefix failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-10.2.0-r5::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-10.2.0-r5::gentoo_prefix'`. * The complete build log is located at '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/temp/build.log'. * The ebuild environment file is located at '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/temp/environment'. * Working directory: '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build' * S: '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/gcc-10.2.0' * * Please include /opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/gcc-build-logs.tar.bz2 in your bug report. * >>> Failed to emerge sys-devel/gcc-10.2.0-r5, Log file: >>> '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/temp/build.log' * Messages for package sys-devel/gcc-10.2.0-r5: * Can't read /config.sub, skipping.. * Can't read /config.guess, skipping.. * ERROR: sys-devel/gcc-10.2.0-r5::gentoo_prefix failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-10.2.0-r5::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-10.2.0-r5::gentoo_prefix'`. * The complete build log is located at '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/temp/build.log'. * The ebuild environment file is located at '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/temp/environment'. * Working directory: '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build' * S: '/opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/gcc-10.2.0' * * Please include /opt/gtp/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/gcc-build-logs.tar.bz2 in your bug report. * % uname -a Darwin ilimac.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64 % gcc -v Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.5 (clang-1205.0.22.11) Target: x86_64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Created attachment 719979 [details] stage3.log
Created attachment 719982 [details] gcc-build-logs
*** Bug 806433 has been marked as a duplicate of this bug. ***
This may well be https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 (thanks to bman for finding this).
we need to apply https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=743b8dd6fd757e997eb060d70fd4ae8e04fb56cd
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ccbf773bca3510785a1c6655c77f5d457ded43af commit ccbf773bca3510785a1c6655c77f5d457ded43af Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2021-09-05 10:29:56 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2021-09-05 10:29:56 +0000 sys-devel/gcc-10.2.0-r5: add patch for Xcode 12.5 Closes: https://bugs.gentoo.org/799170 Package-Manager: Portage-3.0.21-prefix, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org> sys-devel/gcc/files/gcc-10.2.0-xcode-12.5.patch | 147 ++++++++++++++++++++++++ sys-devel/gcc/gcc-10.2.0-r5.ebuild | 3 + 2 files changed, 150 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b758c765940eb06ad8f58ae003180cbaad4e4888 commit b758c765940eb06ad8f58ae003180cbaad4e4888 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-09-12 08:40:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-12 08:40:50 +0000 sys-devel/gcc: add 10.3.0 Bug: https://bugs.gentoo.org/799170 Package-Manager: Portage-3.0.21-prefix, Repoman-3.0.3 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 4 + .../gcc/files/gcc-10.3.0-clang-bootstrap.patch | 142 +++++++++++++++++++++ sys-devel/gcc/gcc-10.3.0-r2.ebuild | 114 +++++++++++++++++ 3 files changed, 260 insertions(+)