https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66029

            Bug ID: 66029
           Summary: Build error compiling gcc5.1 using LTO
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: t at sharklasers dot com
  Target Milestone: ---

Created attachment 35469
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35469&action=edit
complete command line

I compiled gcc5.1 without LTO optimizations and tried to compile it again with
LTO using the new 5.1 compiler.


"openSUSE 13.2 (Harlequin) (x86_64)"

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=gcc5.1/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.1.0/configure --prefix=gcc5.1
--enable-languages=c,c++ --enable-gold=yes --enable-ld=yes --enable-lto
--enable-bootstrap --disable-multilib
Thread model: posix
gcc version 5.1.0 (GCC)


/usr/bin/ld: error in /tmp/cc4PfHUo.ltrans1.ltrans.o(.eh_frame); no
.eh_frame_hdr table will be created.
`_Unwind_Resume' referenced in section `.text' of
/tmp/cc4PfHUo.ltrans1.ltrans.o: defined in discarded section `.text' of
unwind-dw2.o (symbol from plugin)
`_Unwind_Resume' referenced in section `.text' of
/tmp/cc4PfHUo.ltrans3.ltrans.o: defined in discarded section `.text' of
unwind-dw2.o (symbol from plugin)
`_Unwind_Resume' referenced in section `.text' of
/tmp/cc4PfHUo.ltrans3.ltrans.o: defined in discarded section `.text' of
unwind-dw2.o (symbol from plugin)
`_Unwind_Resume' referenced in section `.text.unlikely' of
/tmp/cc4PfHUo.ltrans8.ltrans.o: defined in discarded section `.text' of
unwind-dw2.o (symbol from plugin)
collect2: error: ld returned 1 exit status
Makefile:2606: recipe for target 'build/genmatch' failed

Reply via email to