Bug 50543 - Bootstrap fails to build for latest 4.6
Summary: Bootstrap fails to build for latest 4.6
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 14:29 UTC by Yukhin Kirill
Modified: 2014-10-10 15:18 UTC (History)
4 users (show)

See Also:
Host:
Target: i?86-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yukhin Kirill 2011-09-27 14:29:30 UTC
Hi,
I am not sure, but possibly this will duplicate some other bug.

Bootstrap miscompares on latest 4.6.0 sources:


$ ../gcc/configure i686-linux --with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld --enable-cloog-backend=isl --with-fpmath=sse --prefix=$PREFIX --enable-languages=c,c++,fortran
$ make -j24
...
make[2]: Entering directory `/export/users/kyukhin/ws_ref/4.6_build'
make[3]: Entering directory `/export/users/kyukhin/ws_ref/4.6_build'
rm -f stage_current
make[3]: Leaving directory `/export/users/kyukhin/ws_ref/4.6_build'
Comparing stages 2 and 3
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
gcc/tree-ssa-loop-im.o differs
gcc/loop-iv.o differs
gcc/ira-build.o differs
gcc/reload.o differs
gcc/gcov.o differs
gcc/tree-vect-stmts.o differs
gcc/tree-vrp.o differs
gcc/reload1.o differs
gcc/bb-reorder.o differs
gcc/real.o differs
gcc/ira.o differs
gcc/dwarf2out.o differs
gcc/tree-ssa-loop-prefetch.o differs
gcc/fold-const.o differs
gcc/ira-emit.o differs
gcc/cfgexpand.o differs
gcc/build/genautomata.o differs
gcc/omega.o differs
gcc/ira-conflicts.o differs
gcc/gcc.o differs
gcc/store-motion.o differs
gcc/ipa-split.o differs
gcc/sel-sched.o differs
gcc/plugin.o differs
gcc/tree-predcom.o differs
gcc/driver-i386.o differs
gcc/tree.o differs
libcpp/directives.o differs
libcpp/charset.o differs
libcpp/traditional.o differs
libcpp/expr.o differs
libdecnumber/bid2dpd_dpd2bid.o differs
libiberty/sha1.o differs
libiberty/pic/sha1.o differs
lto-plugin/.libs/lto-plugin.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/export/users/kyukhin/ws_ref/4.6_build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/export/users/kyukhin/ws_ref/4.6_build'
make: *** [all] Error 2
Comment 1 Jonathan Wakely 2011-09-27 14:39:05 UTC
what do you mean latest 4.6.0?  the 4.6.0 release, or the latest sources on the 4.6 branch? (which will become 4.6.2)
Comment 2 Yukhin Kirill 2011-09-27 16:17:15 UTC
(In reply to comment #1)
> what do you mean latest 4.6.0?  the 4.6.0 release, or the latest sources on the
> 4.6 branch? (which will become 4.6.2)

Latest sources. Sorry for misunderstanding
Comment 3 H.J. Lu 2011-09-27 17:18:56 UTC
What are the last known working revision and non-working revision?
Comment 4 H.J. Lu 2011-09-27 20:29:55 UTC
I have no problem with

/export/gnu/import/git/gcc-release/configure --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --enable-languages=c,c++ i686-linux --prefix=/usr/gcc-4.6.2-corei7 --with-local-prefix=/usr/local --enable-gnu-indirect-function --with-arch=corei7 --with-cpu=corei7 --with-fpmath=sse

on gcc-4_6-branch at revision 179242.
Comment 5 Yukhin Kirill 2011-09-28 07:30:46 UTC
(In reply to comment #4)
> I have no problem with
> 
> /export/gnu/import/git/gcc-release/configure --enable-clocale=gnu
> --with-system-zlib --with-demangler-in-ld --enable-languages=c,c++ i686-linux
> --prefix=/usr/gcc-4.6.2-corei7 --with-local-prefix=/usr/local
> --enable-gnu-indirect-function --with-arch=corei7 --with-cpu=corei7
> --with-fpmath=sse
> 
> on gcc-4_6-branch at revision 179242.

That it strange. 
Build fails from first svn 4.6 branch revision.
Trunk had the same problem which was fixed on 20110729 between svn revisions 176852 176905.
Comment 6 Stupachenko Evgeny 2011-09-28 15:17:04 UTC
First good svn revision on trunk: 176871

Corresponding commit:

commit 6b4db1bd8cef61c66671c8249c21f6fdc8ccce06
Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Jul 28 14:29:38 2011 +0000

    Set need_64bit_hwint to yes for x86 targets.
    
    gcc/
    
    2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* config.gcc: Set need_64bit_hwint to yes for x86 targets.
    
    libcpp/
    
    2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* configure.ac: Set need_64bit_hwint to yes for x86 targets.
    	* configure: Regenerated.
    
gcc-4.6 build with corresponding patch passed.
Comment 7 Yukhin Kirill 2011-09-28 19:42:52 UTC
Anybody but me and Evgeny can confirm that?

I've tried really general path of build it and got fail to compare different stages...
Comment 8 H.J. Lu 2014-10-10 15:18:52 UTC
4.6 branch is closed.