This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mingw64-* regression: LTO builds fail


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]