public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/113319] New: Random LTO test failures
@ 2024-01-11  0:50 hjl.tools at gmail dot com
  2024-01-11  0:59 ` [Bug testsuite/113319] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2024-01-11  0:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

            Bug ID: 113319
           Summary: Random LTO test failures
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

For GCC configured for more than one ABIs, I got random LTO test failures, like

FAIL: gcc.dg/vect/vect-early-break-run_5.c -flto -ffat-lto-objects (test for
excess errors)
FAIL: gcc.dg/vect/vect-early-break-run_6.c -flto -ffat-lto-objects (test for
excess errors)
FAIL: gcc.dg/vect/vect-early-break-run_7.c -flto -ffat-lto-objects (test for
excess errors)

/usr/local/bin/ld: i386:x64-32 architecture of input file
`./vect-early-break-run_5.ltrans0.ltrans.o' is incompatible with i386:x86-64
output
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: gcc.dg/vect/vect-early-break-run_5.c -flto -ffat-lto-objects (test for
excess errors)
Excess errors: 
/usr/local/bin/ld: i386:x64-32 architecture of input file
`./vect-early-break-run_5.ltrans0.ltrans.o' is incompatible with i386:x86-64
output

The problem is that with

$ make check RUNTESTFLAGS="--target_board='unix{-m32,-mx32,}'"

the same LTO test may run at the same time for different ABIs.  In this case,
they are -m64 and -mx32.  Since the same IR filenames are used for both runs,
we can get conflicts at random.

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

* [Bug testsuite/113319] Random LTO test failures
  2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
@ 2024-01-11  0:59 ` pinskia at gcc dot gnu.org
  2024-01-11  1:04 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-11  0:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto, testsuite-fail
          Component|lto                         |testsuite

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I thought we didn't do parallel across options testing. Also I thought we used
different directories for parallel runs, this should not be happening ...

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

* [Bug testsuite/113319] Random LTO test failures
  2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
  2024-01-11  0:59 ` [Bug testsuite/113319] " pinskia at gcc dot gnu.org
@ 2024-01-11  1:04 ` hjl.tools at gmail dot com
  2024-01-11  9:04 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2024-01-11  1:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-01-11

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #0)
> The problem is that with
> 
> $ make check RUNTESTFLAGS="--target_board='unix{-m32,-mx32,}'"
>

I use

$ make check RUNTESTFLAGS="--target_board='unix{-m32,-mx32,}'" -j8

on an 8-thread machine.

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

* [Bug testsuite/113319] Random LTO test failures
  2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
  2024-01-11  0:59 ` [Bug testsuite/113319] " pinskia at gcc dot gnu.org
  2024-01-11  1:04 ` hjl.tools at gmail dot com
@ 2024-01-11  9:04 ` rguenth at gcc dot gnu.org
  2024-01-11 11:31 ` tnfchris at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-11  9:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tnfchris at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I'm also doing this and remember running into this once.  This is because
of the -save-temps use (I asked for them to be removed ...), without
-save-temps temporary filenames are used.

-save-temps should never be used (IIRC assembler scanning triggers it
though)

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

* [Bug testsuite/113319] Random LTO test failures
  2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2024-01-11  9:04 ` rguenth at gcc dot gnu.org
@ 2024-01-11 11:31 ` tnfchris at gcc dot gnu.org
  2024-01-11 14:46 ` cvs-commit at gcc dot gnu.org
  2024-01-11 14:47 ` tnfchris at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2024-01-11 11:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |tnfchris at gcc dot gnu.org
   Target Milestone|---                         |14.0

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

* [Bug testsuite/113319] Random LTO test failures
  2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2024-01-11 11:31 ` tnfchris at gcc dot gnu.org
@ 2024-01-11 14:46 ` cvs-commit at gcc dot gnu.org
  2024-01-11 14:47 ` tnfchris at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-11 14:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfchris@gcc.gnu.org>:

https://gcc.gnu.org/g:da1e651e9c00b9c6100b2ea915631eba0e0d07ba

commit r14-7142-gda1e651e9c00b9c6100b2ea915631eba0e0d07ba
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Thu Jan 11 14:44:18 2024 +0000

    testsuite: remove -save-temps from many tests [PR113319]

    This removes -save-temps from the tests I've introduced to fix the LTO
    mismatches.

    gcc/testsuite/ChangeLog:

            PR testsuite/113319
            * gcc.dg/bic-bitmask-13.c: Remove -save-temps.
            * gcc.dg/bic-bitmask-14.c: Likewise.
            * gcc.dg/bic-bitmask-15.c: Likewise.
            * gcc.dg/bic-bitmask-16.c: Likewise.
            * gcc.dg/bic-bitmask-17.c: Likewise.
            * gcc.dg/bic-bitmask-18.c: Likewise.
            * gcc.dg/bic-bitmask-19.c: Likewise.
            * gcc.dg/bic-bitmask-20.c: Likewise.
            * gcc.dg/bic-bitmask-21.c: Likewise.
            * gcc.dg/bic-bitmask-22.c: Likewise.
            * gcc.dg/bic-bitmask-7.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_1.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_10.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_2.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_3.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_4.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_5.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_6.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_7.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_8.c: Likewise.
            * gcc.dg/vect/vect-early-break-run_9.c: Likewise.

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

* [Bug testsuite/113319] Random LTO test failures
  2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2024-01-11 14:46 ` cvs-commit at gcc dot gnu.org
@ 2024-01-11 14:47 ` tnfchris at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2024-01-11 14:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113319

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

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

--- Comment #5 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Fixed, sorry for the breakage.

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

end of thread, other threads:[~2024-01-11 14:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11  0:50 [Bug lto/113319] New: Random LTO test failures hjl.tools at gmail dot com
2024-01-11  0:59 ` [Bug testsuite/113319] " pinskia at gcc dot gnu.org
2024-01-11  1:04 ` hjl.tools at gmail dot com
2024-01-11  9:04 ` rguenth at gcc dot gnu.org
2024-01-11 11:31 ` tnfchris at gcc dot gnu.org
2024-01-11 14:46 ` cvs-commit at gcc dot gnu.org
2024-01-11 14:47 ` tnfchris at gcc dot gnu.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).