public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
@ 2021-04-16 14:13 jakub at gcc dot gnu.org
  2021-04-16 14:38 ` [Bug libstdc++/100117] " fw at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-16 14:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100117
           Summary: FAIL testsuite/17_intro/headers/c++1998/49745.cc with
                    trunk glibc
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

I have seen (with r11-7986 , so sorry if it has been fixed already)
FAIL: 17_intro/headers/c++1998/49745.cc (test for excess errors)
which appears only when built against latest glibc 2.34 snapshot and works fine
against glibc 2.33.
libstdc++.log contains:
/builddir/build/BUILD/gcc-11.0.1-20210405/libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc:22:
error: 'int truncate' redeclared as different kind of entity
In file included from /usr/include/bits/sigstksz.h:24,
                 from /usr/include/signal.h:315,
                 from
/builddir/build/BUILD/gcc-11.0.1-20210405/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/csignal:42,
                 from
/builddir/build/BUILD/gcc-11.0.1-20210405/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/stdc++.h:43,
                 from <command-line>:
/usr/include/unistd.h:1005: note: previous declaration 'int truncate(const
char*, __off_t)'

Maybe it would be nice if bits/sigstksz.h didn't include whole unistd.h but
just
bits/confname.h and used some __ prefixed alias with redirection for the
sysconf call?

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
@ 2021-04-16 14:38 ` fw at gcc dot gnu.org
  2021-04-16 14:46 ` jakub at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fw at gcc dot gnu.org @ 2021-04-16 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Florian Weimer <fw at gcc dot gnu.org> ---
This looks like the old C++ _GNU_SOURCE issue.

But I do not really see why <iostream> includes <csignal>. Is this some PCH
test?

Should <stdc++.h> really include all the C headers?

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
  2021-04-16 14:38 ` [Bug libstdc++/100117] " fw at gcc dot gnu.org
@ 2021-04-16 14:46 ` jakub at gcc dot gnu.org
  2021-04-16 14:59 ` fw at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-16 14:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
<iostream> doesn't include <csignal> AFAIK.
<bits/stdc++.h> is a non-standard header that just includes all standard C++
headers (except for <execution> it seems).
And it is <csignal> that now newly (in glibc 2.34) indirectly includes
<unistd.h> when it didn't before.

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
  2021-04-16 14:38 ` [Bug libstdc++/100117] " fw at gcc dot gnu.org
  2021-04-16 14:46 ` jakub at gcc dot gnu.org
@ 2021-04-16 14:59 ` fw at gcc dot gnu.org
  2021-04-16 19:00 ` redi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fw at gcc dot gnu.org @ 2021-04-16 14:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Florian Weimer <fw at gcc dot gnu.org> ---
I was looking at the 17_intro/headers/c++1998/49745.cc file contents and can't
make sense of the error message in that context. There's no <csignal> in it.

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-04-16 14:59 ` fw at gcc dot gnu.org
@ 2021-04-16 19:00 ` redi at gcc dot gnu.org
  2021-08-13 22:22 ` slyfox at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2021-04-16 19:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=99995

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
<bits/stdc++.h> includes all standard headers, including <csignal>.

Maybe for the purposes of that test, what we should really check is that none
of the C++ headers (i.e. all except <foo.h> and <cfoo>) includes <unistd.h>.

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-04-16 19:00 ` redi at gcc dot gnu.org
@ 2021-08-13 22:22 ` slyfox at gcc dot gnu.org
  2021-11-10 12:04 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: slyfox at gcc dot gnu.org @ 2021-08-13 22:22 UTC (permalink / raw)
  To: gcc-bugs

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

Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:

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

--- Comment #5 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Also happens with released glibc-2.34.

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-08-13 22:22 ` slyfox at gcc dot gnu.org
@ 2021-11-10 12:04 ` cvs-commit at gcc dot gnu.org
  2021-11-10 12:05 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-10 12:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:77963796aef8aa07993c0bc757c15848fab7432a

commit r12-5109-g77963796aef8aa07993c0bc757c15848fab7432a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 10 11:43:46 2021 +0000

    libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117]

    The <cxxx> headers for the C library are not under our control, so we
    can't prevent them from including <unistd.h>. Change the PR 49745 test
    to only include the C++ library headers, not the <cxxx> ones.

    To ensure <bits/stdc++.h> isn't included automatically we need to use
    no_pch to disable PCH.

    libstdc++-v3/ChangeLog:

            PR libstdc++/100117
            * testsuite/17_intro/headers/c++1998/49745.cc: Explicitly list
            all C++ headers instead of including <bits/stdc++.h>

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-11-10 12:04 ` cvs-commit at gcc dot gnu.org
@ 2021-11-10 12:05 ` redi at gcc dot gnu.org
  2021-11-24 11:50 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2021-11-10 12:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
   Target Milestone|---                         |9.5
   Last reconfirmed|                            |2021-11-10

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This should be fixed on trunk now.

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-11-10 12:05 ` redi at gcc dot gnu.org
@ 2021-11-24 11:50 ` cvs-commit at gcc dot gnu.org
  2022-04-26 13:12 ` cvs-commit at gcc dot gnu.org
  2022-05-27  9:03 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-24 11:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:176e55cc28a61b7b246bd9e16ffeaa31367a8985

commit r11-9277-g176e55cc28a61b7b246bd9e16ffeaa31367a8985
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 10 11:43:46 2021 +0000

    libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117]

    The <cxxx> headers for the C library are not under our control, so we
    can't prevent them from including <unistd.h>. Change the PR 49745 test
    to only include the C++ library headers, not the <cxxx> ones.

    To ensure <bits/stdc++.h> isn't included automatically we need to use
    no_pch to disable PCH.

    libstdc++-v3/ChangeLog:

            PR libstdc++/100117
            * testsuite/17_intro/headers/c++1998/49745.cc: Explicitly list
            all C++ headers instead of including <bits/stdc++.h>

    (cherry picked from commit 77963796aef8aa07993c0bc757c15848fab7432a)

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-11-24 11:50 ` cvs-commit at gcc dot gnu.org
@ 2022-04-26 13:12 ` cvs-commit at gcc dot gnu.org
  2022-05-27  9:03 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-26 13:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:436891d97aef6d7a8e107d2d3e02e8ca4c52a51a

commit r10-10571-g436891d97aef6d7a8e107d2d3e02e8ca4c52a51a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Apr 12 11:12:47 2021 +0100

    libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117]

    The <cxxx> headers for the C library are not under our control, so we
    can't prevent them from including <unistd.h>. Change the PR 49745 test
    to only include the C++ library headers, not the <cxxx> ones.

    To ensure <bits/stdc++.h> isn't included automatically we need to use
    no_pch to disable PCH.

    libstdc++-v3/ChangeLog:

            PR libstdc++/100117
            * testsuite/17_intro/headers/c++1998/49745.cc: Explicitly list
            all C++ headers instead of including <bits/stdc++.h>

    (cherry picked from commit 77963796aef8aa07993c0bc757c15848fab7432a)

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

* [Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc
  2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2022-04-26 13:12 ` cvs-commit at gcc dot gnu.org
@ 2022-05-27  9:03 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|9.5                         |10.4
             Status|ASSIGNED                    |RESOLVED

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for GCC 10.4.

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

end of thread, other threads:[~2022-05-27  9:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16 14:13 [Bug libstdc++/100117] New: FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc jakub at gcc dot gnu.org
2021-04-16 14:38 ` [Bug libstdc++/100117] " fw at gcc dot gnu.org
2021-04-16 14:46 ` jakub at gcc dot gnu.org
2021-04-16 14:59 ` fw at gcc dot gnu.org
2021-04-16 19:00 ` redi at gcc dot gnu.org
2021-08-13 22:22 ` slyfox at gcc dot gnu.org
2021-11-10 12:04 ` cvs-commit at gcc dot gnu.org
2021-11-10 12:05 ` redi at gcc dot gnu.org
2021-11-24 11:50 ` cvs-commit at gcc dot gnu.org
2022-04-26 13:12 ` cvs-commit at gcc dot gnu.org
2022-05-27  9:03 ` rguenth 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).