Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411333 (PR53728) - sys-devel/gcc-4.6.2 CFLAGS="-O2 -march=pentium3" - Bootstrap comparison failure!
Summary: sys-devel/gcc-4.6.2 CFLAGS="-O2 -march=pentium3" - Bootstrap comparison failure!
Status: RESOLVED FIXED
Alias: PR53728
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR53728
Whiteboard:
Keywords:
: 420421 450964 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-09 09:06 UTC by C W Rose
Modified: 2013-05-08 15:40 UTC (History)
25 users (show)

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


Attachments
Various logs dealing with a GCC 4.6.2 build failure on Pentium III (gcc-err.tar.bz2,459.24 KB, application/x-bzip)
2012-04-09 09:08 UTC, C W Rose
Details
log file of problems during patch application in gcc-4.6.3 (elibtool.log,6.74 KB, text/plain)
2012-12-22 17:32 UTC, Nils Stöckmann
Details
failed build logs - gcc-4.6.4_pre9999 on pentium M (gcc-4.6.4_pre9999_logs.tbz2,234.48 KB, application/octet-stream)
2013-02-15 10:38 UTC, Gerard Neil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description C W Rose 2012-04-09 09:06:13 UTC
GCC 4.6.2 with the default USE flags fails to build on a Pentium III.
The (first) error is a failure of the stage 2/3 comparison of varasm.o,
but if stage3-gcc/varasm.o is copied to stage2-gcc/varasm.o and the
compilation continued, FWIW there is a further error with the log entry:
...
make[4]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/prev-gcc'
make[4]: *** No rule to make target `real-install-headers-tar'.  Stop.
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/prev-gcc'
...
This doesn't at the moment concern me.

I've repeated this build three or four times now with different flags,
and it's failed every time.  Moving to -march=native, BTW, produces
a different failure, but still fails.  The same problem occurs with
GCC 4.6.3

The standard GCC package from gnu.org compiles in the usual out-of-tree
build without problems.

If there's some configuration change I could make to get it to compile,
I'd be grateful for advice.

The builds were in a chroot using the most recent Stage 3 and portage
tree, and no other software was running.

Attached (if I've got attachments right) are all the various logs, the
emerge data, and the two versions of varasm.o

C W Rose


Reproducible: Always

Steps to Reproduce:
1. Unmask gcc-4.6.2
2. Run "emerge sys-devel/gcc"
3. Wait
Actual Results:  
The emerge failed partway through the build.


Portage 2.1.10.49 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.38-gentoo-r6-1 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r6-1-i686-Intel-R-_Pentium-R-_III_Mobile_CPU_1200MHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 02 Apr 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          3.2.2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo Local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bzip2 cairo cdr cli cracklib crypt cups cxx dbus doc dri esd firefox fortran gdbm gnome gpm gstreamer gtk iconv ipv6 java5 jpeg modules mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre perl png pppd python qt3support readline samba session ssl svg sysfs tcpd tiff udev unicode v4l2 x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CAMERAS="canon" 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 ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy harness ide identity java mobility nb php profiler webcommon websvccommon" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy intel savage vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================
USE="cxx fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libssp) -lto (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"

sys-devel/gcc-4.5.3-r2 was built with the following:
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="-O2 -march=i686 -pipe"
Comment 1 C W Rose 2012-04-09 09:08:50 UTC
Created attachment 308289 [details]
Various logs dealing with a GCC 4.6.2 build failure on Pentium III
Comment 2 James Shaw (Simba7) 2012-05-23 06:26:37 UTC
It's happening on GCC 4.6.3, too. I tried to compile a new system and it constantly gives me this issue on my dual P3.
Comment 3 Priit Laes (IRC: plaes) 2012-05-23 19:19:02 UTC
Similar issue with 4.6.3 on "Intel(R) Pentium(R) M processor 1.60GHz"
and CFLAGS="-O2 -mtune=pentium-m -pipe -ggdb"
Comment 4 Andrey Volkov 2012-05-25 03:59:43 UTC
The same issue with GCC-4.6.3 on "Intel(R) Pentium(R) M processor 1.50GHz".
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
Comment 5 James Shaw (Simba7) 2012-05-26 01:31:18 UTC
Ok. I just compiled it on a dual Xeon 2.4GHz (Poweredge 1750) and it didn't have the issue. I tried it again on my dual P3 and it crashed in the same spot.

What's broken with the P3?
Comment 6 Boney McCracker 2012-05-27 02:17:56 UTC
Confirming; same problem with ~x86 pentium3 (hardened)

----------------------------------------------------------------------------
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
Comparing stages 2 and 3
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
gcc/varasm.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
----------------------------------------------------------------------------
Comment 7 tla 2012-05-28 12:25:58 UTC
Confirm I also have this issue.

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 6
microcode       : 0x8
cpu MHz         : 930.316
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 mmx fxsr sse up
bogomips        : 1860.63
clflush size    : 32
cache_alignment : 32
address sizes   : 36 bits physical, 32 bits virtual
power management:

$ emerge --info
Portage 2.1.10.49 (hardened/linux/x86, gcc-4.6.2, glibc-2.15-r2, 3.4.0 i686)
=================================================================
System uname: Linux-3.4.0-i686-Pentium_III_-Coppermine-with-gentoo-2.1
Timestamp of tree: Mon, 28 May 2012 09:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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://rsync.gentoo.org/gentoo-portage"
USE="X acl apache2 bash-completion berkdb bzip2 cli cracklib crypt cups cxx dbus dri emacs fontconfig gdbm gnutls gpm gtk hardened iconv ipv6 modules mp3 mudflap ncurses nls nptl opengl openmp pam pax_kernel pcre pic postgres pppd readline session ssl tcpd truetype unicode urandom x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="i810" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 8 Riccardo 2012-06-04 15:41:04 UTC
Same problem here with Pentium-M / Centrino.


make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build' 
 make[3]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build' 
 rm -f stage_current 
 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build' 
 Comparing stages 2 and 3 
 warning: gcc/cc1-checksum.o differs 
 warning: gcc/cc1obj-checksum.o differs 
 warning: gcc/cc1objplus-checksum.o differs 
 warning: gcc/cc1plus-checksum.o differs 
 Bootstrap comparison failure! 
 gcc/varasm.o differs

emerge --info '=sys-devel/gcc-4.6.3' 
 Portage 2.1.10.58 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.15-r2, 3.3.1-gentoo i686) 
 ================================================================= 
                         System Settings 
 ================================================================= 
 System uname: Linux-3.3.1-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1300MHz-with-gentoo-2.1 
 Timestamp of tree: Mon, 04 Jun 2012 00:45:01 +0000 
 app-shells/bash:          4.2_p29 
 dev-java/java-config:     2.1.11-r3 
 dev-lang/python:          2.7.3-r2, 3.2.3-r1 
 dev-util/cmake:           2.8.8-r2 
 dev-util/pkgconfig:       0.26 
 sys-apps/baselayout:      2.1-r1 
 sys-apps/openrc:          0.10.2 
 sys-apps/sandbox:         2.5 
 sys-devel/autoconf:       2.13, 2.69 
 sys-devel/automake:       1.11.5, 1.12.1 
 sys-devel/binutils:       2.22-r1 
 sys-devel/gcc:            4.5.3-r2 
 sys-devel/gcc-config:     1.7.2 
 sys-devel/libtool:        2.4.2 
 sys-devel/make:           3.82-r3 
 sys-kernel/linux-headers: 3.4 (virtual/os-headers) 
 sys-libs/glibc:           2.15-r2 
 Repositories: gentoo 
 ACCEPT_KEYWORDS="x86 ~x86" 
 ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula" 
 CBUILD="i686-pc-linux-gnu" 
 CFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer" 
 CHOST="i686-pc-linux-gnu" 
 CONFIG_PROTECT="/etc" 
 CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" 
 CXXFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer" 
 DISTDIR="/usr/portage/distfiles" 
 FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" 
 FFLAGS="" 
 GENTOO_MIRRORS="http://distfiles.gentoo.org" 
 LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
 PKGDIR="/usr/portage/packages" 
 PORTAGE_CONFIGROOT="/" 
 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="" 
 SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
 USE="X acl berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm iconv kerberos mmx modules motif mudflap ncurses nptl openmp pam pcre pppd readline session sse ssl tcpd unicode userlocales x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 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" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 9 Michael Gorbach 2012-06-05 19:42:35 UTC
Confirming the same, running on a gen 1 AppleTV

make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make[3]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
rm -f stage_current
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
Comparing stages 2 and 3
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
gcc/varasm.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make: *** [bootstrap-lean] Error 2
emake failed

root@ansibleThreshold> emerge --info '=sys-devel/gcc-4.6.3' 
Portage 2.1.10.65 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.15-r2, 3.3.0-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.0-gentoo-i686-Genuine_Intel-R-_processor_1.00GHz-with-gentoo-2.1
Timestamp of tree: Tue, 05 Jun 2012 15:00:01 +0000
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7.2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-local
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://141.219.155.230/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa audio bash-completion berkdb branding bzip2 cli cracklib crypt cxx dbus dri dts ffmpeg fortran ftp gdbm gif gpm iconv ipv6 jpeg lame mad matroska mmx modules mp3 mplayer mudflap ncurses nls nptl nsplugin opengl openmp pam pcre png pppd python quicktime readline screensaver session sse sse2 ssl tcpd threads unicode usb video vim-syntax x264 x86 xorg xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 10 Martin Väth 2012-06-10 07:40:38 UTC
*** Bug 420421 has been marked as a duplicate of this bug. ***
Comment 11 Juergen Rose 2012-06-17 10:35:42 UTC
Any news?
Comment 12 Vasiliy Olekhov 2012-06-18 14:26:48 UTC
Same issue here.

I am updating world for my eee1000 notebook (Atom N270) in chrooted environment on Core 2 Quad Q6600

gcc-4.6.3 compiles on "host" system smoothly.
CCFLAGS to be concerned: -O2 -march=i686 -pipe
kernel on "host" is 3.0.1-gentoo

gcc-4.6.3 fails to compile in chrooted environment.
CCFLAGS in chroot: -O2 -march=pentium-m -pipe -fomit-frame-pointer -s

Seems -march=pentium-m is somewhat broken.

...
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/varasm.o differs
make[2]: *** [compare] Error 1
make[2]: Exiting directory `/tmp/portage/sys-devel/gcc-4.6.3/work/build'
...
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2012-06-19 05:34:34 UTC
Can one of you guys open an upstream bug report?  I don't know what info they'll need and I'm not in a position to provide it.
Comment 14 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-19 07:03:03 UTC
(In reply to comment #13)
> Can one of you guys open an upstream bug report?  I don't know what info
> they'll need and I'm not in a position to provide it.

I can reproduce it on decent box, so bisecting before submitting should speed the process. I just haven't had time to do it yet
Comment 15 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-19 21:42:44 UTC
Fixed in trunk by:

commit 66d9a7b9e8a0c85a51467330f51ead74e77b7eb8
Author: vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Tue Mar 29 01:02:05 2011 +0000

    2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>

 [... snip freakishly long commit msg...]
Comment 16 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-20 10:48:29 UTC
Introduced by:

Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Aug 12 16:39:37 2010 +0000

    Turn on -fomit-frame-pointer by default for 32bit Linux/x86.
    
    2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
            Uros Bizjak  <ubizjak@gmail.com>
    
        * config.gcc: Handle --enable-frame-pointer.
    
        * configure.ac: Add --enable-frame-pointer.
        * configure: Regenerated.
    
        * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
        (override_options): If not configured with --enable-frame-pointer,
        enable -fomit-frame-pointer (but not for TARGET_MACHO or when
        optimizing for size), -fasynchronous-unwind-tables and
        -maccumulate-outgoing-args by default.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163196 138bc75d-0d04-0410-961f-82ee72b054a4

:040000 040000 91584179535d06f2f19861a92bb3c7b160e9be8f 9f230a8f76af23e5d83e5ebee9aec1012c9b4d19 M      gcc
Comment 17 Alex Buell 2012-07-28 12:02:44 UTC
I'm getting the same failure with GCC 4.6.3 on Pentium III. How best to patch GCC with the fix provided?
Comment 18 Ryan Hill (RETIRED) gentoo-dev 2012-07-28 18:28:05 UTC
There's no way we're backporting a patch that size.  Try EXTRA_ECONF="--disable-frame-pointer".  Or just use 4.5.  It's not as if you're going to be missing out on any great pentium 3 related features.
Comment 19 C W Rose 2012-07-29 10:53:06 UTC
Does anyone know when the next working version of GCC
will be available (for Pentium III, obviously).

Will
Comment 20 Alex Buell 2012-07-30 22:09:16 UTC
It seems on the forums someone mentioned temporarily changing CFLAGS to i686 can get the compiler built. I may try this one out on my P3.
Comment 21 Alex Buell 2012-07-31 04:33:10 UTC
(In reply to comment #20)
> It seems on the forums someone mentioned temporarily changing CFLAGS to i686
> can get the compiler built. I may try this one out on my P3.

Confirmed, using CFLAGS = i686 works on my P3, now have 4.6.3 installed.
Comment 22 Boney McCracker 2012-09-29 06:19:03 UTC
Workaround: threw Pentium III computer in dumpster.
Comment 23 Mieszko Ślusarczyk 2012-10-21 21:50:59 UTC
(In reply to comment #18)
> There's no way we're backporting a patch that size.  Try
> EXTRA_ECONF="--disable-frame-pointer".  Or just use 4.5.  It's not as if
> you're going to be missing out on any great pentium 3 related features.

 EXTRA_ECONF="--disable-frame-pointer" emerge -a1v gcc didn't help, same problem.
Comment 24 Shawn A. Wilson 2012-11-23 19:47:42 UTC
Confirming same symptom with sys-devel/gcc-4.6.3 on alpha.
Comment 25 Nils Stöckmann 2012-12-22 17:32:07 UTC
Created attachment 333058 [details]
log file of problems during patch application in gcc-4.6.3

Not sure wether this is completely resolved yet; I experience the same issue and noticed problems during patch application

(see attachment)
Comment 26 Boney McCracker 2012-12-22 19:47:55 UTC
Not a biggie.  We can just change the "architectures" entries on the Gentoo website, distrowatch, etc., to add "except Pentium III".
Comment 27 Nils Stöckmann 2012-12-22 20:11:05 UTC
and except pentium-m 
:(
Comment 28 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-12-23 13:18:17 UTC
(In reply to comment #27)
> and except pentium-m 
> :(

(In reply to comment #26)
> Not a biggie.  We can just change the "architectures" entries on the Gentoo
> website, distrowatch, etc., to add "except Pentium III".

Guys, could please stop spamming this bug? Nobody forces you to use 4.6.x on those architectures. It's still ~x86 for a reason. Same goes for 4.7.x, where this is fixed by upstream. If you need to use newer version of gcc, use the latter.

Spreading FUD here won't speed up the backporting. If you really want to express your disappointment please use upstream bug [1]. If they notice that many people are interested in this issue being fixed they *might* be more willing to the job.

Merry Christmas to All,
Kacper Kowalik

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53728
Comment 29 C W Rose 2013-01-05 11:45:05 UTC
CFLAGS = i686 works fine for me.  I don't often emerge
gcc anyway

Will
Comment 30 Mieszko Ślusarczyk 2013-01-05 11:46:44 UTC
Can you just filter these flags (and replace march with i686) for affected ebuilds as a workaround?
Comment 31 Thomas 2013-01-11 22:24:08 UTC
(In reply to comment #21)
> (In reply to comment #20)
> > It seems on the forums someone mentioned temporarily changing CFLAGS to i686
> > can get the compiler built. I may try this one out on my P3.
> 
> Confirmed, using CFLAGS = i686 works on my P3, now have 4.6.3 installed.

Doesn't this mean you have a BROKEN gcc installed?  At least when using -march=pentium3 again?

(In reply to comment #28)
> It's still ~x86 for a reason.

It is not any longer, although this bug is not yet fixed.  I just stumbled over it on a pentium-m notebook after 4.6.3 was stabilized on x86.  I will mask it manually.
Comment 32 Thomas 2013-01-11 22:28:55 UTC
(In reply to comment #30)
> Can you just filter these flags (and replace march with i686) for affected
> ebuilds as a workaround?

Just read comment #18.  There is no urgent need to update gcc on a pentium3 or pentium-m machine dating back to 2006 or earlier.
Comment 33 mrsteven 2013-01-12 17:56:14 UTC
Adding -fno-omit-frame-pointer to CFLAGS also helps.
Comment 34 Raúl Porcel (RETIRED) gentoo-dev 2013-01-13 13:14:23 UTC
(In reply to comment #24)
> Confirming same symptom with sys-devel/gcc-4.6.3 on alpha.

Probably the source of the problem here is different from the one on alpha, i've filed bug 451680 for this
Comment 35 Tiger 2013-01-14 20:56:14 UTC
Confirmed on Pentium II too :]

Linux ServX 2.6.24-gentoo-r1-ServX #2 Sun Apr 20 02:53:51 CEST 2008 i686 Pentium II (Klamath) GenuineIntel GNU/Linux

CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer -m32"
Comment 36 Steve L 2013-01-16 17:46:42 UTC
(In reply to comment #23)
>> Try EXTRA_ECONF="--disable-frame-pointer".
> EXTRA_ECONF="--disable-frame-pointer" emerge -a1v gcc didn't help, same problem.

I think that should be: EXTRA_ECONF="--enable-frame-pointer"
Comment 37 Ján Ondrušek 2013-02-02 17:08:41 UTC
The same thing is happening to me with march=btver1. I was able to compile gcc 4.6.3 with march=nocona though.
Comment 38 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-02-10 08:53:12 UTC
There's a request for testing HEAD of gcc-4.6 branch on upstream bug. If any of you, who has PIII could verify it, we'd be grateful. Should you have problems with compiling from source there's gcc-4.6.4_pre9999.ebuild in toolchain overlay. TIA!
Comment 39 Richard Gray 2013-02-10 23:37:32 UTC
I wouldn't like to say whether these two problems are in fact the same, but there are suspicious similarities... see bug https://bugs.gentoo.org/show_bug.cgi?id=450964

In short, I can confirm that leaving out the -march option will produce a usable compiler on PIII systems.
Comment 40 Gerard Neil 2013-02-15 10:38:22 UTC
Created attachment 338976 [details]
failed build logs - gcc-4.6.4_pre9999 on pentium M
Comment 41 Gerard Neil 2013-02-15 10:42:34 UTC
(In reply to comment #38)
> problems with compiling from source there's gcc-4.6.4_pre9999.ebuild in
> toolchain overlay. TIA!

FWIW I have a pentium-M (after all, pretty much a PIII) and I'm seeing the same bootstrap comparison failures, so a gave the above ebuild a go... still fails (attachment 338976 [details])
Comment 42 Sebastian Flothow 2013-02-20 23:07:47 UTC
Just hit this on a PIII box. I'm aware this is an upstream bug, but maybe GCC 4.6 should be marked ~x86 until this is fixed?

For the record, the build worked with  CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" (my usual setting, with which the build failed, is CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe").
Comment 43 Alex Cannon 2013-02-23 23:15:41 UTC
I just ran in to this bug and spent lots of time wondering what was wrong. Could some warning be added to the package that would trigger on march=pentium3 so M?
Comment 44 Michael Lee Yohe 2013-03-05 16:05:31 UTC
Confirm this bug affects not only march, but also for specific tuning:

march=i686
mtune=pentium-m
Comment 45 Ryan Hill (RETIRED) gentoo-dev 2013-04-05 05:23:23 UTC
Since this won't be fixed upstream (the 4.6 branch is now closed) we'll add a workaround.  Sorry about the wait.
Comment 47 SpanKY gentoo-dev 2013-05-08 15:40:34 UTC
*** Bug 450964 has been marked as a duplicate of this bug. ***