Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4191246pxk; Tue, 22 Sep 2020 12:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsay97ueztldeH/ThZa0n1EIKIGWj3VeaHG1vcKROUUs0GGWfE8I7FE9euMcjyE1w5snJJ X-Received: by 2002:a17:906:46d5:: with SMTP id k21mr6491431ejs.247.1600803674705; Tue, 22 Sep 2020 12:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600803674; cv=none; d=google.com; s=arc-20160816; b=wh7RHIHBRdxI+c6FrrkaZ6R5KUhZHdY0U1tFz4wE3yy3vYRX5OBljGHGnU6Tq6fMsb Oj7SVn+urwUVbph1swsS7ys8qoHEFbEwgieuhvJ7X9sXwEvP607w2xPDBEtrGtWIpRgH yIwUuD56trVhmacUIrv2JkjUFrT2uQMvWgp2ArRJA2/QxrdzVXwtNoAQk7LxABdZvIZX JZBUAl/6Idew+lgEdgW/0ocKUuJ8w8Q4UzGepbJ/5ZB9PH9c9drdm0UTF5o/MuwQIche H98sG/3RZAJYo/4x7ZuRTgJgPEx7vHByjUObyW2sJiaqaCluK+61H4+z52t/fCOHzK+q A1AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=G3QWEdw+757lC/qv3n3af3eKsuWkIoRvV7SYsgeP/Mc=; b=Bqu6Wg/BhjLdlDH8HxUon9RKQkie/Jp6FFnxqyenfnorxt+OCIq7AL7zLeETS04duQ IRtPcfa5ZcWORd/GX5/va0kWLHAG7+zJndPo/gYP++F723C5A0yfudCbMO4QgtIahIPD MT3mKb0aQ309WL8M/spqplOELRp35T08uIQ7oIPt8CWGiRNwQ9kXDOmCp5psW0TgeEio 3C/eqPBicECWxcl9QPbS9316YH8sOeSLZCt50skbCxMdBboGl9XCeTwjJO0vHlD2aNiB 8t/P1pc+ynGbe2fJ+5DwZ3/JmH4lZ5wbl6h/+UTzB/4usUFoHnuzjqFxWeDtDztr0vEx SQdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=KA2WoiQV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si10673189edt.233.2020.09.22.12.40.24; Tue, 22 Sep 2020 12:41:14 -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=@infradead.org header.s=merlin.20170209 header.b=KA2WoiQV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgIVTii (ORCPT + 99 others); Tue, 22 Sep 2020 15:38:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIVTie (ORCPT ); Tue, 22 Sep 2020 15:38:34 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E456CC061755; Tue, 22 Sep 2020 12:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=G3QWEdw+757lC/qv3n3af3eKsuWkIoRvV7SYsgeP/Mc=; b=KA2WoiQVQC59KkiQQMAWf2APcY S36ZrUloebq8Qsq5ko0tlAU3RaLOLE7fFe3zbrdis9SOn82/dUnXuC27jDqsP3rGait3BryqqOc4o oGK4VQUAplYDVjXBlIolSL1zpejHLCclSDpZ/NfLDQpw2IQhMc1ey6EnqKNm/1B97o04hB/md2nii c+ZLxV0otc0zIhVZOaK8IbPXGe72iKUc0vC0MHs3k8C8lJLm3kq5UotieqrJshEHWkzUa7fIGVobf F8p7HNN3EDSQtOw51nqVVW8yyYUJ/TlL5M4n+2g4AcBqX622LVCIxsHxiCP0RsycMWHyouLoQKJAR kaozgWgw==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKo7T-0004hQ-RQ; Tue, 22 Sep 2020 19:38:32 +0000 Subject: Re: [PATCH 0/1] Add explicit error for missing CONFIG_ASN1 To: James Bottomley , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada References: <20200922155341.17906-1-James.Bottomley@HansenPartnership.com> <260b4b85d714df822da259554ef8cc2873f3096f.camel@HansenPartnership.com> From: Randy Dunlap Message-ID: <36232f66-58b1-77a8-91a3-f9d3428fffb5@infradead.org> Date: Tue, 22 Sep 2020 12:38:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <260b4b85d714df822da259554ef8cc2873f3096f.camel@HansenPartnership.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/20 12:19 PM, James Bottomley wrote: > On Tue, 2020-09-22 at 11:54 -0700, Randy Dunlap wrote: >> On 9/22/20 8:53 AM, James Bottomley wrote: >>> I recently ran into this as an error from 0day. On x86 it's pretty >>> much impossible to build a configuration where CONFIG_ASN1 isn't >>> set, so you rarely notice a problem using the ASN.1 compiler >>> because something else has selected it. However, this compiler is >>> never built if CONFIG_ASN1 isn't set and the error you get from >>> kbuild is particularly unhelpful: >>> >>> make[4]: *** No rule to make target 'security/keys/trusted- >>> keys/tpm2key.asn1.o', needed by 'security/keys/trusted-keys/built- >>> in.a'. >>> make[4]: *** [scripts/Makefile.build:283: security/keys/trusted- >>> keys/trusted_tpm2.o] Error 1 >>> make[4]: Target '__build' not remade because of errors. >>> >>> This patch changes the above error to the much easier to diagnose: >>> >>> scripts/Makefile.build:387: *** CONFIG_ASN1 must be defined for >>> the asn1_compiler. Stop. >>> make[3]: *** [scripts/Makefile.build:505: security/keys/trusted- >>> keys] Error 2 >>> >>> James >>> >>> --- >>> >>> James Bottomley (1): >>> Makefile.build: Add an explicit error for missing ASN.1 compiler >>> >>> scripts/Makefile.build | 5 +++++ >>> 1 file changed, 5 insertions(+) >> >> Is there a missing >> select ASN1 >> somewhere? > > You mean in the build used to produce the errors above? Yes, so the > patch is to make the problem more explicit. I appreciate that the message can be improved, but it seems possible that some Kconfig could also be improved. -- ~Randy