GCC bootstrap error (object files differ)

Donnie Roos dr at kaneda.demon.nl
Wed Jun 7 15:45:08 PDT 2000

Hi all,

I am currently trying to compile GCC in the chroot'ed enviroment. However
during "make bootstrap" i got some errors i am unable to resolve. The
(full) error message is at the bottom.

I have compiled GCC succesfully for my own system & LFS before changing to
the chroot'ed enviroment (Preparing... chapter).
I started from scratch (deleted the previous gcc & gcc-build directorys and
unpacked gcc again)

If anyone can offer some insight it will be appreciated.


Donnie Roos

The error-message is the following:

make[2]: Leaving directory `/usr/src/gcc-build/gcc'
make[1]: Leaving directory `/usr/src/gcc-build/gcc'
Comparing stage2 and stage3 of the compiler
make[1]: Entering directory `/usr/src/gcc-build/gcc'
rm -f .bad_compare
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
compare |
sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for file in *.o; do \
  tail +16c ./$file > tmp-foo1; \
  tail +16c stage$stage/$file > tmp-foo2 \
    && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >>
pare) || true; \
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
compare |
sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in tmp-foo intl cp; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      tail +16c ./$file > tmp-foo1; \
      tail +16c stage$stage/$file > tmp-foo2 \
        && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >>
_compare) || true; \
    done; \
  else true; fi; \
rm -f tmp-foo*
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
compare |
sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "compare" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
Bootstrap comparison failure!
alias.o differs
bitmap.o differs
c-aux-info.o differs
c-common.o differs
c-convert.o differs
c-decl.o differs
c-iterate.o differs
c-lang.o differs
c-lex.o differs
c-parse.o differs
c-pragma.o differs
c-typeck.o differs
caller-save.o differs
calls.o differs
cccp.o differs
cexp.o differs
collect2.o differs
combine.o differs
convert.o differs
cppspec.o differs
crtbegin.o differs
crtbeginS.o differs
crtend.o differs
crtendS.o differs
cse.o differs
cxxmain.o differs
dbxout.o differs
dwarf2out.o differs
dwarfout.o differs
dyn-string.o differs
emit-rtl.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.o differs
gcse.o differs
genattr.o differs
genattrtab.o differs
gencheck.o differs
gencodes.o differs
genconfig.o differs
genemit.o differs
genextract.o differs
genflags.o differs
gengenrtl.o differs
genopinit.o differs
genoutput.o differs
genpeep.o differs
genrecog.o differs
genrtl.o differs
getpwd.o differs
global.o differs
graph.o differs
hash.o differs
i386.o differs
insn-attrtab.o differs
insn-emit.o differs
insn-extract.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
lcm.o differs
local-alloc.o differs
loop.o differs
mbchar.o differs
obstack.o differs
optabs.o differs
prefix.o differs
print-rtl.o differs
print-tree.o differs
profile.o differs
protoize.o differs
real.o differs
recog.o differs
reg-stack.o differs
regclass.o differs
regmove.o differs
reload.o differs
reload1.o differs
reorg.o differs
resource.o differs
rtl.o differs
rtlanal.o differs
sbitmap.o differs
sched.o differs
sdbout.o differs
splay-tree.o differs
stmt.o differs
stor-layout.o differs
stupid.o differs
tlink.o differs
toplev.o differs
tree.o differs
underscore.o differs
unprotoize.o differs
unroll.o differs
varasm.o differs
varray.o differs
version.o differs
xcoffout.o differs
cp/call.o differs
cp/class.o differs
cp/cvt.o differs
cp/decl.o differs
cp/decl2.o differs
cp/errfn.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/method.o differs
cp/parse.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/sig.o differs
cp/spew.o differs
cp/tree.o differs
cp/typeck.o differs
cp/typeck2.o differs
cp/xref.o differs
make[1]: *** [compare] Error 1
make[1]: Leaving directory `/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2

Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
News Reader access: news.pcrdallas.com
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)

More information about the lfs-dev mailing list