Hi everyone,

I got a "Bootstrap comparison failure!" error when building gcc 4.3.3:


Comparing stages 2 and 3
warning: ./cc1-checksum.o differs
warning: ./cc1plus-checksum.o differs
Bootstrap comparison failure!
./tree-cfg.o differs
./double-int.o differs
./gimple-low.o differs
./tree-into-ssa.o differs
./tree-ssa-loop-unswitch.o differs
...omit...
./langhooks.o differs
...omit...
./tree-dfa.o differs
./tree-nomudflap.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/bwdata/testuser/repo/build-gcc-4.3.3-by-gcc-3.3.3'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/bwdata/testuser/repo/build-gcc-4.3.3-by-gcc-3.3.3'
make: *** [all] Error 2


My configuration is:
   -Linux gnode2 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004
x86_64 x86_64 x86_64 GNU/Linux
   -SUSE LINUX Enterprise Server 9 (x86_64)
   -gcc 3.3.3
   -gmp 4.2.2, mpfr 2.3.0

the configure cmd is:
../gcc-4.3.3/configure --prefix=/home/testuser/tools/gcc-4.3.3
                               --with-gmp=/home/testuser/tools/gmp-4.2.2
                               --with-mpfr=/home/testuser/tools/mpfr-2.3.0/
                               --enable-languages=c,c++,fortran

And I found a strange problem when I tried to use the stage1-gcc/xgcc to compile
langhooks.c (langhooks.o differs at the final comparison) manually. I used the
following command to compile it twice, and compare the two produced langhooks.o.
To my surprise, the two langhooks.o were not identical:

In directory stage2-gcc, I issued the following cmd to produce langhooks1.o.
>/home/testuser/repo/build-gcc-4.3.3-by-gcc-3.3.3/stage1-gcc/xgcc 
>-B/home/testuser/repo/build-gcc-4.3.3-by-gcc
-3.3.3/./stage1-gcc/
-B/home/testuser/tools/gcc-4.3.3/x86_64-unknown-linux-gnu/bin/ -c  -g
-O2 -DIN_GCC   -W -Wall -Wwr
ite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic
-Wno-long-lo
ng -Wno-variadic-macros             -Wno-overlength-strings
-DHAVE_CONFIG_H -I. -I. -I../../gcc-4.3.3/gcc -I../../gcc-4.3.
3/gcc/. -I../../gcc-4.3.3/gcc/../include
-I../../gcc-4.3.3/gcc/../libcpp/include
-I/home/testuser/tools/gmp-4.2.2/inc
lude -I/home/testuser/tools/mpfr-2.3.0-by-gcc-3.3.3//include
-I../../gcc-4.3.3/gcc/../libdecnumber -I../../gcc-4.3.3/
gcc/../libdecnumber/bid -I../libdecnumber
../../gcc-4.3.3/gcc/langhooks.c -o langhooks1.o

then, I issued the same cmd to produce langhooks2.o
>/home/testuser/repo/build-gcc-4.3.3-by-gcc-3.3.3/stage1-gcc/xgcc 
>-B/home/testuser/repo/build-gcc-4.3.3-by-gcc
-3.3.3/./stage1-gcc/
-B/home/testuser/tools/gcc-4.3.3/x86_64-unknown-linux-gnu/bin/ -c -g
-O2 -DIN_GCC   -W -Wall -Wwr
ite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic
-Wno-long-lo
ng -Wno-variadic-macros             -Wno-overlength-strings
-DHAVE_CONFIG_H -I. -I. -I../../gcc-4.3.3/gcc -I../../gcc-4.3.
3/gcc/. -I../../gcc-4.3.3/gcc/../include
-I../../gcc-4.3.3/gcc/../libcpp/include
-I/home/testuser/tools/gmp-4.2.2/inc
lude -I/home/testuser/tools/mpfr-2.3.0-by-gcc-3.3.3//include
-I../../gcc-4.3.3/gcc/../libdecnumber -I../../gcc-4.3.3/
gcc/../libdecnumber/bid -I../libdecnumber
../../gcc-4.3.3/gcc/langhooks.c -o langhooks2.o

finally, I compared langhooks1.o langhooks2.o
>cmp -i 16 langhooks1.o langhooks2.o
langhooks1.o langhooks2.o differ: byte 76626, line 514

And I have successfully built gcc 4.0.0 and gcc 4.1.2 on the same
machine, but failed to build gcc 4.2.4 with the same
"Bootstrap comparison failure!" problem.
I have also tried to use gcc 4.0.0 to build gcc 4.3.3 on the same
machine, but also failed with the same problem.

Any suggestions?

Thanks in advance.

Reply via email to