Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4045349pxk; Tue, 22 Sep 2020 09:01:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMuUScoiY5uzHR3ClLs4kqhtD+fmNsVSZcc+HBkW8zsetUInsg82e5Fv3K8VnsoJgc+NZW X-Received: by 2002:a17:906:fca7:: with SMTP id qw7mr5589391ejb.522.1600790518945; Tue, 22 Sep 2020 09:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600790518; cv=none; d=google.com; s=arc-20160816; b=X8iGEiuC/7R3QYoulPZ5BgZqTcRBTosj4iqOMavLFcafYUtEIElZibwzYOD2WHzPUV EtIetHPLc8CPMjIJ5J7jijsHGMnc9KPj7NBSDYkvcMH3vCDlJNLc+kU4HBlgJ5hhCow1 Dq3ddm45sXHYjU6AwKM8L72A50BgHfbOTVMGCJK5XELiihaJ6dfo3yW2JLF8Ks2l5zKe H4cXAiLNghcmKcRHWci+q9zZw39ti/5xS22vQqb9JeoGKLWsx5k215lvANQR3T0zDr0o zKRBB+4n+R6VOb6JWEdYBrg9k5xoWvyg1+KmbKr2mnl/Kw6YBIwiWnnfeyvlRX9D41mx NOHw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=I6eAdqMvoJ4y2q1DOcl/74xQK3sXcAueOg1xXsAt/Vw=; b=OyIF+/DhYItEoPXWs624DfcloMvRqfpmuvjljPEEXKnA4noTaKF2Rsr5tInQrJe/6p 38sPtXURCROHLiegdXC24K7A0FJ6llCF9bX4vTBicL00d3aEj1pFbrqACCWDcn/qBKbS Hl0AekOC7DTm32moGNTtShLAwvmLV0Vy1M7irLtqqfpSX75t0wueSzKcP0+CBinJJ8Yr D04WzjOFrCEeRheuMkWLeA4r6kKP7mfczAY0H6uKBptgKqOhFTWIikkdisHvLAnzAiEd sa5lL+9e+n4sLm/ia1bMkqtouR82fin+a/KylzZ6vobynAB8qnLzUSLUDVG/NRVroaOj mC6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b="G/8/Cgs3"; 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 qx8si11044386ejb.175.2020.09.22.09.01.34; Tue, 22 Sep 2020 09:01:58 -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="G/8/Cgs3"; 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 S1726703AbgIVQAR (ORCPT + 99 others); Tue, 22 Sep 2020 12:00:17 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:53162 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgIVQAR (ORCPT ); Tue, 22 Sep 2020 12:00:17 -0400 X-Greylist: delayed 350 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Sep 2020 12:00:16 EDT Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 6546F8EE1C7; Tue, 22 Sep 2020 08:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1600790065; bh=VqUSJxeMX2TLwu0Kcu6uIuml/FkxBKawirruqps7NM4=; h=From:To:Cc:Subject:Date:From; b=G/8/Cgs3u9HagTPs+o8TbppdLmcVMz2WwHMlvmhWZCOYtKuPqaKlf/oATGXVbC2Uw ieAAL2KjTQmx2zMGVbb5adX4A35PgzQl+rnqdGW45CAY6GgF5PTKjK/1ROkN6x1UH8 0XIa9uyNtuQ0lNoHKrp3q8IXVdaMVN6DSO3wBFSU= 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 OrFAjECzZYHA; Tue, 22 Sep 2020 08:54:15 -0700 (PDT) Received: from jarvis.int.hansenpartnership.com (jarvis.ext.hansenpartnership.com [153.66.160.226]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 579AD8EE0E0; Tue, 22 Sep 2020 08:54:12 -0700 (PDT) From: James Bottomley To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 0/1] Add explicit error for missing CONFIG_ASN1 Date: Tue, 22 Sep 2020 08:53:40 -0700 Message-Id: <20200922155341.17906-1-James.Bottomley@HansenPartnership.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.26.2