https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110284
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- gcc-consolidation.h is included by m2/m2.flex:#include "gm2-gcc/gcc-consolidation.h" m2/gm2-lang.cc:#include "gm2-gcc/gcc-consolidation.h" m2/m2pp.cc:#include "gm2-gcc/gcc-consolidation.h" m2/m2pp.cc:#include "gm2-gcc/gcc-consolidation.h" m2/gm2-gcc/m2tree.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2expr.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2linemap.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2builtins.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2misc.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2convert.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2treelib.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2statement.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2top.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2assert.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2decl.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2type.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2color.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2except.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2block.cc:#include "gcc-consolidation.h" m2/gm2-gcc/m2configure.cc:#include "gcc-consolidation.h" m2/gm2-gcc/rtegraph.cc:#include "gcc-consolidation.h" so perhaps -m2_OBJS = $(GM2_C_OBJS) +m2_OBJS = $(GM2_C_OBJS) m2/gm2-gcc/rtegraph.o \ + m2/gm2-compiler-boot/m2flex.o m2/gm2-compiler/m2flex.o could be enough, all the other files are in $(GM2_C_OBJS). Oh, and there is a weird: c-family/m2pp.o : $(srcdir)/m2/m2pp.cc $(GCC_HEADER_DEPENDENCIES_FOR_M2) $(COMPILER) -c -g $(ALL_COMPILERFLAGS) \ $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) rule.