Bug 40923 - bootstrap failure for 20090730 with --enable-build-with-cxx
Summary: bootstrap failure for 20090730 with --enable-build-with-cxx
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 09:08 UTC by David Binderman
Modified: 2009-10-30 05:58 UTC (History)
4 users (show)

See Also:
Host: x86_64-suse-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-10-24 04:04:57


Attachments
Candidate patch (3.51 KB, patch)
2009-10-24 04:06 UTC, Jerry Quinn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2009-07-31 09:08:07 UTC
I just tried to bootstrap gcc 4.5 mainline snapshot 20090730
and it failed when comparing stage 2 and stage3.

There is the output

Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/vec.o differs
x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/eh_globals.o differs
x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/eh_alloc.o differs
x86_64-unknown-linux-gnu/libstdc++-v3/src/locale.o differs

configure line was

../src/gcc-4.5-20090730/configure --enable-languages=c,c++ --prefix=/home/dcb/gcc/20090730/results --enable-checking --enable-build-with-cxx

The previous snapshot 20090723 also failed to bootstrap
but the one before that 20090716 bootstrapped fine.

I suspect a code change somewhere between 20090716 and 20090723.
Comment 1 David Binderman 2009-07-31 11:40:59 UTC
(In reply to comment #0)
> I just tried to bootstrap gcc 4.5 mainline snapshot 20090730
> and it failed when comparing stage 2 and stage3.

The extra word --enable-build-with-cxx seems to be significant,
because when I remove it, the compiler bootstraps fine.
  
Comment 2 Dmitry Gorbachev 2009-08-07 19:25:49 UTC
Keywords: mangling, anonymous namespaces.

Adding option such as -frandom-seed=271828 to CXXFLAGS_FOR_TARGET allows to bootstrap.
Comment 3 Jerry Quinn 2009-10-24 04:06:40 UTC
Created attachment 18885 [details]
Candidate patch

This fixes the bootstrap, though a bunch of plugin tests fail compared to unpatched build with C.
Comment 4 Jerry Quinn 2009-10-30 05:58:03 UTC
Should be fixed by r153734.