From patchwork Thu Aug 10 22:11:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Davis X-Patchwork-Id: 9894639 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8143460384 for ; Thu, 10 Aug 2017 22:11:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 734E128B57 for ; Thu, 10 Aug 2017 22:11:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67D3D28B9A; Thu, 10 Aug 2017 22:11:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E693028B57 for ; Thu, 10 Aug 2017 22:11:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272AbdHJWLT (ORCPT ); Thu, 10 Aug 2017 18:11:19 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:35301 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752281AbdHJWLS (ORCPT ); Thu, 10 Aug 2017 18:11:18 -0400 Received: by mail-it0-f51.google.com with SMTP id 76so20142070ith.0; Thu, 10 Aug 2017 15:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FLaxdsuBmO0LJH8TAsuGARq861oFso8xK3qiZfl33t8=; b=Rpzc6F1ucmaQ48MtlpHSmcbqqkS4Rh+eEi/eIY97ZO+RZa0OSdRoBgJr0Jbhns0LRA m8+Nal1hFoGz6nCMwvN9uQUOLoemAJGqJrfdst9LzcMcyxaoVwx7Jtrd1gxKAKchur2l S26NaZ+DdhYgpFmBA+NfhOzdPvQtOIAT5ZjBAQiKH5zz4rHUpz6IlW93ttgqnwfNJ0ur Sg3bJNn2xMWXuq9yFtIIJOvtnWkjmjnuGwhPP0EnW02YdpAB9wfsabJII2vxRzS7oJxf xM7XZnVnEtLbGchgJpS79sPiiyhKR6uVpoxLxblay/1n8n9+lGNLzre8vchc0ReaTV1j BE5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FLaxdsuBmO0LJH8TAsuGARq861oFso8xK3qiZfl33t8=; b=iqGrQoGMzV2+4Rk1YGxQbus+OzdlxyJIr+QScyFHxkmtvgzIU/Ac13bA28fuknml3m tGihB/lG2i2npKbEUiQz3sjK/43k4qVfZ4zf2LMNiqFFTxG+AB4Q64qYCV/pQJDIL64j 2jX6v5bmQOIi1UsxHIl5CvCBtJneg3Z0fETymlen8hJ54Hxl3fwKB7mcSS9ZaEWnrcz5 5T9VHo8TeBpVZQuRRJ+AhgsEsIiFBg1+knprrAWpWUJnQ9NfVK7bDKq09QWo9yt5qDVf DGZISDkMaFCHUTGuXbhb2D6GOY43spWj+c5U/LfEzhAnCgmF9lQsgHvcFg01oMqPUWi0 uLbA== X-Gm-Message-State: AIVw111hWM5twwDGgJBQf/4aThpABFB3IgHdFtJKdFX6W1jT/7v75JY7 wLNDSXgSyfqxMe5FAhSiXVTXO1QKcg== X-Received: by 10.36.152.194 with SMTP id n185mr11252417itd.133.1502403078116; Thu, 10 Aug 2017 15:11:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.32.135 with HTTP; Thu, 10 Aug 2017 15:11:17 -0700 (PDT) In-Reply-To: <1cb96165-34a1-7f8e-4211-e87af3cfb60a@infradead.org> References: <20170810154251.GA23083@localhost.localdomain> <1cb96165-34a1-7f8e-4211-e87af3cfb60a@infradead.org> From: Jim Davis Date: Thu, 10 Aug 2017 15:11:17 -0700 Message-ID: Subject: Re: make clean all broken with -j? + question regarding modpost To: Randy Dunlap Cc: Thomas Meyer , linux-kernel , linux-kbuild Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Aug 10, 2017 at 11:28 AM, Randy Dunlap wrote: > [adding linux-kbuild] > > On 08/10/2017 08:42 AM, Thomas Meyer wrote: >> Hi, >> >> 1.) make with multiple targets >> >> When running >> $ make -j4 clean all >> I get error from make (probably in scripts/Makefile.modbuiltin): With 4.13-rc4 I can get a similar build failure on my Fedora 26 workstation with make allnoconfig; make -j2 clean all /bin/sh: scripts/mod/empty.o: No such file or directory make[2]: *** [scripts/mod/Makefile:24: scripts/mod/elfconfig.h] Error 1 make[1]: *** [scripts/Makefile.build:561: scripts/mod] Error 2 Here's an ugly workaround for that test case. clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) diff --git a/Makefile b/Makefile index 6eba23bcb5ad..6a1fd24dcf31 100644 --- a/Makefile +++ b/Makefile @@ -1297,6 +1297,7 @@ MRPROPER_FILES += .config .config.old .version .old_version \ # clean - Delete most, but leave enough to build external modules # +.NOTPARALLEL: clean clean: rm-dirs := $(CLEAN_DIRS) clean: rm-files := $(CLEAN_FILES)