I'm getting build errors while trying to update gcc 4.6.3 to 4.6.4. Comparing stages 2 and 3 warning: gcc/cc1plus-checksum.o differs warning: gcc/cc1-checksum.o differs Bootstrap comparison failure! gcc/cp/pt.o differs And a lof of "differs" messages follows. I've tried disabling distcc and ccache but it doesn't helps. [ebuild U ] sys-devel/gcc-4.6.4 [4.6.3] USE="cxx fortran nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -graphite (-hardened) (-libssp) -mudflap (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.17, 3.12.21-gentoo-r1 i686) ================================================================= System Settings ================================================================= System uname: Linux-3.12.21-gentoo-r1-i686-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2 KiB Mem: 8206316 total, 1856988 free KiB Swap: 0 total, 0 free Timestamp of tree: Mon, 04 Aug 2014 04:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.7, 3.2.5-r3, 3.3.5-r1 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13::<unknown repository>, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.6.3, 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo x-portage Installed sets: @system ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA IBM-J1.6 dlj-1.1 AdobeFlash-10.1 PUEL Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ http://gentoo.tiscali.nl/" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.yandex.ru/gentoo-portage/" USE="X aac aacplus acl alsa berkdb bzip2 cleartype cli consolekit corefonts cracklib crypt cups custom-optimization cxx dbus dri fortran gdbm gimp git glitz iconv icq idn iproute2 jabber jpeg jpeg2k kde libkms lzma mmx mng modules mtp mysql ncurses nls nptl nsplugin opengl openmp optimization oscar pam pcre png policykit python3 qt3support qt4 readline redland reiser4 rtmp samba semantic-desktop session speex sqlite sse sse2 ssl ssse3 subversion svg tcpd threads tiff truetype type1 udev unicode vaapi vdpau vnc webkit x264 x86 xcomposite xulrunner zlib" ABI_X86="32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="mustek_usb mustek_pp gt68xx mustek plustek plustek_pp" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nouveau radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Please attach to this bug report the entire build log and any other files that the build log says should be attached when filing a bug report.
Created attachment 382314 [details] gcc-4.6.4 build.log.xz
Created attachment 382316 [details] gcc-build-logs.tar.bz2
I was hit by the same problem. Using this configuration helped: $ grep gcc /etc/portage/package.env/x86_64-pc-linux-gnu sys-devel/gcc gcc.conf $ cat /etc/portage/env/gcc.conf CFLAGS="-O2 -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,-O1 -Wl,--as-needed" Notice the lack of any -march= flag.
(In reply to Bartosz Brachaczek from comment #4) > I was hit by the same problem. Using this configuration helped: > > $ grep gcc /etc/portage/package.env/x86_64-pc-linux-gnu > sys-devel/gcc gcc.conf > $ cat /etc/portage/env/gcc.conf > CFLAGS="-O2 -pipe" > CXXFLAGS="${CFLAGS}" > LDFLAGS="-Wl,-O1 -Wl,--as-needed" > > Notice the lack of any -march= flag. By "the same problem" do you mean specifially building 4.6.4 using 4.7.3? Note the `emerge --info` the reporter gives is using 4.7.3.
(In reply to Anthony Basile from comment #5) > By "the same problem" do you mean specifially building 4.6.4 using 4.7.3? > Note the `emerge --info` the reporter gives is using 4.7.3. That was building 4.6.4 using some 4.8.x version, IIRC. I can try to reproduce and send you my system configuration if this could help.
gcc-4.9 is stable now, so throwing away older bugs we don't plan on doing backports for as this should be fixed w/4.9+. please re-open if it's still an issue with 4.9.3+ though.