https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65794
--- Comment #2 from Marcin Cieślak <saper at marcincieslak dot com> --- Created attachment 36191 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36191&action=edit Patch to Makefile to proceed with the build The attached patch allowed me to continue the build. Probably this patch is not the correct fix though. It can be applied to Makefile.in prior to the configure stage. It looks like "config.status" has no special knowledge of the "auto-build.h" header. (Basically in my case the generated files - auto-host.h and auto-build.h were identical, except for the comment in line 1)