public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/38591]  New: erratic comparison failures on very fast machines
@ 2008-12-21 10:14 ebotcazou at gcc dot gnu dot org
  2008-12-21 15:22 ` [Bug bootstrap/38591] " hjl dot tools at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-12-21 10:14 UTC (permalink / raw)
  To: gcc-bugs

Since we started building the 4.3.x compiler on very fast Linux machines (bi-
quad cores) we have observed erratic but consistent comparison failures, say
a handful of times a month.  The problematic file is always the same:

Comparing stages 2 and 3
Bootstrap comparison failure!
./sparseset.o differs
make[2]: *** [compare] Error 1

The stage 3 object file is not compiled as it should be; in fact, it can be
obtained manually by changing

#define ENABLE_ASSERT_CHECKING 1

to

/* #undef ENABLE_ASSERT_CHECKING */

in gcc/auto-host.h.

so there might be a race condition somewhere in the top-level bootstrap (note
that we have never built 4.2.x on the same machines).


-- 
           Summary: erratic comparison failures on very fast machines
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebotcazou at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
@ 2008-12-21 15:22 ` hjl dot tools at gmail dot com
  2008-12-21 16:09 ` ebotcazou at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-12-21 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2008-12-21 15:20 -------
What are the differences? While working on a patch, I had an
uninitialized stack variable, which caused random comparison
failures.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl dot tools at gmail dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
  2008-12-21 15:22 ` [Bug bootstrap/38591] " hjl dot tools at gmail dot com
@ 2008-12-21 16:09 ` ebotcazou at gcc dot gnu dot org
  2008-12-21 16:19 ` hjl dot tools at gmail dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-12-21 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ebotcazou at gcc dot gnu dot org  2008-12-21 16:07 -------
> What are the differences?

This is explained in the message.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
  2008-12-21 15:22 ` [Bug bootstrap/38591] " hjl dot tools at gmail dot com
  2008-12-21 16:09 ` ebotcazou at gcc dot gnu dot org
@ 2008-12-21 16:19 ` hjl dot tools at gmail dot com
  2008-12-21 17:13 ` ebotcazou at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-12-21 16:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl dot tools at gmail dot com  2008-12-21 16:18 -------
auto-host.h must exist when those files were compiled. I guess
it was generated more than once.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-12-21 16:19 ` hjl dot tools at gmail dot com
@ 2008-12-21 17:13 ` ebotcazou at gcc dot gnu dot org
  2008-12-21 17:22 ` hjl dot tools at gmail dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-12-21 17:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ebotcazou at gcc dot gnu dot org  2008-12-21 17:12 -------
> auto-host.h must exist when those files were compiled. I guess
> it was generated more than once.

My understanding is that it is re-generated at each stage:

auto-host.h: cstamp-h ; @true
cstamp-h: config.in config.status
        CONFIG_HEADERS=auto-host.h:config.in \
        CONFIG_FILES= \
        LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status


In case this can make a difference, the compiler is configured as follows:
--enable-languages=c,ada,c++ --disable-libada --enable-checking=release


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-12-21 17:13 ` ebotcazou at gcc dot gnu dot org
@ 2008-12-21 17:22 ` hjl dot tools at gmail dot com
  2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-12-21 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl dot tools at gmail dot com  2008-12-21 17:21 -------
Each stage has its own directory and auto-host.h should be
regenerated in each directory. I think it was regenerated
more than once in the same directory.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-12-21 17:22 ` hjl dot tools at gmail dot com
@ 2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
  2009-09-06 21:18 ` ebotcazou at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-29 23:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2008-12-29 22:25 -------
We also see this from time to time.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
@ 2009-09-06 21:18 ` ebotcazou at gcc dot gnu dot org
  2009-09-17 16:28 ` rwild at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2009-09-06 21:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ebotcazou at gcc dot gnu dot org  2009-09-06 21:18 -------
In comment #6.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-09-06 21:18:42
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-09-06 21:18 ` ebotcazou at gcc dot gnu dot org
@ 2009-09-17 16:28 ` rwild at gcc dot gnu dot org
  2009-09-17 16:58 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2009-09-17 16:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rwild at gcc dot gnu dot org  2009-09-17 16:27 -------
Does this also happen on trunk, or with branch-4_3 only?  AFAICS 4.3.3 had
  sparseset.o: sparseset.c $(SYSTEM_H) sparseset.h

in gcc/Makefile.in, which means it was lacking $(CONFIG_H) thus lacking
dependency on auto-host.h.  This was fixed in
<http://gcc.gnu.org/ml/gcc-patches/2008-07/msg01022.html>
and glancing at that patch, there may be quite a few other dependency issues
in branch-4_3.

No idea why the borked build does not fail but pick up auto-host.h from
elsewhere or so.  Or do you know for sure that auto-host.h was picked up
from the current directory?


-- 

rwild at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rwild at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-09-17 16:28 ` rwild at gcc dot gnu dot org
@ 2009-09-17 16:58 ` ebotcazou at gcc dot gnu dot org
  2009-09-17 17:40 ` Ralf dot Wildenhues at gmx dot de
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2009-09-17 16:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from ebotcazou at gcc dot gnu dot org  2009-09-17 16:58 -------
> in gcc/Makefile.in, which means it was lacking $(CONFIG_H) thus lacking
> dependency on auto-host.h.  This was fixed in
> <http://gcc.gnu.org/ml/gcc-patches/2008-07/msg01022.html>
> and glancing at that patch, there may be quite a few other dependency issues
> in branch-4_3.

Thanks, will try to add the missing dependency.

> No idea why the borked build does not fail but pick up auto-host.h from
> elsewhere or so.  Or do you know for sure that auto-host.h was picked up
> from the current directory?

Couldn't a truncated auto-host.h have been picked up?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-09-17 16:58 ` ebotcazou at gcc dot gnu dot org
@ 2009-09-17 17:40 ` Ralf dot Wildenhues at gmx dot de
  2010-05-11 13:40 ` [Bug bootstrap/38591] [4.3 regression] " rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Ralf dot Wildenhues at gmx dot de @ 2009-09-17 17:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from Ralf dot Wildenhues at gmx dot de  2009-09-17 17:40 -------
Subject: Re:  erratic comparison failures on very fast
 machines

* ebotcazou at gcc dot gnu dot org wrote on Thu, Sep 17, 2009 at 06:58:37PM
CEST:
> > No idea why the borked build does not fail but pick up auto-host.h from
> > elsewhere or so.  Or do you know for sure that auto-host.h was picked up
> > from the current directory?
> 
> Couldn't a truncated auto-host.h have been picked up?

config.status uses mv from a temporary subdirectory to the final
location of the file, thus create it created atomically.  Autoconf 2.59
did this too.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] [4.3 regression] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-09-17 17:40 ` Ralf dot Wildenhues at gmx dot de
@ 2010-05-11 13:40 ` rguenth at gcc dot gnu dot org
  2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
  2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-11 13:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] [4.3 regression] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2010-05-11 13:40 ` [Bug bootstrap/38591] [4.3 regression] " rguenth at gcc dot gnu dot org
@ 2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
  2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-14 12:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from rguenth at gcc dot gnu dot org  2010-05-14 12:51 -------
Fixed (hopefully).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug bootstrap/38591] [4.3 regression] erratic comparison failures on very fast machines
  2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
@ 2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-14 12:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from rguenth at gcc dot gnu dot org  2010-05-14 12:51 -------
Subject: Bug 38591

Author: rguenth
Date: Fri May 14 12:51:31 2010
New Revision: 159392

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159392
Log:
2010-05-15  Richard Guenther  <rguenther@suse.de>

        PR bootstrap/38591
        * Makefile.in (graph.o): Add missing $(CONFIG_H) dependency.
        (sparseset.o): Likewise.

Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/Makefile.in


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38591


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-05-14 12:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-21 10:14 [Bug bootstrap/38591] New: erratic comparison failures on very fast machines ebotcazou at gcc dot gnu dot org
2008-12-21 15:22 ` [Bug bootstrap/38591] " hjl dot tools at gmail dot com
2008-12-21 16:09 ` ebotcazou at gcc dot gnu dot org
2008-12-21 16:19 ` hjl dot tools at gmail dot com
2008-12-21 17:13 ` ebotcazou at gcc dot gnu dot org
2008-12-21 17:22 ` hjl dot tools at gmail dot com
2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
2009-09-06 21:18 ` ebotcazou at gcc dot gnu dot org
2009-09-17 16:28 ` rwild at gcc dot gnu dot org
2009-09-17 16:58 ` ebotcazou at gcc dot gnu dot org
2009-09-17 17:40 ` Ralf dot Wildenhues at gmx dot de
2010-05-11 13:40 ` [Bug bootstrap/38591] [4.3 regression] " rguenth at gcc dot gnu dot org
2010-05-14 12:52 ` rguenth at gcc dot gnu dot org
2010-05-14 12:52 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).