Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] gcc-4.6.3 stage compare error

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

[SOLVED] gcc-4.6.3 stage compare error

  • Quote

Post by selig » Sun Jul 14, 2013 11:55 am

I am unable to compile GCC on a new install, running from the install CD. I have never encountered this problem so I have no idea what to try.

Code: Select all

livecd ~ # emerge -pv gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/gcc-4.6.3:4.6  USE="cxx mudflap nls nptl openmp (-altivec) -doc (-fixed-point) -fortran* -gcj -graphite -gtk (-hardened) (-libssp) -lto (-multilib*) -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Build error:

Code: Select all

Comparing stages 2 and 3
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
gcc/tree-vect-data-refs.o differs
gcc/gcov-dump.o differs
gcc/stor-layout.o differs
gcc/calls.o differs
gcc/c-family/c-cppbuiltin.o differs
gcc/c-family/c-common.o differs
gcc/builtins.o differs
gcc/dwarf2out.o differs
gcc/ebitmap.o differs
gcc/final.o differs
gcc/sel-sched-ir.o differs
gcc/rtlanal.o differs
gcc/tree-cfg.o differs
gcc/tree.o differs
gcc/emit-rtl.o differs
gcc/sched-deps.o differs
gcc/tree-object-size.o differs
gcc/gimple-pretty-print.o differs
gcc/mode-switching.o differs
gcc/tree-ssa-loop-im.o differs
gcc/gcov.o differs
gcc/regstat.o differs
gcc/dse.o differs
gcc/ggc-page.o differs
gcc/tree-into-ssa.o differs
gcc/tree-ssa-threadupdate.o differs
gcc/df-problems.o differs
gcc/tree-ssa-live.o differs
gcc/real.o differs
gcc/tree-vrp.o differs
gcc/tree-ssa-loop-prefetch.o differs
gcc/tree-ssa-dom.o differs
gcc/tree-sra.o differs
gcc/varasm.o differs
gcc/tree-ssa-loop-ivopts.o differs
gcc/cgraph.o differs
gcc/tree-vect-loop.o differs
gcc/reginfo.o differs
gcc/gcc.o differs
gcc/cfganal.o differs
gcc/loop-invariant.o differs
gcc/function.o differs
gcc/fold-const.o differs
gcc/ipa-type-escape.o differs
gcc/matrix-reorg.o differs
gcc/tree-ssa-ccp.o differs
gcc/combine.o differs
gcc/expmed.o differs
gcc/regrename.o differs
gcc/ddg.o differs
gcc/tree-ssa-dce.o differs
gcc/omp-low.o differs
gcc/dwarf2asm.o differs
gcc/dominance.o differs
gcc/tree-ssa-coalesce.o differs
gcc/ira.o differs
gcc/haifa-sched.o differs
gcc/cfg.o differs
gcc/sel-sched-dump.o differs
gcc/insn-emit.o differs
gcc/cp/rtti.o differs
gcc/cp/mangle.o differs
gcc/cp/pt.o differs
gcc/ipa-reference.o differs
gcc/tree-ssa-sink.o differs
gcc/loop-iv.o differs
gcc/tree-dump.o differs
gcc/resource.o differs
gcc/sel-sched.o differs
gcc/postreload.o differs
gcc/predict.o differs
gcc/tree-loop-distribution.o differs
gcc/tree-vect-stmts.o differs
gcc/tree-ssa-pre.o differs
gcc/insn-output.o differs
gcc/gcse.o differs
gcc/caller-save.o differs
gcc/tree-scalar-evolution.o differs
gcc/tree-ssa-dse.o differs
gcc/passes.o differs
gcc/cfgexpand.o differs
gcc/tree-ssa-ter.o differs
gcc/tree-vect-loop-manip.o differs
gcc/store-motion.o differs
gcc/tree-ssa-structalias.o differs
gcc/graphds.o differs
gcc/ipa-split.o differs
gcc/sched-rgn.o differs
gcc/sese.o differs
gcc/tree-ssa-loop-manip.o differs
gcc/explow.o differs
gcc/sbitmap.o differs
gcc/lower-subreg.o differs
gcc/double-int.o differs
gcc/df-core.o differs
gcc/cse.o differs
gcc/godump.o differs
gcc/reg-stack.o differs
gcc/reload1.o differs
gcc/ira-conflicts.o differs
gcc/cfgloop.o differs
gcc/insn-recog.o differs
gcc/bt-load.o differs
gcc/ira-build.o differs
gcc/cfgloopmanip.o differs
gcc/tree-ssa.o differs
gcc/c-typeck.o differs
gcc/ira-lives.o differs
gcc/simplify-rtx.o differs
gcc/df-scan.o differs
gcc/build/read-rtl.o differs
gcc/build/genattrtab.o differs
gcc/build/genmodes.o differs
gcc/build/genautomata.o differs
gcc/i386.o differs
gcc/insn-preds.o differs
gcc/tree-vect-generic.o differs
gcc/ira-emit.o differs
gcc/lto-cgraph.o differs
gcc/gimplify.o differs
gcc/bitmap.o differs
gcc/tree-cfgcleanup.o differs
gcc/opts.o differs
gcc/ira-color.o differs
gcc/expr.o differs
gcc/ifcvt.o differs
libcpp/charset.o differs
libcpp/mkdeps.o differs
libcpp/directives.o differs
libcpp/lex.o differs
libcpp/directives-only.o differs
libdecnumber/decContext.o differs
libiberty/regex.o differs
libiberty/simple-object-elf.o differs
libiberty/cp-demangle.o differs
libiberty/make-relative-prefix.o differs
libiberty/pic/regex.o differs
libiberty/pic/simple-object-elf.o differs
libiberty/pic/cp-demangle.o differs
libiberty/pic/make-relative-prefix.o differs
libiberty/pic/simple-object-mach-o.o differs
libiberty/simple-object-mach-o.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

emerge --info:

Code: Select all

livecd ~ # emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.8.6-hardened x86_64)
=================================================================
System uname: Linux-3.8.6-hardened-x86_64-QEMU_Virtual_CPU_version_-cpu64-rhel6-with-gentoo-2.2
KiB Mem:    24694796 total,  20165316 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Sun, 14 Jul 2013 08:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-Overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="/home/ttx/Overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bzip2 caps clamav cli cracklib crypt curl cxx dri expat fam fontconfig fortran ftp gd gdbm geoip iconv imap ipv6 ithreads jpeg jpeg2k lm_sensors logrotate memlimit mmx modules mudflap mysql ncurses nls nptl openmp pam pcre perl perlsuid php pic png python readline session slang spell sse sse2 ssl tcpd threads tiff truetype unicode xml zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="auth_digest cgid dbd ident imagemap actions alias auth_basic authn_alias authn_default authn_file authn_dbd authz_default authz_groupfile authz_host authz_owner authz_user deflate dir env expires ext_filter filter headers include log_config mime mime_magic negotiation rewrite setenvif status vhost_alias" APACHE2_MPMS="prefork" 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 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="cs en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="geoip"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Last edited by selig on Tue Aug 13, 2013 7:13 am, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jul 14, 2013 1:16 pm

selig,

I suspect a hardware problem.
Run a few cycles of memtest86 by booting it in place of your kernel.

This tests much more than just RAM.

Report back with any errors.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

  • Quote

Post by selig » Wed Jul 24, 2013 6:59 am

I've left the memtest run for a few days (6 passes) and there were no errors.
Top
cwr
Veteran
Veteran
Posts: 1969
Joined: Sat Dec 17, 2005 11:17 am

  • Quote

Post by cwr » Wed Jul 24, 2013 9:59 am

You might try rebuilding with -j1, and perhaps checking that there's enough space/inodes
on the device you are using for the build. Do the apparently "differ" files actually exist?

Will
Top
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

  • Quote

Post by selig » Wed Jul 31, 2013 1:00 pm

I have tried with -j1 and still the same error. The files exist and their checksums differ. For example

Code: Select all

livecd build # md5sum stage2-gcc/build/genautomata.o 
72d0203366115a0f4d93137287c58275  stage2-gcc/build/genautomata.o
livecd build # md5sum stage3-gcc/build/genautomata.o 
519b09f13ea7223616337fefe65d572f  stage3-gcc/build/genautomata.o
Plenty of free inodes

Code: Select all

/dev/mapper/vg00-lv_var   6.1M   84K  6.0M    2% /mnt/gentoo/var
I really don't know if I should trust the hardware or not... but memtest was ok and I also ran some other stress tests some time ago.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Jul 31, 2013 6:33 pm

selig,

Do you get identical checksums (that differ) from run to run?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

  • Quote

Post by selig » Tue Aug 06, 2013 7:10 am

I've compiled it again, the checksums are the same for every run but stage 2 and 3 differ...

EDIT: so it seems gcc won't compile with -march=native. I changed it to -march=athlon64 and it's working now.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic