i bootstrap gcc 4.0.2 on AIX 5.2,i got the error message as follows: ----- Bootstrap comparison failure! ./fold-const.o differs make[1]: *** [slowcompare] Error 1 make[1]: Leaving directory `/swtdata/emv_emu/emu1/jbgao/objdir/gcc' make: *** [bootstrap] Error 2 ------ i used gnu make already. is this a bug or anything else?
What compiler are you starting with? Also what options did you use to do a configure with. Also could you make sure that you have read: http://gcc.gnu.org/install/specific.html#x-ibm-aix
1: I use xls,ibm visual age 6.0 c compiler. 2:configure options is as follows: ../gcc-4.0.2/configure --prefix=/swtdata/emv_emu/emu1/jbgao/gccbin --enable-threads=aix --enable-languages=c,c++ 3:i have read the install specific about compile on aix ,have no ideas. i searched the bug database for the related bug, the solving methold have no use. //-----here is the output Comparing stage2 and stage3 of the compiler make[1]: Entering directory `/swtdata/emv_emu/emu1/jbgao/gccbin/gcc' rm -f .bad_compare case "slowcompare" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo slowcompare | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ for dir in . cp build; do \ if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \ for file in $dir/*.o; do \ case "slowcompare" in \ slowcompare* ) \ tail +16c ./$file > tmp-foo1; \ tail +16c stage$stage/$file > tmp-foo2 \ && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \ ;; \ fastcompare* ) \ cmp $file stage$stage/$file 16 16 > /dev/null 2>&1; \ test $? -eq 1 && echo $file differs >> .bad_compare || true; \ ;; \ gnucompare* ) \ cmp --ignore-initial=16 $file stage$stage/$file > /dev/null 2>&1; \ test $? -eq 1 && echo $file differs >> .bad_compare || true; \ ;; \ esac ; \ done; \ else true; fi; \ done rm -f tmp-foo* case "slowcompare" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo slowcompare | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ if [ -f .bad_compare ]; then \ echo "Bootstrap comparison failure!"; \ cat .bad_compare; \ exit 1; \ else \ case "slowcompare" in \ *-lean ) rm -rf stage$stage ;; \ *) ;; \ esac; true; \ fi Bootstrap comparison failure! ./alias.o differs ./alloc-pool.o differs ./attribs.o differs ./bb-reorder.o differs ./bitmap.o differs ./bt-load.o differs ./builtins.o differs ./c-aux-info.o differs ./c-common.o differs ./c-convert.o differs ./c-cppbuiltin.o differs ./c-decl.o differs ./c-dump.o differs ./c-errors.o differs ./c-format.o differs ./c-gimplify.o differs ./c-incpath.o differs ./c-lang.o differs ./c-lex.o differs ./c-objc-common.o differs ./c-opts.o differs ./c-parse.o differs ./c-pch.o differs ./c-ppoutput.o differs ./c-pragma.o differs ./c-pretty-print.o differs ./c-semantics.o differs ./c-typeck.o differs ./caller-save.o differs ./calls.o differs ./cfg.o differs ./cfganal.o differs ./cfgbuild.o differs ./cfgcleanup.o differs ./cfgexpand.o differs ./cfghooks.o differs ./cfglayout.o differs ./cfgloop.o differs ./cfgloopanal.o differs ./cfgloopmanip.o differs ./cfgrtl.o differs ./cgraph.o differs ./cgraphunit.o differs ./collect2.o differs ./combine.o differs ./conflict.o differs ./convert.o differs ./coverage.o differs ./cppspec.o differs ./cse.o differs ./cselib.o differs ./dbxout.o differs ./ddg.o differs ./debug.o differs ./df.o differs ./diagnostic.o differs ./dojump.o differs ./dominance.o differs ./domwalk.o differs ./dwarf2asm.o differs ./dwarf2out.o differs ./emit-rtl.o differs ./errors.o differs ./et-forest.o differs ./except.o differs ./explow.o differs ./expmed.o differs ./expr.o differs ./final.o differs ./flow.o differs ./fold-const.o differs ./function.o differs ./g++spec.o differs ./gcc.o differs ./gccspec.o differs ./gcov-dump.o differs ./gcov.o differs ./gcse.o differs ./genrtl.o differs ./ggc-common.o differs ./ggc-page.o differs ./gimple-low.o differs ./gimplify.o differs ./global.o differs ./graph.o differs ./gtype-desc.o differs ./haifa-sched.o differs ./hooks.o differs ./ifcvt.o differs ./insn-attrtab.o differs ./insn-emit.o differs ./insn-extract.o differs ./insn-modes.o differs ./insn-opinit.o differs ./insn-output.o differs ./insn-peep.o differs ./insn-recog.o differs ./integrate.o differs ./intl.o differs ./jump.o differs ./lambda-code.o differs ./lambda-mat.o differs ./lambda-trans.o differs ./langhooks.o differs ./lcm.o differs ./lists.o differs ./local-alloc.o differs ./loop-doloop.o differs ./loop-init.o differs ./loop-invariant.o differs ./loop-iv.o differs ./loop-unroll.o differs ./loop-unswitch.o differs ./loop.o differs ./main.o differs ./modulo-sched.o differs ./optabs.o differs ./opts.o differs ./params.o differs ./passes.o differs ./pointer-set.o differs ./postreload-gcse.o differs ./postreload.o differs ./predict.o differs ./prefix.o differs ./pretty-print.o differs ./print-rtl.o differs ./print-tree.o differs ./profile.o differs ./real.o differs ./recog.o differs ./regclass.o differs ./regmove.o differs ./regrename.o differs ./reload.o differs ./reload1.o differs ./resource.o differs ./rs6000-c.o differs ./rs6000.o differs ./rtl-error.o differs ./rtl-profile.o differs ./rtl.o differs ./rtlanal.o differs ./rtlhooks.o differs ./sbitmap.o differs ./sched-deps.o differs ./sched-ebb.o differs ./sched-rgn.o differs ./sched-vis.o differs ./simplify-rtx.o differs ./sreal.o differs ./stmt.o differs ./stor-layout.o differs ./stringpool.o differs ./stub-objc.o differs ./targhooks.o differs ./timevar.o differs ./tlink.o differs ./toplev.o differs ./tracer.o differs ./tree-cfg.o differs ./tree-chrec.o differs ./tree-complex.o differs ./tree-data-ref.o differs ./tree-dfa.o differs ./tree-dump.o differs ./tree-eh.o differs ./tree-gimple.o differs ./tree-if-conv.o differs ./tree-inline.o differs ./tree-into-ssa.o differs ./tree-iterator.o differs ./tree-loop-linear.o differs ./tree-mudflap.o differs ./tree-nested.o differs ./tree-nomudflap.o differs ./tree-nrv.o differs ./tree-optimize.o differs ./tree-outof-ssa.o differs ./tree-phinodes.o differs ./tree-pretty-print.o differs ./tree-profile.o differs ./tree-scalar-evolution.o differs ./tree-sra.o differs ./tree-ssa-alias.o differs ./tree-ssa-ccp.o differs ./tree-ssa-copy.o differs ./tree-ssa-copyrename.o differs ./tree-ssa-dce.o differs ./tree-ssa-dom.o differs ./tree-ssa-dse.o differs ./tree-ssa-forwprop.o differs ./tree-ssa-live.o differs ./tree-ssa-loop-ch.o differs ./tree-ssa-loop-im.o differs ./tree-ssa-loop-ivcanon.o differs ./tree-ssa-loop-ivopts.o differs ./tree-ssa-loop-manip.o differs ./tree-ssa-loop-niter.o differs ./tree-ssa-loop-unswitch.o differs ./tree-ssa-loop.o differs ./tree-ssa-operands.o differs ./tree-ssa-phiopt.o differs ./tree-ssa-pre.o differs ./tree-ssa-propagate.o differs ./tree-ssa-threadupdate.o differs ./tree-ssa.o differs ./tree-ssanames.o differs ./tree-tailcall.o differs ./tree-vect-analyze.o differs ./tree-vect-transform.o differs ./tree-vectorizer.o differs ./tree-vn.o differs ./tree.o differs ./value-prof.o differs ./var-tracking.o differs ./varasm.o differs ./varray.o differs ./vec.o differs ./web.o differs ./xcoffout.o differs cp/call.o differs cp/class.o differs cp/cp-gimplify.o differs cp/cp-lang.o differs cp/cp-objcp-common.o differs cp/cvt.o differs cp/cxx-pretty-print.o differs cp/decl.o differs cp/decl2.o differs cp/dump.o differs cp/error.o differs cp/except.o differs cp/expr.o differs cp/friend.o differs cp/init.o differs cp/lex.o differs cp/mangle.o differs cp/method.o differs cp/name-lookup.o differs cp/optimize.o differs cp/parser.o differs cp/pt.o differs cp/ptree.o differs cp/repo.o differs cp/rtti.o differs cp/search.o differs cp/semantics.o differs cp/tree.o differs cp/typeck.o differs cp/typeck2.o differs build/errors.o differs build/gcov-iov.o differs build/genattr.o differs build/genattrtab.o differs build/genautomata.o differs build/gencheck.o differs build/gencodes.o differs build/genconditions.o differs build/genconfig.o differs build/genconstants.o differs build/genemit.o differs build/genextract.o differs build/genflags.o differs build/gengenrtl.o differs build/gengtype-lex.o differs build/gengtype-yacc.o differs build/gengtype.o differs build/genmddeps.o differs build/genmodes.o differs build/genopinit.o differs build/genoutput.o differs build/genpeep.o differs build/genpreds.o differs build/genrecog.o differs build/gensupport.o differs build/ggc-none.o differs build/print-rtl.o differs build/read-rtl.o differs build/rtl.o differs build/varray.o differs make[1]: Leaving directory `/swtdata/emv_emu/emu1/jbgao/gccbin/gcc'
../gcc-4.0.2/configure --prefix=/swtdata/emv_emu/emu1/jbgao/gccbin --enable-threads=aix --enable-languages="c ,c++" --with-included-gettext --enable-shared --disable-multilib make bootstrap use the cc compiler;ibm visual age version 6 here is the output. //------------------------ echo timestamp > stage3_build echo stage3_build > stage_last Bootstrap complete - make "quickstrap" to redo last build, "restage1" through "restage3" to rebuild specific stages, "restrap" to redo the bootstrap from stage1, or "cleanstrap" to redo the bootstrap from scratch. make[1]: Leaving directory `/swtdata/emv_emu/emu1/jbgao/gccbin/gcc' Comparing stage2 and stage3 of the compiler make[1]: Entering directory `/swtdata/emv_emu/emu1/jbgao/gccbin/gcc' rm -f .bad_compare case "slowcompare" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo slowcompare | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ for dir in . cp build; do \ if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \ for file in $dir/*.o; do \ case "slowcompare" in \ slowcompare* ) \ tail +16c ./$file > tmp-foo1; \ tail +16c stage$stage/$file > tmp-foo2 \ && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \ ;; \ fastcompare* ) \ cmp $file stage$stage/$file 16 16 > /dev/null 2>&1; \ test $? -eq 1 && echo $file differs >> .bad_compare || true; \ ;; \ gnucompare* ) \ cmp --ignore-initial=16 $file stage$stage/$file > /dev/null 2>&1; \ test $? -eq 1 && echo $file differs >> .bad_compare || true; \ ;; \ esac ; \ done; \ else true; fi; \ done rm -f tmp-foo* case "slowcompare" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo slowcompare | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \ if [ -f .bad_compare ]; then \ echo "Bootstrap comparison failure!"; \ cat .bad_compare; \ exit 1; \ else \ case "slowcompare" in \ *-lean ) rm -rf stage$stage ;; \ *) ;; \ esac; true; \ fi Bootstrap comparison failure! ./fold-const.o differs make[1]: *** [slowcompare] Error 1 make[1]: Leaving directory `/swtdata/emv_emu/emu1/jbgao/gccbin/gcc' make: *** [bootstrap] Error 2
Many people are reporting that they cannot bootstrap GCC with IBM's VisualAge compiler. This appears to be a problem with VAC/XLC, not with GCC. This bug should be reported to IBM as a XLC bug. In the meantime, you need to bootstrap with an older version of GCC.
no feedback. apparently the problem was XLC bootstrap.