Is this still an issue? On Tue, Sep 21, 2010 at 1:17 PM, Ruben Van Boxem <vanboxem.ru...@gmail.com> wrote: > Hi, > > In an effort to test my build(script), I decided to rebuild everything, now > employing my freshly gained lto capabilities: > > CFLAGS="...-flto" # ... = old options, which worked :) > LFLAGS="-flto -fwhopr=$BUILD_CORES" > > The options get passed nicely to every configure script, and they are used > where applicable. Problem is, when linking gmp, i get multiple definitions > of crt functions: >> >> Creating library file: .libs/libgmpxx.dll.a >> >> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/dllcrt2.o:crtdll.c:(.text+0x50): >> multiple definition of `_CRT_INIT' >> >> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/dllcrt2.o:crtdll.c:(.text+0x50): >> first defined here >> >> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/dllcrt2.o:crtdll.c:(.text+0x3b0): >> multiple definition of `DllMainCRTStartup' >> >> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/dllcrt2.o:crtdll.c:(.text+0x3b0): >> first defined here >> >> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/dllcrt2.o:crtdll.c:(.CRT$XIAA+0x0): >> multiple definition of `pcinit' >> >> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/dllcrt2.o:crtdll.c:(.CRT$XIAA+0x0): >> first defined here >> collect2: ld returned 1 exit status >> make[2]: *** [libgmpxx.la] Error 1 > > One thing to note is that I used my new gcc to build the full mingw-w64-crt > before building the rest of GCC. I could have enabled lto, but didn't. > > I have just removed these options from my build script, and it is continuing > happily once more (no errors!). This leads me to believe that there is a > mismatch between something that lto does and the mingw-w64 crt. > > Ruben > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > >
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public