Received: by 10.223.185.116 with SMTP id b49csp3411459wrg; Tue, 13 Feb 2018 02:01:55 -0800 (PST) X-Google-Smtp-Source: AH8x22505FNsqBCRBj6NAojegVhpYsQHMxMbPndU69SxA+4xo9jXhbwyI+72ttsW+npIcQonJktP X-Received: by 10.101.96.14 with SMTP id m14mr580736pgu.118.1518516115182; Tue, 13 Feb 2018 02:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518516115; cv=none; d=google.com; s=arc-20160816; b=Ksg5eVd5XzMi10T9b3wJK0r5YmiFQIFT67V6MpnKVCpHLOSvE1nwMJ5gTrNHYZe0ua 8QJv6WxZICiuX0nO57+AvSNDm691m8ZWXfZjG9fQIMAuvvIhyI8DkNQ5V80UNjVkPdf1 EhpHk1mlVd+hpMm2nlXQp+t3JYuWOUkhAL4hhZCJqh/tRttD8iU/Qv+kcratiZJdvMKh tpPac6smiOPPZzuGowII7mj+P6D7qZfq7WTnB++QH046WwvcE5o6x6v/bfEdrFTtn54M 7+IJhZWVjE7sC9JqgMcNeqI4YLo/Cze4zZJ9YJ9WyQ6o+XUlkovWLnzpWGnuwf8BGFxj Xt6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=kSG3UnSoDgTOPq5+i0/bNSIRghM6vnixaLrjo3euM78=; b=i17NxX2yLmuNK0/HsKJwcnSjTMzn4hQ18OmXrvGy520DLk6lMsDdCM/Tsu5kIOx4aj OZDgWwLXPa8nFu6swy4Jg8JOF4EkvnMNQAimoneEixBh/dJ+7BBMt0QfC+rh4xZ8ZiMX YYUJOtcRbQKodht8J6yaVnvj81/MOeN7Iaf7Y1LIMlK0JvHES2U8DR2FY5MufmNQnsJu xA7k7V4pdQzRKAEGBHVCq1+MYBN1GgIveDuF5NQjVKt48Ync/tbHrEFT9Los0VaVajAR wazDVkEgqwZEw7yb89Fjzm53ndODW9QMt6OLoD6TsEvxAeCLt/vxXfd0q3NM6a1WaUhY AsOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10-v6si3472102plz.107.2018.02.13.02.01.40; Tue, 13 Feb 2018 02:01:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934250AbeBMKAz (ORCPT + 99 others); Tue, 13 Feb 2018 05:00:55 -0500 Received: from server.eikelenboom.it ([91.121.65.215]:45724 "EHLO server.eikelenboom.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933416AbeBMKAx (ORCPT ); Tue, 13 Feb 2018 05:00:53 -0500 Received: from 120-71-ftth.on.nl ([88.159.71.120]:17777 helo=[10.97.34.6]) by server.eikelenboom.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1elXOO-0003dh-O9; Tue, 13 Feb 2018 11:00:52 +0100 Subject: Re: Linux 4.16-rc1: regression bisected, Debian kernel package tool make-kpkg stalls indefinitely during kernel build due to commit "kconfig: remove check_stdin()" To: Masahiro Yamada , Woody Suwalski Cc: Ulf Magnusson , srivasta@debian.org, linux-kernel References: <9d122a3c-b1fe-a9f8-17db-c38f42fdc4b1@gmail.com> From: Sander Eikelenboom Message-ID: <27f3817b-0c92-5f92-e079-078a8b92eab4@eikelenboom.it> Date: Tue, 13 Feb 2018 11:00:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/02/18 05:09, Masahiro Yamada wrote: > 2018-02-13 12:00 GMT+09:00 Woody Suwalski : >> Sander Eikelenboom wrote: >>> >>> L.S., >>> >>> The Debian kernel-package tool make-kpkg for easy building of upstream >>> kernels on Debian fails with linux 4.16-rc1. >>> >>> The tool (perl script) while invoked with: >>> make-kpkg --initrd --append_to_version -20180212 kernel_image >>> >>> On a git tree with a .config from the previous kernel release, so new >>> KConfig questions have to be asked on new or changed options. >>> >>> The script stalls indefinitely while it seems to be excuting: >>> exec make kpkg_version=13.018+nmu1 -f >>> /usr/share/kernel-package/ruleset/minimal.mk debian >>> APPEND_TO_VERSION=-t440s-20180212 INITRD=YES >>> >>> After using ctrl-c to break out it, i get: >>> ^CFailed to create a ./debian directory: No such file or directory at >>> /usr/bin/make-kpkg line 970. >>> >>> Bisection turned up as culprit: >>> commit d2a04648a5dbc3d1d043b35257364f0197d4d868 >>> kconfig: remove check_stdin() >>> Except silentoldconfig, valid_stdin is 1, so check_stdin() is >>> no-op. >>> oldconfig and silentoldconfig work almost in the same way except >>> that >>> the latter generates additional files under include/. Both ask users >>> for input for new symbols. >>> I do not know why only silentoldconfig requires stdio be tty. >>> $ rm -f .config; touch .config >>> $ yes "" | make oldconfig > stdout >>> $ rm -f .config; touch .config >>> $ yes "" | make silentoldconfig > stdout >>> make[1]: *** [silentoldconfig] Error 1 >>> make: *** [silentoldconfig] Error 2 >>> $ tail -n 4 stdout >>> Console input/output is redirected. Run 'make oldconfig' to update >>> configuration. >>> scripts/kconfig/Makefile:40: recipe for target >>> 'silentoldconfig' failed >>> Makefile:507: recipe for target 'silentoldconfig' failed >>> Redirection is useful, for example, for testing where we want to >>> give >>> particular key inputs from a test file, then check the result. >>> Signed-off-by: Masahiro Yamada >>> Reviewed-by: Ulf Magnusson >>> >>> Reverting this specific commit makes make-kpkg work again as usual. >>> >>> Version of the kernel-package used: >>> ii kernel-package >>> 13.018+nmu1 >>> >>> >>> I also cc'ed the Debian developer who maintains the kernel-package >>> package: Manoj Srivastava >>> >>> -- >>> Sander >>> >> I have noticed today the same - the kernel-build blockage was in (as I >> recall) >> srcipts/kconfig/conf -s --silentoldconfig Kbuild >> >> I have bypassed it by regenerating the .config "by hand"... > > > silentoldconfig asks you values for new symbols. > So, you must answer questions to proceed. I know, but it stalls before asking the questions. > > How does 'make-kpkg' handle silentoldconfig? > > Re-direct stdio, then make it forcibly fail? I don't know, it is a bunch of perl and shell scripts that gets invoked, not the most easy to comprehend if you are not familiar with them. I'm just a user of the tool. So i would have to defer that question to the Debian package maintainer, hopefully he will chime in. -- Sander > > >