Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0233C433F5 for ; Wed, 13 Oct 2021 13:11:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E57F610FC for ; Wed, 13 Oct 2021 13:11:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6E57F610FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HTtGT6wTNz301F for ; Thu, 14 Oct 2021 00:11:45 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.57; helo=out30-57.freemail.mail.aliyun.com; envelope-from=guoheyi@linux.alibaba.com; receiver=) Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HTtG05yBrz2yS3 for ; Thu, 14 Oct 2021 00:11:19 +1100 (AEDT) X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R161e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04395; MF=guoheyi@linux.alibaba.com; NM=1; PH=DS; RN=1; SR=0; TI=SMTPD_---0UrhXfdw_1634130663; Received: from B-G4TALVDL-1650.local(mailfrom:guoheyi@linux.alibaba.com fp:SMTPD_---0UrhXfdw_1634130663) by smtp.aliyun-inc.com(127.0.0.1); Wed, 13 Oct 2021 21:11:03 +0800 To: openbmc From: Heyi Guo Subject: do_kernel_configcheck error after upgrading to release 2.10.0-rc1 Message-ID: <768f14be-e73c-2e54-14f9-378044c1cbc3@linux.alibaba.com> Date: Wed, 13 Oct 2021 21:11:02 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" Hi all, After upgrading to openbmc 2.10.0-rc1, I got below error when building linux-aspeed: ERROR: linux-aspeed-5.10.36+gitAUTOINC+992ac74129-r0 do_kernel_configcheck: Error executing a python function in exec_python_func() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function:      0001:  *** 0002:do_kernel_configcheck(d)      0003: File: '/home/gary/obmc-upstream/meta/classes/kernel-yocto.bbclass', lineno: 570, function: do_kernel_configcheck      0566:    if analysis:      0567:        outfile = "{}/{}/cfg/invalid.txt".format(s,kmeta)      0568:        if os.path.isfile(outfile):      0569:           os.remove(outfile)  *** 0570:        with open(outfile, 'w+') as f:      0571:            f.write( analysis )      0572:      0573:        if bsp_check_visibility and os.stat(outfile).st_size > 0:      0574:            with open (outfile, "r") as myfile: Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/gary/obmc-upstream/build/ali2600/tmp/work-shared/ali2600/kernel-source/meta/cfg/invalid.txt' ERROR: Logfile of failure stored in: /home/gary/obmc-upstream/build/ali2600/tmp/work/ali2600-openbmc-linux-gnueabi/linux-aspeed/5.10.36+gitAUTOINC+992ac74129-r0/temp/log.do_kernel_configcheck.11057 ERROR: Task (/home/gary/obmc-upstream/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb:do_kernel_configcheck) failed with exit code '1' It seems no one creates the parent directory "meta/cfg" before trying to create the file "invalid.txt". The error could be got around by manually creating meta/cfg under the specific directory. Is it a yocto bug or did I miss something? Thanks, Heyi