Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799170 - sys-devel/gcc: Stage3 prefix bootstrap fails on macOS Big Sur 11.4 with differing files
Summary: sys-devel/gcc: Stage3 prefix bootstrap fails on macOS Big Sur 11.4 with diffe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 806433 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-29 07:12 UTC by Ivan Leong
Modified: 2021-09-12 08:41 UTC (History)
4 users (show)

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


Attachments
stage3.log (stage3-il.zip,425.07 KB, application/zip)
2021-06-29 07:14 UTC, Ivan Leong
Details
gcc-build-logs (gcc-build-logs.tar.bz2,479.03 KB, application/x-bzip2)
2021-06-29 07:15 UTC, Ivan Leong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Leong 2021-06-29 07:12:58 UTC
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
Comment 1 Ivan Leong 2021-06-29 07:14:36 UTC
Created attachment 719979 [details]
stage3.log
Comment 2 Ivan Leong 2021-06-29 07:15:39 UTC
Created attachment 719982 [details]
gcc-build-logs
Comment 3 Fabian Groffen gentoo-dev 2021-08-27 15:38:41 UTC
*** Bug 806433 has been marked as a duplicate of this bug. ***
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-05 02:39:03 UTC
This may well be https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 (thanks to bman for finding this).
Comment 6 Larry the Git Cow gentoo-dev 2021-09-05 10:49:20 UTC
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(+)
Comment 7 Larry the Git Cow gentoo-dev 2021-09-12 08:41:13 UTC
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(+)