https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78105
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Please try to add following to your compile flags: -wrapper gdb,--args However I guess the problem is that build-lto/./gcc/xgcc binary is somehow miscompiled.