[backport gcc-4.8/trunk r193691 ] Date: Tue, 20 Nov 2012 16:35:45 +0000 Subject: [RFC] Parallel build broken on trunk. From: Marcus Shawcroft List-Archive: Folks, Parallel builds contain a race due to a missing dependency between gengtype-lex.o and $(BCONFIG_H). This was introduced by the commit: http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00926.html .. which injects an include of bconfig.h into the top of gengtype-lex.c but does not make both of the objects built from that file dependent on bconfig.h There is a simple fix, below, but I'm concerned that this is just papering over the cracks, is it really correct that both the build and host machine variants include the same config file? Cheers /Marcus gcc/ 2012-11-21 Marcus Shawcroft * Makefile.in (gengtype-lex.o): Add dependency on $(BCONFIG_H). --- gcc-4.7.2/gcc/Makefile.in.~1~ 2012-08-06 16:34:27.000000000 +0200 +++ gcc-4.7.2/gcc/Makefile.in 2012-12-02 18:35:01.000000000 +0100 @@ -3888,7 +3888,7 @@ build/genflags.o : genflags.c $(RTL_BASE $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h build/gengenrtl.o : gengenrtl.c $(BCONFIG_H) $(SYSTEM_H) rtl.def gengtype-lex.o build/gengtype-lex.o : gengtype-lex.c gengtype.h $(SYSTEM_H) -gengtype-lex.o: $(CONFIG_H) +gengtype-lex.o: $(CONFIG_H) $(BCONFIG_H) build/gengtype-lex.o: $(BCONFIG_H) gengtype-parse.o build/gengtype-parse.o : gengtype-parse.c gengtype.h \ $(SYSTEM_H)