Summary: | GCC 3.4.4 build fails with "Bootstrap comparison failure!" on hardened x86 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Karl-Johan Karlsson <creideiki+gentoo-bugzilla> |
Component: | Hardened | Assignee: | The Gentoo Linux Hardened Team <hardened> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | CC: | dirk.heinrichs.ext, dragonheart, ikelos |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Error log attempting to compile gcc-3.4.4 |
Description
Karl-Johan Karlsson
2005-06-05 14:57:39 UTC
I'm getting precisely the same on my AMD64 (but everything is built in 32-bit mode). It's ntplonly with hardened, pic and pie set. The odd thing is I've got two other hardened, pic, pie, nptlonly boxes, both of which compiled it a day or two earlier fine. I'm also now having troubles recompiling glibc, but I don't know if that's related or not. I've also provided my full error log, and an emerge info. Looking up common bootstrap failures, it's often suggested that this is a hardware problem, however I ran memtest86 over my RAM, and it detected no problems (I stopped it after 75% and 10 hours). It also suggests that there is some reason that the files get built differently between the two stages. Supposedly something non-deterministic is occuring, however this error message is repeatable, every time. I disabled ccache in case that was the problem, but still it happens. I'd be very happy to test out any patches, fixes or anything else that people might want me to try (as long as they explain it). Thanks... Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.12-rc5 i686) ================================================================= System uname: 2.6.12-rc5 i686 AMD Athlon(tm) 64 Processor 3400+ Gentoo Base System version 1.6.12 ccache version 2.4 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/personal" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acl acpi adns alsa avi bash-completion berkdb bitmap-fonts boundschecking cairo ccache cdr cjk client crypt cups djvu dlloader dvd dvdr dvi eds emboss encode fam flac foomaticdb fortran gd gdbm gif glitz gnome gnutls gstreamer gtk gtk2 gtkhtml hal hardened imagemagick imap imlib java jpeg junit libg++ libwww mad mikmod mime mmx mmxext motif mozilla mozsvg mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pam pdflib perl pic pie png postgres python quicktime readline real sdl server snmp spell sse sse2 ssl svg svga t1lib tcpd theora tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs xine xml2 xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS Created attachment 60684 [details]
Error log attempting to compile gcc-3.4.4
Having the same problem Same error here... *** Bug 95348 has been marked as a duplicate of this bug. *** Is this bug still valid? I'm no longer experiencing these problems. I did at some point manage to build gcc-3.4.4 with the hardened USE flag set, although I'm now on to 3.4.5. Hope this helps... Works here too. I hade >=3.4.4 masked for a long time, but when I tried 3.4.5 it worked. I just tried pulling 3.4.4 from the CVS attic, and it built as well. Marking WONTFIX as 3.4.3 is no longer in the tree, and either we haven't been able to reproduce the problem, or it has been fixed as a side-effect of something else, or is no longer relevant. For anyone struggling to upgrade a compiler, I would suggest the best approach is to switch to a different compiler to bootstrap the new one. Trying the vanilla version of the current compiler is a good choice, as is the most recent stable version if it's still installed. |