Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4181476pxk; Tue, 22 Sep 2020 12:23:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCXH2EAOkwpNNl1m1l7D1Ifiv/KoqUKesjYICiFan0geTf5IHpSwVwPLF4Ijo6gEnJMUWJ X-Received: by 2002:a17:906:fb15:: with SMTP id lz21mr6480116ejb.185.1600802610617; Tue, 22 Sep 2020 12:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600802610; cv=none; d=google.com; s=arc-20160816; b=PH7vC9LDiy3wflE9kDQMH4KrFblso8wci2uL5eYC46Y99Tpcmq/z1msOnl3bkCdgQ9 GCS8O5/VkIe5J38LPD2aHq5tc0H5OANSnVKQ5THcc2g36iF6F5O3gzLVzK7HcEb3lbff XDPuJWrG9DHzimUz2l3C1zAsAGWJRVxldDlhMlwaChZOQihhNRCjFTKFl41LeA7vqkCc /QoGgHh4QixvU7izz9nOpeapQya55qtqmaM6L+9XRZ5Ti6GERODaeEdHysPLg5xboZ0B 7ekeJUi7VOOdWWaHGEkPgI6dpEKw42s91O/oRiqmrRw82/OnqYhqzFh1pIamG16E2Y5D B+/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=9FbM3c+CB82eVqxwDFD5E/krVrt9MgAjmUeWD/IZaWg=; b=o9GXYm7Y5wh8PouGUznrAbjyrxMfQTAay7QIPLZno/5CSpN9Z82+EjqoaMemqyklQS UPcctAt1hrSgl4LF5wK/RtwxY068eu3lG+oHmlpCVKxvpbtd/bQCxFHOPKt2L2ujlBRK SMYoNANT30pm/3sbmJBtrxRHHrAzbZA7Yp1nkEJXwsLOyuzN0Hcmif5PgEQthvMMQobN sZSP7OIeyBvMjc9uXzOIM3NMmyqk1kXofE/2XgYetM+Q4JSJZ16lZLFRgFc/S0FNNAea 3IaMftM7CazdEZPSfz6oX2erbHdjBEKePM25R5staADXhf6Am3zgFp5C1GReOJSPv1Ju toMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b="c3WB2/VP"; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b="c3WB2/VP"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu14si10874846edb.128.2020.09.22.12.23.04; Tue, 22 Sep 2020 12:23:30 -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=fail header.i=@hansenpartnership.com header.s=20151216 header.b="c3WB2/VP"; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b="c3WB2/VP"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbgIVTTg (ORCPT + 99 others); Tue, 22 Sep 2020 15:19:36 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:56376 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIVTTg (ORCPT ); Tue, 22 Sep 2020 15:19:36 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id B5AC88EE1C7; Tue, 22 Sep 2020 12:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1600802375; bh=YsNqVbeQd2v74WKrK117qfh0w/ViIkMCrqIU2Ydxrgc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=c3WB2/VP3zi3D/WaHuea3ERylHCmcDIIF5djmzpGDU95dKEFoZboTgJAnesZYNYDW DSmjFVE4FDs8HdgnRtei+YJDqd00j7HjcO29pR5BNwrtMa6vXKg8Y5Nmtga68qxo9h WHSlzqJZqSqVQVYwKKxqFY4OisbN9RRC7t7CPzUo= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JUcZkkX4LTgh; Tue, 22 Sep 2020 12:19:35 -0700 (PDT) Received: from [153.66.254.174] (c-73-35-198-56.hsd1.wa.comcast.net [73.35.198.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 318668EE0E0; Tue, 22 Sep 2020 12:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1600802375; bh=YsNqVbeQd2v74WKrK117qfh0w/ViIkMCrqIU2Ydxrgc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=c3WB2/VP3zi3D/WaHuea3ERylHCmcDIIF5djmzpGDU95dKEFoZboTgJAnesZYNYDW DSmjFVE4FDs8HdgnRtei+YJDqd00j7HjcO29pR5BNwrtMa6vXKg8Y5Nmtga68qxo9h WHSlzqJZqSqVQVYwKKxqFY4OisbN9RRC7t7CPzUo= Message-ID: <260b4b85d714df822da259554ef8cc2873f3096f.camel@HansenPartnership.com> Subject: Re: [PATCH 0/1] Add explicit error for missing CONFIG_ASN1 From: James Bottomley To: Randy Dunlap , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Date: Tue, 22 Sep 2020 12:19:34 -0700 In-Reply-To: References: <20200922155341.17906-1-James.Bottomley@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. James