public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: Updated: gcc-7.3.0-2 (x86/x86_64)
Date: Thu, 31 May 2018 02:22:00 -0000	[thread overview]
Message-ID: <4a5c57c0-8233-faec-b109-94ff9e3e1a19@cornell.edu> (raw)
In-Reply-To: <d3d36f49-3e11-2f0c-18b7-9b8a102a2f38@gmail.com>

On 5/30/2018 7:58 AM, JonY wrote:
> On 05/29/2018 05:32 PM, Alberto Escrig Vidal wrote:
>> This program fails to compile (it also failed with g++-6).
>>
>> #include <shared_mutex>
>>
>> int main() {}
>>
> 
> I'm guessing Cygwin does not support the functionality declared in the
> headers yet.

I think the explanation is simpler.  The problem is that the 
shared_mutex header uses some pthread_rwlock_* functions (if __cplusplus 
 >= 201402L) but the declaration of these in pthread.h is guarded by

   #if __XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112

I've submitted a patch to fix this:

   https://cygwin.com/ml/cygwin-patches/2018-q2/msg00018.html

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2018-05-30 20:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1268fcb1-715a-0518-cc94-91f452d029fb@gmail.com>
2018-05-30 10:57 ` Alberto Escrig Vidal
2018-05-30 16:14   ` JonY
2018-05-31  2:22     ` Ken Brown [this message]
2018-06-05 18:07   ` Alberto Escrig Vidal
2018-06-05 23:28   ` JonY
2018-05-30 19:57 Dai Conrad
2018-05-30 20:31 Dai Conrad

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=4a5c57c0-8233-faec-b109-94ff9e3e1a19@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    /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).