Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 4.6.3 fails to build (checksum diff. between stages)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 177
Location: Italy

PostPosted: Mon Jun 04, 2012 2:31 pm    Post subject: gcc 4.6.3 fails to build (checksum diff. between stages) Reply with quote

Code:
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=i686-pc-linux-gnu" "bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.6.3" "datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3" "exec_prefix=/usr" "includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include" "datarootdir=/usr/share" "docdir=/usr/share/doc/" "infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3/info" "pdfdir=/usr/share/doc/" "htmldir=/usr/share/doc/" "libdir=/usr/lib" "libexecdir=/usr/libexec" "lispdir=" "localstatedir=/usr/var" "mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3/man" "oldincludedir=/usr/include" "prefix=/usr" "sbindir=/usr/sbin" "sharedstatedir=/usr/com" "sysconfdir=/usr/etc" "tooldir=/usr/i686-pc-linux-gnu" "build_tooldir=/usr/i686-pc-linux-gnu" "target_alias=i686-pc-linux-gnu" "AWK=gawk" "BISON=bison" "CC_FOR_BUILD=i686-pc-linux-gnu-gcc" "CFLAGS_FOR_BUILD=-march=pentium-m -pipe -O2" "CXX_FOR_BUILD=i686-pc-linux-gnu-g++" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-Wl,-O1 -Wl,--as-needed" "LEX=flex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/bin/sed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg -gnata' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-march=pentium-m -pipe -O2" "BOOT_LDFLAGS=" "CFLAGS=-march=pentium-m -pipe -O2" "CXXFLAGS=-march=pentium-m -pipe -O2" "LDFLAGS=-Wl,-O1 -Wl,--as-needed" "LIBCFLAGS=-march=pentium-m -pipe -O2 " "LIBCXXFLAGS=-march=pentium-m -pipe -O2 -fno-implicit-templates " "STAGE1_CHECKING=--enable-checking=release,types" "STAGE1_LANGUAGES=c,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/ar" "AS_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/as" "CC_FOR_TARGET=/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -march=pentium-m -pipe -O2" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-march=pentium-m -pipe -O2 -D_GNU_SOURCE" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -march=pentium-m -pipe -O2" "LIBCXXFLAGS_FOR_TARGET=-march=pentium-m -pipe -O2 -D_GNU_SOURCE -fno-implicit-templates" "NM_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/nm" "OBJDUMP_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/objdump" "RANLIB_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/ranlib" "STRIP_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=:" "STAGE1_CFLAGS=" "STAGE1_CXXFLAGS=-march=pentium-m -pipe -O2" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-march=pentium-m -pipe -O2 -gtoggle" "STAGE2_CXXFLAGS=-march=pentium-m -pipe -O2" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-march=pentium-m -pipe -O2" "STAGE3_CXXFLAGS=-march=pentium-m -pipe -O2" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-march=pentium-m -pipe -O2" "STAGE4_CXXFLAGS=-march=pentium-m -pipe -O2" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-march=pentium-m -pipe -O2 -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-march=pentium-m -pipe -O2" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-march=pentium-m -pipe -O2 -fprofile-use" "STAGEfeedback_CXXFLAGS=-march=pentium-m -pipe -O2" "STAGEfeedback_TFLAGS="  "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000"  compare
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
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
 * ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3837:  Called toolchain_src_compile
 *   environment, line 4468:  Called gcc_do_make
 *   environment, line 2211:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.6.3'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.6.3'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc-build-logs.tar.bz2 in your bug report
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/build.log'.


Someone has ideas? should I open a bug report for this? I couldn't find any open ones.

the output of emerge --info:

Code:

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


Thank you
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 4291

PostPosted: Mon Jun 04, 2012 2:46 pm    Post subject: Reply with quote

This is a known bug.
Back to top
View user's profile Send private message
multix
Apprentice
Apprentice


Joined: 28 Nov 2004
Posts: 177
Location: Italy

PostPosted: Mon Jun 04, 2012 3:39 pm    Post subject: Reply with quote

mv wrote:
This is a known bug.

Ok, I missed to find the bug evidently... Petnium M is a PIII derivative. I'll add my information there, thanks
_________________
Unix is user friendly. It is only careful selecting its friends.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1707

PostPosted: Tue Jun 05, 2012 8:52 am    Post subject: Reply with quote

Interestingly it's a Gentoo bug - that is, the original gcc from gnu.org compiles correctly.
But I don't know where gentoo gets its patches from.

Will
Back to top
View user's profile Send private message
swanson
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2004
Posts: 112
Location: Edinburgh, Scotland

PostPosted: Tue Jun 05, 2012 9:29 am    Post subject: Reply with quote

You can workaround it by temporarily changing CFLAGS -march=pentium-m to -march=i686 when building GCC 4.6. Being built with i686 will not change the compiled output of GCC.
_________________
Alan.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1707

PostPosted: Tue Jun 05, 2012 3:33 pm    Post subject: Reply with quote

Thanks - I'll give that a try. I can't recall what flags the Gnu version built with, so it may in fact
be a bug in GCC itself.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum