Problems bootstrapping gcc

cll muzh muzh at ihug.co.nz
Tue Oct 15 19:46:56 PDT 2002


On Wed, 16 Oct 2002 08:44, tim binsted wrote:
> 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...
>

AFAIK the older the base system is, then the bigger the difference between gcc 
used to compile and the gcc being compiled.
And the bigger the difference the more bootstrap stages you may need to make.  
I have even heard of make bootstrap8 !
Another suggestion is to perhaps compile gcc-2.95 first, then use gcc-2.95 to 
compile the gcc-3.2
Just rambling thoughts --

-- 
This mail is certified Virus-free as no Microsoft products were used in
its preparation or propagation

-- 
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