[Bug lto/66029] Build error compiling gcc5.1 using LTO

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue May 5 23:24:00 GMT 2015


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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-05-05
     Ever confirmed|0                           |1

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to JD from comment #0)
> Created attachment 35469 [details]
> 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)

Please configure GCC with --with-build-config=bootstrap-lto for LTO build.
BTW, which linker are you using?



More information about the Gcc-bugs mailing list