| delorie.com/archives/browse.cgi | search |
| 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=uGfMH1lsU+oZQZee | |
| vv9dmi2fY6uTcO3Vr49Uk56OA01eCxlKtASZ8RXo6ZZANMF820sx6wTpwRllFd2o | |
| yfLzLtcxBytmEnhoHRTFMzXFLC9PrE1ZCcC3YZc/64WCSIajNF3NTkwFknCN5ZWE | |
| qPRP/lo+Xr5/MDzfDBccATysCgM= | |
| 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=lgqYVe2i/iY5C4Rh54YfYB | |
| 3V/54=; b=rBCtzEkEK9BUK9sg2ullUP0RRiPjk2XlfgeRIeOf8H15cSWa/fmQXD | |
| q2sHLYCULrSspmsaRCh2CTIL8bdfH2+5k9dEPB/n6gzpP6OjbOnPiDzytuePQ5gy | |
| c0Utbc0h2ntAyOJfrXaJbS1VPUJkBPFs3mEok/dNV3G4NAm6gwm78= | |
| 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=alarm, click |
| X-HELO: | mail-pg0-f41.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=j+r/3av0SBt5CO9kZ1H8JZcU1hd2JTihgKvDI3PwP2Y=; b=S/AcCZw/AcXdNNFTxnfRZKHZfS+GEh3OfkO331cFfAWcY5AeqJSsg4ZNBzLPowBP/i 5SvqpMgNzAPzvGi9nD/uk5azqFzMux3vkYGXCXy9ppsTXlo94m0j3Dmdr/gdo6pNQkwB UtVCsE1zi1W7OBnzEamMg4zTc40z6cBDywpySHat6hVaTdkOHgH12Ai3cNG1siz6J9fL sZaOtYw9TroclqSNqerOcIT4Z4PxeHWWWe13X/tfuiUQjIYmp3vZfAuBlqW8wY5w2/jo 6EnWj4jvAqzectXcwXn93YggBAJYNLHbPQXxMLdllUBg4BP6j/G9mDOvHotQCD38g1eC Mg/Q== |
| X-Gm-Message-State: | AIVw110kDQAIp5jp++pkRpNGw5EwUUQfBc3HPeL7weInoj6egP+MZ4sm N/4+Mu8BHm7rsmiH0FY= |
| X-Received: | by 10.99.121.201 with SMTP id u192mr5914912pgc.214.1501205084588; Thu, 27 Jul 2017 18:24:44 -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> <8c67221f-19b9-26a3-2562-53a1b01e5fb9 AT otoy DOT com> <d37c88d1-697b-129a-8855-26c166509368 AT cornell DOT edu> |
| From: | Ross Smith <ross DOT smith AT otoy DOT com> |
| Message-ID: | <1e8b1bd6-f2f4-7e70-c7fe-7f5b29a6c325@otoy.com> |
| Date: | Fri, 28 Jul 2017 13:24:41 +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: | <d37c88d1-697b-129a-8855-26c166509368@cornell.edu> |
On 2017-07-28 09:45, Ken Brown wrote:
> On 7/27/2017 5:39 PM, Ross Smith wrote:
>> 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.)
>
> Click the test button when running setup. You'll see several other
> packages with versions 6.3.0-2, including libstdc++6.
Thanks! Yes, turns out I was missing some packages. Everything works
now. Sorry for the false alarm!
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |