http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963
--- Comment #6 from Václav Zeman <vhaisman at gmail dot com> --- (In reply to Tobias Burnus from comment #5) > This PR might have the same reason as PR60567. > > Namely, your GCC has not been compiled on a system with working linker > plugin - and thus, lto1 is not invoked with -fresolution=. > > Try compiling with "-fuse-linker-plugin" - if that gives an error, try a GCC > which has been configured with --with-plugin-ld= pointing to a newer > Binutils - 2.21 or newer. If that helps, it is a duplicate of PR60567. I was able to (manually) reduce the test to g++ -r -nostdlib src/.libs/liblog4cplus_la-rootlogger.ii -flto -o .libs/cyglog4cplus-1-2-2.dll The preprocessed file is attached compressed. > > If it doesn't help: Create a reduced test case as described at > http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs