Problems bootstrapping gcc

tim binsted tjb at fambinsted.demon.nl
Tue Oct 15 12:44:51 PDT 2002


On Sunday 13 October 2002 19:21, you wrote:
OK. I have re-run make in the existing gcc-build (using make bootsrap4) and 
this runs to completion. However I still get the same error.
here is the output of the make again:

....
Comparing stage3 and stage4 of the compiler
make[1]: Entering directory `/mnt/lfs/static/usr/src/gcc-build/gcc'
rm -f .bad_compare
case "compare3" in compare | compare-lean ) stage=2 ;; * ) stage=`echo 
compare3 | 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 >> 
.bad_compare) || true; \
done
case "compare3" in compare | compare-lean ) stage=2 ;; * ) stage=`echo 
compare3 | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in tmp-foo intl ; 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 >> 
.bad_compare) || true; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "compare3" in compare | compare-lean ) stage=2 ;; * ) stage=`echo 
compare3 | 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 "compare3" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
fi
Bootstrap comparison failure!
gcc.o differs
tree-dump.o differs
make[1]: *** [compare3] Error 1
make[1]: Leaving directory `/mnt/lfs/static/usr/src/gcc-build/gcc'
make: *** [bootstrap4] Error 2

What I don't understand is what is causing this comparison error in the first 
place. Are there some include files (or whatever) that are casuing the *,os 
to change.

The system I am using is pretty old and small but is not being used for 
anything else. Also I have caused no other changes to be made to the system 
at all. So any hints please...


> lfs wrote:
> 
> > I am having problems building the gcc
> > 
> > Section is chapter 5.
> > All other stages (up to this phase) go OK.
> > Base system is SuSE 8.0
> > Have had the same problem with 4-rc1 and 4.0.
> > 
> > I have nohupped the build and then kept the nohup.out file.
> > Everything goes OK until the end -stage. have also tried "make bootstrap" 
> > and
> > " make quickstrap"  and these always give exactly the same error.
> > 
> > Any information gratefully received.
> > 
> > Last few lines of the output file are below....
> > 
> > Thanks Tim Binsted
> > 
> > 
> > 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 ; 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
> >         >>
> > .bad_compare) || true; \
> >     done; \
> >   else true; fi; \
> > done
> > 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; \
> > fi
> > Bootstrap comparison failure!
> > tree-dump.o differs
> > make[1]: *** [compare] Error 1
> > make[1]: Leaving directory `/mnt/lfs/static/usr/src/gcc-build/gcc'
> > make: *** [bootstrap] Error 2
> 
> The  make bootstrap command makes the compiler three times, then
> compares the last two.  This test has failed and you need to build an
> extra time
> 
> Use the command   make bootstrap4
> 
> If you have not deleted gcc-build, then you can just use this command;
> and if it works, carry on and install the compiler
> -- 
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe lfs-support' in the subject header of the message
> 
> 
> 

-- 
Gr, Tim Binsted
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list