From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 944913858407 for ; Fri, 6 May 2022 03:51:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 944913858407 Received: by mail-pg1-x52f.google.com with SMTP id t13so5137298pgn.8 for ; Thu, 05 May 2022 20:51:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=RZmFn3Mf1KSk7MKb0kyfihT2iDKOfOQtGqLUzvw4uqo=; b=lH/b4UkAIVg71TUV7yWfgmgLAs7p7h5CfCncxU4RGLyCzMg45D8NCWdn7rUd1TZjnX Q0DLaeertp+kdWNixX1BF8cqokdcly3OTtsxLwLQZ9oLoJAYdC6iKiv+kZOflTflRnj0 F28SdnE7G+bGaY+h7hGd8wR9gWq8ned9/Xs/RopSAWGuZeoed+e+aosdaSe5R01diZpQ 9cEi6Ol3Ke5D44EMDXlYWMPl9XTvrMrWaQy2MHbKF/hLrTZmU46/C4wceje7FryhWUvC L8psyEkuMtFhtKs7+qUtb+it5YTlprVEQA9yY6+1kMFfn9+qSug7jbY4vV1PkomlipMO dA1w== X-Gm-Message-State: AOAM530LSQ0Bs6DKWMqyvZhSo7RatpziiVF97MDGeiSlm+zB08FnDUN1 r1udboWEYKSHz/YGPROa2nk57ALuWyw= X-Google-Smtp-Source: ABdhPJyvnu9Jv6UZ+tpMz3Uo9Z0Yf/d2MpydxUphqQEc8wqMivdTatzhmyPudnuXr6whXXG0tOWYDw== X-Received: by 2002:a05:6a00:1352:b0:50d:ecff:f06c with SMTP id k18-20020a056a00135200b0050decfff06cmr1664414pfu.6.1651809063265; Thu, 05 May 2022 20:51:03 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id g126-20020a625284000000b0050dc762817esm2202020pfb.88.2022.05.05.20.51.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 20:51:02 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id BECB911403AA; Fri, 6 May 2022 13:20:59 +0930 (ACST) Date: Fri, 6 May 2022 13:20:59 +0930 From: Alan Modra To: binutils@sourceware.org Subject: bfd targmatch.h makefile rule Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3037.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2022 03:51:09 -0000 I hit this just now with a make -j build after touching config.bfd. mv: cannot stat 'targmatch.new': No such file or directory make[2]: *** [Makefile:2336: targmatch.h] Error 1 make[2]: *** Waiting for unfinished jobs.... Fix that by not removing the target of the rule, a practice that seems likely to cause parallel running of the rule recipe. The bug goes back to 1997, the initial c0734708814c commit. * Makefile.am (targmatch.h): rm the temp file, not targmatch.h. * Makefile.in: Regenerate. diff --git a/bfd/Makefile.am b/bfd/Makefile.am index f2f70590e88..92ff15b36ee 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -801,7 +801,7 @@ libbfd.a: stamp-lib ; @true # vector names. It is built from config.bfd. It is not compiled by # itself, but is included by targets.c. targmatch.h: config.bfd targmatch.sed - $(AM_V_at)rm -f targmatch.h + $(AM_V_at)rm -f targmatch.new $(AM_V_GEN)$(SED) -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new $(AM_V_at)mv -f targmatch.new targmatch.h diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 3068560c48b..b5f0c0a5c89 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -2331,7 +2331,7 @@ libbfd.a: stamp-lib ; @true # vector names. It is built from config.bfd. It is not compiled by # itself, but is included by targets.c. targmatch.h: config.bfd targmatch.sed - $(AM_V_at)rm -f targmatch.h + $(AM_V_at)rm -f targmatch.new $(AM_V_GEN)$(SED) -f $(srcdir)/targmatch.sed < $(srcdir)/config.bfd > targmatch.new $(AM_V_at)mv -f targmatch.new targmatch.h -- Alan Modra Australia Development Lab, IBM