public inbox for
help / color / mirror / Atom feed
From: Florian Weimer <>
Subject: [glibc/release/2.34/master] Fix build of nptl/ with GCC 12
Date: Thu, 12 Jan 2023 06:21:36 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=803c959745fd7c679e00f9bad58822616f0e51cb

commit 803c959745fd7c679e00f9bad58822616f0e51cb
Author: Joseph Myers <>
Date:   Mon Aug 2 16:33:44 2021 +0000

    Fix build of nptl/ with GCC 12
    The test nptl/ fails to build with GCC mainline
    because of changes to what libstdc++ headers implicitly include what
    other headers: In function 'int do_test()': error: variable 'std::array<std::pair<const char*, std::function<void(void* (*)(void*))> >, 2> do_thread_X' has initializer but incomplete type
      177 |     do_thread_X
          |     ^~~~~~~~~~~
    Fix this by adding an explicit include of <array>.
    Tested with for aarch64-linux-gnu.
    (cherry picked from commit 2ee9b24f47db8d0a8d0ccadb999335a1d4cfc364)

 nptl/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nptl/ b/nptl/
index 9608afa4b7..338aafea05 100644
--- a/nptl/
+++ b/nptl/
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <string.h>
+#include <array>
 #include <functional>
 #include <string>
 #include <thread>

                 reply	other threads:[~2023-01-12  6:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).