https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61899
Bug ID: 61899 Summary: gcc/Makefile.in: compile failure occasionally while parallel make enabled Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: hongxu.jia at windriver dot com Created attachment 33182 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33182&action=edit compile failure log Reproduce steps 1. Manually modify gcc/Makefile.in to delay the generation of config.h: ... diff --git a/gcc/Makefile.in b/gcc/Makefile.in index c4daf69..c502898 100644 --- gcc-4.9.0/gcc/Makefile.in +++ gcc-4.9.0/gcc/Makefile.in @@ -1622,9 +1622,12 @@ tm.h: cs-tm.h ; @true tm_p.h: cs-tm_p.h ; @true cs-config.h: Makefile + @echo "start to generate config.h `date`" + sleep 10 TARGET_CPU_DEFAULT="" \ HEADERS="$(host_xm_include_list)" DEFINES="$(host_xm_defines)" \ $(SHELL) $(srcdir)/mkconfig.sh config.h + @echo "config.h generated `date`" cs-bconfig.h: Makefile TARGET_CPU_DEFAULT="" \ ... 2. configure and compile gcc failure ... ../../gcc-4.10-20140720/gcc/hwint.h:237:8: error: ‘HOST_WIDE_INT’ does not name a type ../../gcc-4.10-20140720/gcc/hwint.h:241:15: error: ‘HOST_WIDE_INT’ does not name a type ../../gcc-4.10-20140720/gcc/hwint.h:256:1: error: expected initializer before ‘zext_hwi’ make[3]: *** [errors.o] Error 1 ... ../../gcc-4.10-20140720/gcc/hwint.h:237:8: error: ‘HOST_WIDE_INT’ does not name a type ../../gcc-4.10-20140720/gcc/hwint.h:241:15: error: ‘HOST_WIDE_INT’ does not name a type ../../gcc-4.10-20140720/gcc/hwint.h:256:1: error: expected initializer before ‘zext_hwi’ make[3]: *** [gcc-ar.o] Error 1 ...