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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=Tr6h7C2u0+yMQWgkpdnWmn8376xgQKwG2qYZevU3GPm tmbshJ56y0evM1xIRuusaMsDtY3ly1hIKvDYB9ggOShERjuf5DIvrIe4LvxbFHmJ /yLyp+o8CJL8rMLrSS+uY8gkw1qMJ72Gpo44NlYMQuUftC/cxq9qYUYMssCT2xhM = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=1+G+riK3ZuG5BxSBWgXGb3E3aE8=; b=aMchl0zwerWZyQ7LI 2ZbTUi9Kd9nVlef9wQCHFuvqL3mPHDYnr89wrk9To13p2MX5o2pTNa1ysW5fO4D6 56Kl8ZKwzS5OqOBlzrJ2c6+/Wwz09gUY6PwpBCJfnS16USifKmjdWxNXkTE36eBe zDUnWZTgJgDSH7Zydb2y08FKb4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mailout05.t-online.de Message-ID: <556C92F9.306@t-online.de> Date: Mon, 01 Jun 2015 19:14:33 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mingw64-* regression: LTO builds fail References: <554D3160 DOT 1050101 AT t-online DOT de> <554E2516 DOT 50608 AT gmail DOT com> In-Reply-To: <554E2516.50608@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes JonY wrote: > On 5/9/2015 05:57, Christian Franke wrote: >> After upgrading to recent mingw64 toolchain, builds with link time >> optimizer fail during linking. >> > Can you try with the upstream binutils git version? It is most likely a > new regression. Sorry for the delay. Same result with a build from upstream binutils git version bd16da5: $ i686-w64-mingw32-ld --version GNU ld (GNU Binutils) 2.25.51.20150601 $ i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 4.9.2 $ i686-w64-mingw32-gcc -flto true.c /tmp/ccA4vxFb.ltrans0.ltrans.o:ccA4vxFb.ltrans0.o:(.text+0x0): multiple definition of `main' /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):/usr/src/debug/mingw64-i686-runtime-4.0.2-1/crt/crt0_c.c:17: first defined here /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o): In function `main': /usr/src/debug/mingw64-i686-runtime-4.0.2-1/crt/crt0_c.c:18: undefined reference to `WinMain AT 16' collect2: error: ld returned 1 exit status Downgrading to "prev" package fixes this. $ i686-w64-mingw32-ld --version GNU ld (GNU Binutils) 2.24.51.20140411 Christian -- 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