https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67156
Bug ID: 67156 Summary: config/bootstrap-debug.mk: STAGE2_CFLAGS += -gtoggle Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dilyan.palauzov at aegee dot org Target Milestone: --- config/bootstrap-debug.mk contains: STAGE2_CFLAGS += -gtoggle and in turn stage2 is compiled with -gtoggle, while stage3 is compile without -gtoggle. This can be seen by comparing stage{2,3}-gcc/Makefile . After finishing stage3, the build process compares the binaries from stage2 and stage3, which differ, because they were compiled with/out -gtoggle. Removing -gtoggle from config/bootstrap-debug.mk:STAGE2_CFLAGS enables to finish the compilation without errors (during the final comparison) I compile gcc with /git/gcc/configure --enable-host-shared --enable-threads=posix --with-arch=haswell --enable-__cxa_atexit --enable-languages=c,c++,lto,jit --enable-targets=all --enable-nls --with-linker-hash-style=gnu --with-system-zlib --disable-multilib and the gcc-git repository is at the newest state.