Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2171953pxk; Mon, 14 Sep 2020 06:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwge1ot17+h7gumpi5covg0wuzKslEgt1sPGAOMRB2l5B6dRKB1Yo3uQyF0srRlF7xa26hy X-Received: by 2002:a17:906:2b06:: with SMTP id a6mr14692234ejg.209.1600090833502; Mon, 14 Sep 2020 06:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600090833; cv=none; d=google.com; s=arc-20160816; b=D2IHawpLQnKxO3B+6fR0W5eSPn/kM2AIldNtE6cffTm88sESvx/xGRRogeX7icZl7b kBiu5n8I9aYsrxIlZ+p3iUwEo9ww5eSSBwD6EmX9JAONvNj2Q/5mkq+HFY0TVtuUoqRn H8LaU+gko/dY4n4A9tGADVS8C6N28SXz/N/SRFeNNoWMA9XdIQt8TEbyD728tQS0+p6u cU1mx7J9R/htaq8rIoJnKvberfchPzm4Qnom2wgfhy/nZF5zcGntu1jvC+fRN5WmwTIv dLF4bDGxUbtwFo1DaPtgPwYvTAQZ11WMYTms5ooC6psQT623H8MNYdZg8zb3H4ai3rNW mArw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=xWftbWFvEeTv++1lO4mLb7Bfqvhd3CwG/NSYhB9uc54=; b=UUoxtxaT27V7AdMkoqQA14b+A23TaScSUhpBnVSvdqm60/XDkRMP3MKIZdjfMSDq6+ 1UIsjHXgVo8gO4T5PDzIM1xUrYG1xKh78uN8eYK9cIfZElK0wMd26BMXFXLz+7lCbNs0 RKI61Uc6XNADgyipRnVcieOpwgl7cvKsxLIKEC+dT8AOGwU3MrpACZXmm3UWoAYz4sKY QhQ6zflH8/g6tfb2Wssm+AQRMUhq/mmFeDH8uSrzNDBrtM0UNXrva1N4LuNTzqZETdgI bXXPu3TnuhhTrRT6fYojw5hN/xf5hYoHdbcakwy/tdjq/AyrmX3u67t/7Et5XXOrzjdw yyvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=px8asxT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si6269159ejx.165.2020.09.14.06.40.10; Mon, 14 Sep 2020 06:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=px8asxT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726726AbgINNjJ (ORCPT + 99 others); Mon, 14 Sep 2020 09:39:09 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:33322 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbgINNeV (ORCPT ); Mon, 14 Sep 2020 09:34:21 -0400 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 08EDX3O9012871 for ; Mon, 14 Sep 2020 22:33:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 08EDX3O9012871 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1600090384; bh=xWftbWFvEeTv++1lO4mLb7Bfqvhd3CwG/NSYhB9uc54=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=px8asxT9zwIUTNG4Q7M/yBIJBffaXrrajjojhqTTuWqzcK6tWCN6SPJ3mT06BMNIe DUKgYohaV6rIkYZdbSWzCI4nOpEj8K4Bdjyi0ZhsOIEvQ5ZCGuBC7SSnJ4FbAFwVN9 L0X/rAXkSNfbxQkVdT4AiSygeH19iBZCcPCjX/Bvccd+ByQAL/mLoayD43EzSWyQin nYKA1RNToNn/aI/te/DDyw8fPzSwJX+LlDfydXOZJRtI++UF6hqS8fJwq8+1j1C7Bf eu4E6F6ialSPRdyyTIsJXujNBRiiXePz8AN+4QGXrceqgIbXzkN91RWoJ6FWrmmNda chaU7CFQKGLOQ== X-Nifty-SrcIP: [209.85.215.172] Received: by mail-pg1-f172.google.com with SMTP id y1so5252390pgk.8 for ; Mon, 14 Sep 2020 06:33:03 -0700 (PDT) X-Gm-Message-State: AOAM533Wv6/RRrva4ig+c1VWdsjTa59P+fVVhkBE+7ULaSY4Hm9h3gRM nYZ8MODBwgAUNXQ39m4uHj268Ak9JTtLbKxqpvk= X-Received: by 2002:a17:902:9f86:: with SMTP id g6mr13782978plq.32.1600090382908; Mon, 14 Sep 2020 06:33:02 -0700 (PDT) MIME-Version: 1.0 References: <20200820063526.GA3278096@gmail.com> <20200914123708.GA603584@gmail.com> In-Reply-To: <20200914123708.GA603584@gmail.com> From: Masahiro Yamada Date: Mon, 14 Sep 2020 22:32:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: Run syncconfig with -s To: Ingo Molnar Cc: Linux Kernel Mailing List , Michal Marek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 9:37 PM Ingo Molnar wrote: > > > * Masahiro Yamada wrote: > > > On Thu, Aug 20, 2020 at 3:35 PM Ingo Molnar wrote: > > > > > > On every kernel build that runs --syncconfig, there's an output of the following line: > > > > > > scripts/kconfig/conf --syncconfig Kconfig > > > > > > This is the only non-platform build message the kbuild system emits that isn't > > > prefixed by at least a space, or is a build warning. > > > > > > Run it under -s - if there's any problem it will emit messages anyway. > > > > > > With this change the following simple grep filter will show all build warnings > > > and errors of a kernel build: > > > > > > make | grep -v '^ ' > > > > > > > > I do want to see something when syncconfig is invoked. > > > > I will apply this instead: > > https://patchwork.kernel.org/patch/11727445/ > > BTW., there's another, rather spurious bug I recently triggered in kbuild. > > Occasionally when I Ctrl-C a kernel build on a system with a lot of CPUs, > the .o.cmd file gets corrupted: > > mm/.pgtable-generic.o.cmd:5: *** unterminated call to function 'wildcard': missing ')'. Stop. > make: *** [Makefile:1788: mm] Error 2 > make: *** Waiting for unfinished jobs.... > > The .o.cmd file is half-finished: > > $(wildcard include/config/shmem.h) \ > $(wildcard include/config/hugetlb/page.h) \ > $(wildcard include/config/zone/device.h) \ > $(wildcard include/config/dev/pagemap/ops.h) \ > $(wildcard include/config/device/private.h) \ > $(wildcard include/config/pci/p2pdma.h) \ > $(wildcard include/config/sparsemem.h) \ > $(wildcard include/config/sparsemem/vmemmap.h) \ > $(wildcard include/config/numa/balancing.h) \ > $(wildcard i > [premature EOF] Hmm, previously fixdep was not robust against errors or interruption. So, I occasionally observed the same problem as you saw. I fixed it in 6f9ac9f4427ec0470ccffbf852cfaf326677cc21 Since then, I have not seen the broken .cmd file issue. I repeated 'make -j256' and Ctrl-C, but I could not reproduce it... If GNU Make was interrupted during the build rule of mm/pgtable-generic.o, GNU Make should automatically have deleted mm/pgtable-generic.o because partially updated (i.e. corrupted) files are the source of all the troubles. Isn't this the case for you? If I interrupt Kbuild, I see several Deleting file '.....' messages, like follows: CC fs/seq_file.o CC drivers/acpi/dock.o CC drivers/scsi/scsi_devinfo.o CC fs/xattr.o ^Cmake[1]: *** [scripts/Makefile.build:283: fs/seq_file.o] Interrupt make[2]: *** [scripts/Makefile.build:283: net/ipv6/af_inet6.o] Interrupt make[3]: *** [scripts/Makefile.build:283: drivers/net/phy/mdio-boardinfo.o] Interrupt make[4]: *** [scripts/Makefile.build:283: drivers/tty/serial/8250/8250_pnp.o] Interrupt make[2]: *** [scripts/Makefile.build:283: security/selinux/status.o] Interrupt make[2]: *** [scripts/Makefile.build:283: arch/x86/kernel/dumpstack.o] Interrupt make[2]: *** Deleting file 'drivers/acpi/resource.o' make[2]: *** [scripts/Makefile.build:500: drivers/net/phy] Interrupt make[2]: *** [scripts/Makefile.build:283: net/sched/act_api.o] Interrupt make[2]: *** [scripts/Makefile.build:283: drivers/scsi/scsi_devinfo.o] Interrupt make[1]: *** Deleting file 'arch/x86/pci/mmconfig_64.o' make[1]: *** [scripts/Makefile.build:500: net/ipv6] Interrupt make[2]: *** [scripts/Makefile.build:283: net/ethtool/wol.o] Interrupt make[1]: *** Deleting file 'arch/x86/pci/init.o' make[1]: *** [scripts/Makefile.build:283: arch/x86/pci/mmconfig_64.o] Interrupt make[2]: *** [scripts/Makefile.build:283: net/sunrpc/socklib.o] Interrupt make[1]: *** [scripts/Makefile.build:283: fs/xattr.o] Interrupt make[2]: *** [scripts/Makefile.build:283: sound/hda/hdac_sysfs.o] Interrupt make[2]: *** [scripts/Makefile.build:283: net/mac80211/main.o] Interrupt make[2]: *** [scripts/Makefile.build:283: drivers/input/input-mt.o] Interrupt make[2]: *** [scripts/Makefile.build:283: net/rfkill/core.o] Interrupt make[1]: *** [scripts/Makefile.build:283: lib/bug.o] Interrupt make: *** [Makefile:1792: lib] Interrupt make[2]: *** Deleting file 'drivers/rtc/systohc.o' > Instead of the regular rules that end in: > > $(wildcard include/config/memory/hotplug/sparse.h) \ > > mm/pgtable-generic.o: $(deps_mm/pgtable-generic.o) > > $(deps_mm/pgtable-generic.o): > [regular EOF] > > Manually removing the corrupted .o.cmd dot file solves the bug. > > There's no reproducer other than Ctrl-C-ing large build jobs a couple of times. > > Thanks, > > Ingo -- Best Regards Masahiro Yamada