Thanks Jeff for your help! 

So, are the errors confined to these files? Or could it be anywhere?

Comparing stages 2 and 3
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/i386-common.o differs
gcc/bitmap.o differs
libiberty/timeval-utils.o differs
libiberty/pic/timeval-utils.o differs


Is there anything else I can do to pin-point the problem? (like maybe gdb a 
certain file or pass a certain flag to get some debug info)

Thanks,

Balaji V. Iyer.

-----Original Message-----
From: Jeff Law [mailto:l...@redhat.com] 
Sent: Friday, November 04, 2011 2:41 PM
To: Iyer, Balaji V
Cc: 'gcc@gcc.gnu.org'
Subject: Re: Bootstrap Failure Question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/04/11 12:34, Iyer, Balaji V wrote:
> Hello Everyone, I am getting a bootstrap failure right now when I try 
> to build GCC. Here is the output. Can someone please tell me how to 
> fix this? Is this something I have modified? I just configured using 
> the following command (../gcc/configure -prefix=<INSTALL_DIR>). I 
> haven't modified any of the .o files mentioned in the error.
Typically a comparison failure means GCC has mis-compiled itself.  You have to 
figure out why.

I typically start with a small test which is compiled differently by the stage1 
and stage2 compilers.  Then I figure out where they diverge in their behavior 
(say at a pass level).  Then I figure out where they first diverge at a 
function within a pass.  That's usually the function that is being mis-compiled.

Sometimes you can make some educated guesses based recent changes and comparing 
how something was compiled before/after the change.

In all these are some of the most annoying bugs to tackle.

jeff
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOtDHBAAoJEBRtltQi2kC7L20H/1SCJSyusm+MG3oL3SIS2AWz
ahbGFPnIQO0jPi7KGGuH0Cb1ynk1yvHlyLGOoLMAxvRU4zzoKVpXfg7PD966C8Ad
m7Lak7kTlyX6i+rB4+CIAsAA24u0Q1vzvnyzW4gEYk7v1dvvee1nqEMR5p/DbfUU
iXei/L+tZJ4Vq5lf/+0B8Zz7+P10KmU1VydAlFS9OeK2QKuESXUADUiVZtrWZXsB
ClzXOqm6F9Zq/HpK/Va5SGeiYy3sXGzFIzYUnV/RlZcExWH7kPTgbkLXky/D4lKS
CyTzXsfo5mvqZuIp7HtOXGrSZPl2/w2Y1KF0LlQntkJKVR81sic/KG2CfeAVGPA=
=5ZYe
-----END PGP SIGNATURE-----

Reply via email to