https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104006
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #52180|0 |1 is obsolete| | --- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52181 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52181&action=edit gcc12-pr104006.patch Updated patch that should cure it. But reading the automake manual and the generated Makefile, I actually don't understand why you are getting any problems (except the gfortran.ver-sun). All these generated *.inc and *.h files are mentioned in BUILT_SOURCES, and e.g. the all: rule looks like: all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-am so make all (and other goes like make check) should make sure all these *.inc and *.h generated files appear before running recursive make to build everything.