From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79030 invoked by alias); 13 Jan 2016 17:48:13 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 78808 invoked by uid 89); 13 Jan 2016 17:48:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Hx-languages-length:898, *a, H*M:online, 4921 X-HELO: mailout06.t-online.de Received: from mailout06.t-online.de (HELO mailout06.t-online.de) (194.25.134.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 13 Jan 2016 17:48:02 +0000 Received: from fwd15.aul.t-online.de (fwd15.aul.t-online.de [172.20.27.63]) by mailout06.t-online.de (Postfix) with SMTP id 41E0B168EEF for ; Wed, 13 Jan 2016 18:47:59 +0100 (CET) Received: from [192.168.2.101] (rCh6nYZYghu+m6Sdrb+pC0XeFcv4wZuyC2eHdD-sF3Aq9BXjh4-DLoZ22clPYyLQub@[84.180.68.169]) by fwd15.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aJPWS-2I9SWu0; Wed, 13 Jan 2016 18:47:52 +0100 To: cygwin-apps@cygwin.com From: Christian Franke Subject: mingw64-*-gcc-g++-4.9.2-1: Missing libatomic.a ? Message-ID: <56968DC5.9030302@t-online.de> Date: Wed, 13 Jan 2016 17:48:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00015.txt.bz2 The MinGW w64 g++ packages lack runtime support for std::atomic. Testcase: $ cat testatomic.cc #include struct S { char a[10]; }; std::atomic x; int main() { S y = {""}; x = y; return 0; } $ cygcheck -f /usr/bin/x86_64-w64-mingw32-g++ mingw64-x86_64-gcc-g++-4.9.2-1 $ x86_64-w64-mingw32-g++ -std=c++11 -c testatomic.cc $ x86_64-w64-mingw32-g++ -std=c++11 testatomic.o testatomic.o:testatomic.cc:....: undefined reference to `__atomic_store' collect2: error: ld returned 1 exit status $ x86_64-w64-mingw32-g++ -std=c++11 testatomic.o -latomic /usr/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld: cannot find -latomic collect2: error: ld returned 1 exit status $ x86_64-w64-mingw32-nm /usr/lib/gcc/x86_64-w64-mingw32/4.9.2/*.a | grep atomic_store [not found] The above works with Cygwin g++. Christian