This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61899] gcc/Makefile.in: compile failure occasionally while parallel make enabled
- From: "hongxu.jia at windriver dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Jul 2014 03:01:21 +0000
- Subject: [Bug c/61899] gcc/Makefile.in: compile failure occasionally while parallel make enabled
- Auto-submitted: auto-generated
- References: <bug-61899-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61899
--- Comment #1 from hongxu jia <hongxu.jia at windriver dot com> ---
Here is my solution:
gcc/Makefile.in: add missing errors.o/gcc-ar.o/gcc-nm.o/gcc-ranlib.o to OBJS
While parallel make, the '$(ALL_HOST_OBJS) : | $(generated_files)' rule
doesn't work for these missing objects. And there was potential compile
failure.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
gcc/Makefile.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index a726109..e753ebd 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1224,6 +1224,7 @@ OBJS = \
dwarf2out.o \
emit-rtl.o \
et-forest.o \
+ errors.o \
except.o \
explow.o \
expmed.o \
@@ -1233,6 +1234,9 @@ OBJS = \
fold-const.o \
function.o \
fwprop.o \
+ gcc-ar.o \
+ gcc-nm.o \
+ gcc-ranlib.o \
gcse.o \
ggc-common.o \
gimple.o \