From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51246 invoked by alias); 14 Jun 2017 21:11:10 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 51215 invoked by uid 89); 14 Jun 2017 21:11:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,DATE_IN_PAST_03_06,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=guessed, highly X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Jun 2017 21:11:08 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 0F5C881456; Wed, 14 Jun 2017 23:11:10 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CNWzyHlD5m9k; Wed, 14 Jun 2017 23:11:09 +0200 (CEST) Received: from [192.168.0.15] (bny92-4-82-228-126-192.fbx.proxad.net [82.228.126.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id BA80181340; Wed, 14 Jun 2017 23:11:09 +0200 (CEST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: fix libcc1 dependencies in toplevel Makefile From: Olivier Hainque In-Reply-To: <0818f951-0166-5cbb-1b08-3ec7db2b8969@acm.org> Date: Wed, 14 Jun 2017 21:11:00 -0000 Cc: Olivier Hainque , gcc-patches@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0818f951-0166-5cbb-1b08-3ec7db2b8969@acm.org> To: Nathan Sidwell X-SW-Source: 2017-06/txt/msg01085.txt.bz2 > On Jun 14, 2017, at 13:39 , Nathan Sidwell wrote: >=20 > Olivier, >> During highly parallel builds on fast hosts, we have experienced >> sporadic bootstrap failures on libquadmath like >=20 > I have encountered such a bootstrap problem too. I guessed dependency ra= ce condition, but -j21 was a simpler fix :) I see :) > I'm happy to try the patch. That would bring useful extra datapoints, Thanks! The patch might be more complex than it needs to be.=20 The logic is very simple: I wasn't sure whether I could add=20 @if gcc-no-bootstrap all-[+prefix+][+module+]: maybe-all-gcc @endif gcc-no-bootstrap to all "all" targets after the dependency to stage_current @if gcc-bootstrap (in Makefile.tpl). The "depgcc" boolean is simply a mechanism to do that only for cases where we were adding a extra explicit dependency to maybe-all-gcc before, that is, only for libcc1. Olivier