http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715
--- Comment #5 from Václav Zeman <vhaisman at gmail dot com> --- (In reply to Václav Zeman from comment #4) > (In reply to Tobias Burnus from comment #2) > > 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 Oops! All of this should have gone to PR 56963 instead.