This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: mingw64-* regression: LTO builds fail
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Mon, 01 Jun 2015 19:14:33 +0200
- Subject: Re: mingw64-* regression: LTO builds fail
- Authentication-results: sourceware.org; auth=none
- References: <554D3160 dot 1050101 at t-online dot de> <554E2516 dot 50608 at gmail dot com>
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@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