This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/61899] gcc/Makefile.in: compile failure occasionally while parallel make enabled


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 \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]