Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809086 - sys-devel/gcc-11.2.0: bootstrap comparison failure
Summary: sys-devel/gcc-11.2.0: bootstrap comparison failure
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Highest major with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-19 14:26 UTC by Chris
Modified: 2021-09-16 17:34 UTC (History)
3 users (show)

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


Attachments
GCC build logs (gcc-build-logs.tar.bz2,555.47 KB, application/x-bzip)
2021-08-19 14:28 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2021-08-19 14:26:50 UTC
sys-devel/gcc-11.2.0 fails to compile with the following error message:

Bootstrap comparison failure!
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++98/basic_file.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++98/ios_init.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++98/locale_init.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++98/globals_io.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++98/localename.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++98/ext-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/compatibility-atomic-c++0x.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs/compatibility-atomic-c++0x.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs/compatibility.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs/compatibility-condvar.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs/compatibility-thread-c++0x.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs/compatibility-c++0x.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/filesystem/cow-ops.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/filesystem/cow-path.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/filesystem/dir.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/filesystem/path.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/filesystem/ops.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/filesystem/cow-dir.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/string-io-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-wstring-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/sstream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ostream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-stdexcept.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cxx11-wlocale-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ctype_configure_char.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-sstream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-fstream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ext11-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/locale-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cxx11-shim_facets.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ios.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/wlocale-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-string-io-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/condition_variable.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ctype_members.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ios-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/sso_string.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-shim_facets.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/wstring-io-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-wstring-io-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/mutex.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/future.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-string-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/snprintf_lite.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cxx11-ios_failure.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/wstring-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/random.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/istream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/string-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cxx11-stdexcept.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cxx11-locale-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/ctype.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/regex.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/fstream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cxx11-hash_tr1.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/iostream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/streambuf-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/cow-locale_init.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/debug.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/thread.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/codecvt.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/functexcept.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11/system_error.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/compatibility.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++20/sstream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/floating_from_chars.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/ostream-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/fs_ops.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/memory_resource.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/cow-fs_ops.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/floating_to_chars.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/cow-string-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/cow-fs_dir.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/string-inst.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/fs_path.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/cow-fs_path.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++17/fs_dir.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/compatibility-condvar.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/compatibility-thread-c++0x.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/src/compatibility-c++0x.o differs
x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/vterminate.o differs
make[2]: *** [Makefile:24228: compare] Error 1
make[2]: Leaving directory '/media/SANDISK/tmp/portage/sys-devel/gcc-11.2.0/work/build'
make[1]: *** [Makefile:24208: stage3-bubble] Error 2
make[1]: Leaving directory '/media/SANDISK/tmp/portage/sys-devel/gcc-11.2.0/work/build'
make: *** [Makefile:24282: bootstrap-lean] Error 2


Reproducible: Always




Output of emerge --info:

Portage 3.0.22 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.1.0, glibc-2.33-r6, 5.13.11-gentoo-rx6700xt x86_64)
=================================================================
System uname: Linux-5.13.11-gentoo-rx6700xt-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.33
KiB Mem:    16289432 total,   7211256 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Tue, 17 Aug 2021 20:30:01 +0000
Head commit of repository gentoo: 872eee7e4f6600f420490c707f87168dc0c29801
sh bash 5.1_p8
ld GNU gold (Gentoo 2.36.1 p4 2.36.1) 1.16
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.3 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.5.9::gentoo, 3.6.14::gentoo, 3.7.11::gentoo, 3.8.11::gentoo, 3.9.6_p1::gentoo, 3.10.0_rc1_p1::gentoo
dev-lang/rust:            1.54.0::gentoo
dev-util/ccache:          4.3-r3::gentoo
dev-util/cmake:           3.21.1::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            11.1.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r6::gentoo
Repositories:

bitcoin
    location: /var/lib/layman/bitcoin
    sync-type: laymansync
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: 50

gentoo-crypto
    location: /var/lib/layman/gentoo-crypto
    sync-type: laymansync
    sync-uri: https://github.com/gentoo-crypto/gentoo-crypto-overlay.git
    masters: gentoo
    priority: 50

reagentoo
    location: /var/lib/layman/reagentoo
    sync-type: laymansync
    sync-uri: https://gitlab.com/reagentoo/gentoo-overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 100

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -fno-stack-protector -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -fno-stack-protector -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going --backtrack=100 --autounmask-write"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=native -fomit-frame-pointer -fno-stack-protector -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -fomit-frame-pointer -fno-stack-protector -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--relax"
MAKEOPTS="-j12 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus djvu dri dts dvd dvdr egl eselect-ldso exif fftw flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk gtk3 gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc lm-sensors mad mng mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nsplugin ogg opencl opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline schroedinger sdl seccomp smp speex spell split-usr ssl startup-notification svg sysprof systemd tcpd theora threads tiff truetype udev udisks unicode usb vaapi vdpau vorbis vpx wayland webm webp x264 x265 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby30 ruby27" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Chris 2021-08-19 14:28:24 UTC
Created attachment 734287 [details]
GCC build logs

Build logs.
Comment 2 Sam James archtester gentoo-dev Security 2021-08-20 21:35:38 UTC
Few things of note here, I suppose:
- CFLAGS="-O2 -march=native -fomit-frame-pointer -fno-stack-protector -pipe"

I personally wouldn't consider -fno-stack-protector to be a sensible or supported configuration. I wouldn't be surprised if plenty of stuff fails to build with this, and at least in the case of GCC, if it ended up forcing it on/off for some specific subcomponents, and this could end up being the cause (which may end up being a minor bug in GCC if it should filter it better).

- LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--relax"

-Wl,--relax is rather uncommon.

Interestingly, slyfox raised it in a ::haskell bug (https://github.com/gentoo-haskell/gentoo-haskell/issues/704) and ended up filing a bug for binutils itself to better handle some mixed situations (similar to what I'm describing for -fno-satck-protector): https://sourceware.org/bugzilla/show_bug.cgi?id=27837.

- I would not particularly bother with gold any more at this point, given it seems rather low-activity upstream.

(As a complete aside, it seems rather odd to me you have so many Pythons, autoconfs, and automakes installed. Please remember to depclean after world upgrades and avoid putting dependencies/things you don't personally want in your /var/lib/portage/world file.)
Comment 3 Sam James archtester gentoo-dev Security 2021-08-20 21:37:54 UTC
(In reply to Sam James from comment #2)
> Few things of note here, I suppose:

It would be useful if you could first tell us:
- if the failure occurs with "vanilla" CFLAGS + CXXFLAGS + *FLAGS + LDFLAGS;
- if it occurs with gold;
- if previous GCC versions work.

Depending on the results, we can figure out exactly which specific options cause failure.