From: Steve Ellcey <sellcey@caviumnetworks.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>,
"Ellcey, Steve" <Steve.Ellcey@cavium.com>
Cc: "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>,
"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: glibc test tst-thread_local1.cc fails to compile with latest GCC
Date: Fri, 21 Oct 2016 16:07:00 -0000 [thread overview]
Message-ID: <1477066052.8523.23.camel@caviumnetworks.com> (raw)
In-Reply-To: <CAH6eHdR_gbfkJjLoEkDzbNSAVPA5tnfSni=+tMCeeD6sjtdG-g@mail.gmail.com>
On Fri, 2016-10-21 at 17:03 +0100, Jonathan Wakely wrote:
>Â
> > Is there some C++ standard change that I am not aware of or some
> > other header file I need to include?
> No, what probably happened is GCC didn't detect a usable Pthreads
> implementation and so doesn't define std::thread. The <thread> header
> uses this condition around the definition of std::thread:
>
> #if defined(_GLIBCXX_HAS_GTHREADS) &&
> defined(_GLIBCXX_USE_C99_STDINT_TR1)
Yes, I finally realized I had built a GCC with '--enable-threads=no'
and was using that GCC to build GLIBC. Â Once I rebuilt GCC with threads
I could build GLIBC and not get this error.
Steve Ellcey
prev parent reply other threads:[~2016-10-21 16:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 17:45 Ellcey, Steve
2016-10-19 17:51 ` Andrew Pinski
2016-10-21 16:03 ` Jonathan Wakely
2016-10-21 16:07 ` Steve Ellcey [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1477066052.8523.23.camel@caviumnetworks.com \
--to=sellcey@caviumnetworks.com \
--cc=Steve.Ellcey@cavium.com \
--cc=gcc@gcc.gnu.org \
--cc=jwakely.gcc@gmail.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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).