From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52783 invoked by alias); 12 Nov 2015 16:13:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 52639 invoked by uid 89); 12 Nov 2015 16:13:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 12 Nov 2015 16:13:07 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 005C95BA12; Thu, 12 Nov 2015 16:13:05 +0000 (UTC) Received: from localhost (ovpn-116-102.ams2.redhat.com [10.36.116.102]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tACGD4LB015159; Thu, 12 Nov 2015 11:13:05 -0500 Date: Thu, 12 Nov 2015 16:13:00 -0000 From: Jonathan Wakely To: Gerald Pfeifer Cc: "Dominique =?iso-8859-1?Q?d'Humi=E8res?=" , ville.voutilainen@gmail.com, gcc-patches , libstdc++@gcc.gnu.org Subject: Re: [v3 PATCH] LWG 2510, make the default constructors of library tag types explicit. Message-ID: <20151112161304.GE2937@redhat.com> References: <50707C06-EB02-4B6B-A84C-40204207C07B@lps.ens.fr> <20151111173006.GP2937@redhat.com> <20151112143608.GC2937@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="gwtGiOGliFx8mAnm" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151112143608.GC2937@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2015-11/txt/msg01559.txt.bz2 --gwtGiOGliFx8mAnm Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-length: 1150 On 12/11/15 14:36 +0000, Jonathan Wakely wrote: >On 12/11/15 15:23 +0100, Gerald Pfeifer wrote: >>On Wed, 11 Nov 2015, Jonathan Wakely wrote: >>>Fixed by this patch. >> >>Thanks, Jonathan! Unfortunately bootstrap is still broken >>(on i386-unknown-freebsd11.0 at least): > >Different issue. > >>In file included from >>/scratch/tmp/gerald/gcc-HEAD/libstdc++-v3/src/c++11/thread.cc:27:0: >>/scratch/tmp/gerald/OBJ-1112-1414/i386-unknown-freebsd10.2/libstdc++-v3/include/ >>thread: In function ‘void std::this_thread::sleep_for(const std::chrono::duration<_Rep1, _Period1>&)’: >>/scratch/tmp/gerald/OBJ-1112-1414/i386-unknown-freebsd10.2/libstdc++-v3/include/ >>thread:300:44: error: ‘errno’ was not declared in this scope >>while (::nanosleep(&__ts, &__ts) == -1 && errno == EINTR) >> ^ >>/scratch/tmp/gerald/OBJ-1112-1414/i386-unknown-freebsd10.2/libstdc++-v3/include/ >>thread:300:53: error: ‘EINTR’ was not declared in this scope >>while (::nanosleep(&__ts, &__ts) == -1 && errno == EINTR) > >Does adding #include to libstdc++-v3/include/std/thread >solve it? Committed to trunk. --gwtGiOGliFx8mAnm Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" Content-length: 562 commit ede84363f2a4374b0d16ffda19fbcffdc44221c3 Author: Jonathan Wakely Date: Thu Nov 12 15:21:24 2015 +0000 * include/std/thread: Include for EINTR. diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index 5940e6e..8c01feb 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include --gwtGiOGliFx8mAnm--