https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85571
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- The following should work: Index: config/bootstrap-lto.mk =================================================================== --- config/bootstrap-lto.mk (revision 259755) +++ config/bootstrap-lto.mk (working copy) @@ -1,5 +1,7 @@ # This option enables LTO for stage2 and stage3 in slim mode +do-compare = /bin/true + STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1