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

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=bo7Q3S/YGJUm6P7v
bTXAuuTMGCsWj0k52XvPOEuroytiTsfK1OawSAQePJiR/Nhmhg0ywLeFByNmtCzr
mBsQbwQbSIh6TR47KSjdcIH2SqJbqS3/f4dOAok6nNg4lkx4tGcP7gurg85s65wu
b/GsJAL8u5Ye/D52tGwluB1vnQs=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=td99cocsGvVk33gte1LuIM
2UaDk=; b=IWi+1ghxddtK8k7A6YC/lpd54pxUSU69YLSjw+sz/OTaS0yltfmPTX
Zc12ZkTBOnj6FZ9wyQf/jMaYrsV0m2dtFo0E5yPW4+r3MDqVPMUSmd5pbPq60Eew
D7+BsZ0Ne0F8jb+3qd017MoU4EnOcZgpld0SH3sagFFKXt1Xh2vCM=
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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Marco
X-HELO: mail-pf0-f180.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:newsgroups:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tHTeAz/BV9Tgvt57a12tnMPM5wIYZc8qzHNtXZPJjrE=; b=jGdCGJ2pReJ6/UiMJaufQLurJtW9EYLHi8S183tR+ebtd+RNoBY/edUhM2oe7ejt8s rz2eSDd1j7RFPxvowpOiXoN9PspYoTBjymyCxATA7JI28YKyPT9TX4m3r9QAOVBWNWCj GgROhtMm9RRQErJzokFl+p7AwirCdygb1TjbmQBBhuiAcX7D/CpPNcFIcOZUHKHMEldc Z/Q2Uz9mlX9UcfFIuniROGAjmbaQQh2j+q+4M15MdJsvQUJYYbfkl3QHwaWnwJHVpOdB Q0pw6EgVF7cQfHkMaEIYo2jKilWWqMQijOtKJfoKV8V6w9GiOo7BbWQgQvYqGRKDbmXh l5QQ==
X-Gm-Message-State: AIVw112CvGdHCVuOpdHo8027ipfNCxQM+dpLJR4V7/p1Nc3iDD/t+yPw gRuwI4M1XOdCTRc+9LI=
X-Received: by 10.84.209.142 with SMTP id y14mr5964858plh.286.1501191573619; Thu, 27 Jul 2017 14:39:33 -0700 (PDT)
Subject: Re: [ANNOUNCEMENT] Updated: gcc-6.3.0-2 (x86/x86_64)(Test)
To: cygwin AT cygwin DOT com
Newsgroups: gmane.os.cygwin
References: <announce DOT db6c6795-264e-0936-152e-cfc7adbe2799 AT gmail DOT com> <8dd126b8-69aa-fb61-c12a-3d4afb821a66 AT cornell DOT edu> <1a57c104-79d1-2ea7-90d3-2be3182a2e1e AT otoy DOT com> <120c0997-0182-f4e6-0dfd-5d5afd6fd182 AT gmail DOT com>
From: Ross Smith <ross DOT smith AT otoy DOT com>
Message-ID: <8c67221f-19b9-26a3-2562-53a1b01e5fb9@otoy.com>
Date: Fri, 28 Jul 2017 09:39:30 +1200
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <120c0997-0182-f4e6-0dfd-5d5afd6fd182@gmail.com>

On 2017-07-28 09:19, Marco Atzeri wrote:
> On 27/07/2017 23:04, Ross Smith wrote:
>>
>> 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
>>
> 
> it works for me on W7-64
> 
> ./thread || echo "fail"
> Start
> Thread
> Done
> 
> $ g++ --version
> g++ (GCC) 6.3.0

That's interesting. Maybe I have something wrong with my installation? I 
updated the gcc-core, gcc-g++, and libgcc1 packages to the 6.3 test 
version; was there something else I needed? (I found those by searching 
the installed package list in the Cygwin installer for gcc or g++, and 
seeing which ones offered the option of updating to 6.3; there doesn't 
seem to be any way of checking what you actually need in a case like this.)

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