GCC Bootstrap compilation failure...

James Spinks james at angelos.ftech.co.uk
Sun Jun 9 14:13:07 PDT 2002


Having reached compilation of GCC 2.95.3 in the chroot environment of 
chapter 6.  I'm having problems with the bootstrap compile and thought 
I'd seek some help...

It appears to get to the end of stage 2 of the compile and throws a 
wobbly with files not being as it expected.

----- Cut'n'Paste outputs -----
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 
 >> .bad_compare) || true; \
done
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 >> .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!
alias.o differs
bitmap.o differs

[ deleted most of the differs lines as there were 138 in total ]

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
----- Cut'n'Paste outputs ----

I started with a host system of SuSE 7.3 (fairly normal installation), 
built the static system with no noticed problems as per the LFS 3.3 
instructions - with the following minor exceptions during the static 
phase:

Diffutils 2.8.1 (instead of 2.8)
Tar 1.13.19 (instead of 1.13)
Texinfo 4.2 (instead of 4.1)
Textutils 2.0.14 (instead of 2.0)

All of my alterations are supposed to be minor/bugfix releases - I 
tried to avoid anything risky...

I'll probably try restarting with the book versions, but I'd like to 
get my head around what the problem is regardless of what I do.

-- 
James Spinks

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