public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory
@ 2022-03-22 17:50 redi at gcc dot gnu.org
  2022-03-22 21:21 ` [Bug libstdc++/105021] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-03-22 17:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105021
           Summary: [11/12 Regression] Missing freestanding headers:
                    bits/atomic_base.h:41:10: fatal error:
                    bits/atomic_wait.h: No such file or directory
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

With -std=c++20 a simple #include <atomic> fails for a freestanding library:


In file included from /tmp/freestanding/include/c++/12.0.1/atomic:41,
                 from /tmp/freestanding/include/c++/12.0.1/bits/stdc++.h:4,
                 from <stdin>:1:
/tmp/freestanding/include/c++/12.0.1/bits/atomic_base.h:41:10: fatal error:
bits/atomic_wait.h: No such file or directory
   41 | #include <bits/atomic_wait.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.


That header also needs <bits/functional_hash.h> and <bits/gthr.h> which are not
freestanding either.

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

* [Bug libstdc++/105021] [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory
  2022-03-22 17:50 [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory redi at gcc dot gnu.org
@ 2022-03-22 21:21 ` redi at gcc dot gnu.org
  2022-03-23 10:11 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-03-22 21:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |10.3.1
      Known to fail|                            |11.2.1, 12.0
   Last reconfirmed|                            |2022-03-22
     Ever confirmed|0                           |1
   Target Milestone|---                         |11.3
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

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

* [Bug libstdc++/105021] [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory
  2022-03-22 17:50 [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory redi at gcc dot gnu.org
  2022-03-22 21:21 ` [Bug libstdc++/105021] " redi at gcc dot gnu.org
@ 2022-03-23 10:11 ` cvs-commit at gcc dot gnu.org
  2022-03-23 10:41 ` [Bug libstdc++/105021] [11 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-23 10:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 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:5bf59b004808abf6acbfe5ef54a0f9216b8dce22

commit r12-7778-g5bf59b004808abf6acbfe5ef54a0f9216b8dce22
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Mar 22 21:17:01 2022 +0000

    libstdc++: Disable atomic wait for freestanding [PR105021]

    We use either condition variables or futexes to implement atomic waits,
    so we can't do it in freestanding. This is non-conforming, so should be
    revisited later, probably by making freestanding atomic waiting
    operations spin without ever blocking.

    Reviewed-by: Thomas Rodgers <trodgers@redhat.com>

    libstdc++-v3/ChangeLog:

            PR libstdc++/105021
            * include/bits/atomic_base.h [!_GLIBCXX_HOSTED]: Do not include
            <bits/atomic_wait.h> for freestanding.

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

* [Bug libstdc++/105021] [11 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory
  2022-03-22 17:50 [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory redi at gcc dot gnu.org
  2022-03-22 21:21 ` [Bug libstdc++/105021] " redi at gcc dot gnu.org
  2022-03-23 10:11 ` cvs-commit at gcc dot gnu.org
@ 2022-03-23 10:41 ` rguenth at gcc dot gnu.org
  2022-04-12 20:18 ` cvs-commit at gcc dot gnu.org
  2022-04-12 20:19 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-23 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |12.0
      Known to fail|12.0                        |

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

* [Bug libstdc++/105021] [11 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory
  2022-03-22 17:50 [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-03-23 10:41 ` [Bug libstdc++/105021] [11 " rguenth at gcc dot gnu.org
@ 2022-04-12 20:18 ` cvs-commit at gcc dot gnu.org
  2022-04-12 20:19 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-12 20:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:ac0e9b696c362fdd49752260ca7b3ce9e467ec36

commit r11-9834-gac0e9b696c362fdd49752260ca7b3ce9e467ec36
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Mar 22 21:17:01 2022 +0000

    libstdc++: Disable atomic wait for freestanding [PR105021]

    We use either condition variables or futexes to implement atomic waits,
    so we can't do it in freestanding. This is non-conforming, so should be
    revisited later, probably by making freestanding atomic waiting
    operations spin without ever blocking.

    Reviewed-by: Thomas Rodgers <trodgers@redhat.com>

    libstdc++-v3/ChangeLog:

            PR libstdc++/105021
            * include/bits/atomic_base.h [!_GLIBCXX_HOSTED]: Do not include
            <bits/atomic_wait.h> for freestanding.

    (cherry picked from commit 5bf59b004808abf6acbfe5ef54a0f9216b8dce22)

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

* [Bug libstdc++/105021] [11 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory
  2022-03-22 17:50 [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-04-12 20:18 ` cvs-commit at gcc dot gnu.org
@ 2022-04-12 20:19 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-04-12 20:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 11.3

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

end of thread, other threads:[~2022-04-12 20:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 17:50 [Bug libstdc++/105021] New: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory redi at gcc dot gnu.org
2022-03-22 21:21 ` [Bug libstdc++/105021] " redi at gcc dot gnu.org
2022-03-23 10:11 ` cvs-commit at gcc dot gnu.org
2022-03-23 10:41 ` [Bug libstdc++/105021] [11 " rguenth at gcc dot gnu.org
2022-04-12 20:18 ` cvs-commit at gcc dot gnu.org
2022-04-12 20:19 ` redi 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).