delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/27/17:10:35

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=aXjSr6pOf5/52ACDmygf0akRdOUYN2
f7AVei4+Y4NdDCbpfoJs3LqUQStJigAEk1gaJiAknuJWVn7YDhF7vI/raej3lqDT
+JKAzmp85qtVMejymgb/5LgKehfjS/VA18cHX/iM2U5GwG3R6d5qm+LExK7k/xbf
4zdybOWw5urKM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=ZcztIxC4x6dFrodozx2evRLt9bs=; b=pRmF
NGmP6/faYWiZVW+9HWqJcEXyu9U1hkzeHs3GPvP6gZHIdu9F1LZXI2R8+kEDTEj+
p0Qiq5w4rk31NnsS2AuApiLIMu4g4RhOsh3ZTNgOJnEhYGd672V/7Qo/0tlgf1/F
XE4tQiDxI5rSvQ2j1COUU1jS2VlrgiFoh/B1Kvg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:Unknown
X-HELO: blaine.gmane.org
To: cygwin AT cygwin DOT com
From: Ross Smith <ross DOT smith AT otoy DOT com>
Subject: Re: [ANNOUNCEMENT] Updated: gcc-6.3.0-2 (x86/x86_64)(Test)
Date: Fri, 28 Jul 2017 09:04:52 +1200
Lines: 44
Message-ID: <1a57c104-79d1-2ea7-90d3-2be3182a2e1e@otoy.com>
References: <announce DOT db6c6795-264e-0936-152e-cfc7adbe2799 AT gmail DOT com> <8dd126b8-69aa-fb61-c12a-3d4afb821a66 AT cornell DOT edu>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
In-Reply-To: <8dd126b8-69aa-fb61-c12a-3d4afb821a66@cornell.edu>
X-IsSubscribed: yes

On 2017-07-28 02:49, Ken Brown wrote:
> On 6/29/2017 7:16 AM, JonY wrote:
>> gcc-6.3.0-2 has been uploaded for Cygwin. It is marked as a test version.
> 
> JonY,
> 
> I assume you want some feedback on this.
> 
> I've been testing gcc-6.3.0-2 with binutils-2.28-3, on both x86 and 
> x86_64, by rebuilding several of my packages.  So far I've built 
> texlive, emacs, and icu.  There have been no problems, and all builds 
> have passed their test suites.
> 
> Ken

gcc 6.3 works fine for me unless I use threads. Any C++ program that 
uses std::thread (and worked with the previous gcc) will fail. Simple 
example:

     #include <iostream>
     #include <thread>
     void payload() {
         std::cout << "Thread\n";
     }
     int main() {
         std::cout << "Start\n";
         std::thread t(payload);
         t.join();
         std::cout << "Done\n";
     }

Build and run with:

     g++ thread.cpp -o thread && ./thread || echo Fail

This will print Fail, indicating that the executable errored out. 
There's no other output. Sorry, I'm not familiar enough with gcc 
debugging to narrow down the error further.

Code that uses raw pthreads instead of the C++ API works fine.

(I'm running 64-bit Cygwin on Windows 8.1.)

Ross Smith


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019