From patchwork Fri Dec 9 06:17:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 130283 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8B2841007D6 for ; Fri, 9 Dec 2011 17:17:52 +1100 (EST) Received: (qmail 27095 invoked by alias); 9 Dec 2011 06:17:49 -0000 Received: (qmail 27085 invoked by uid 22791); 9 Dec 2011 06:17:46 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga14.intel.com (HELO mga14.intel.com) (143.182.124.37) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Dec 2011 06:17:34 +0000 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga102.ch.intel.com with ESMTP; 08 Dec 2011 22:17:33 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by AZSMGA002.ch.intel.com with ESMTP; 08 Dec 2011 22:17:33 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 7F0C2C1E82; Thu, 8 Dec 2011 22:17:33 -0800 (PST) Date: Thu, 8 Dec 2011 22:17:33 -0800 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: PR bootstrap/51479: Missing dependency on errors.o causes bootstrap failure Message-ID: <20111209061733.GA4500@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org gcc/Makefile.in has gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \ gengtype-state.o version.o errors.o $(LIBDEPS) +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ $(filter-out ($LIBDEPS), $^) $(LIBS) However, there is no errors.o dependency, which leads to random parallel build failures. This patch adds errors.o dependency. OK for trunk and release branches? Thanks. H.J. --- 2011-12-08 H.J. Lu PR bootstrap/51479 * Makefile.in (errors.o): New. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index ae4f4da..83f70fa 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -3947,6 +3947,8 @@ build/genautomata$(build_exeext) : BUILD_LIBS += -lm build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \ build/gengtype-state.o build/version.o build/errors.o +errors.o : errors.c $(CONFIG_H) $(SYSTEM_H) errors.h + gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \ gengtype-state.o version.o errors.o $(LIBDEPS) +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \