Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp796805ybl; Tue, 13 Aug 2019 02:46:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqysyAumO6Mdc6zLTIz0qbEHfKRDY8sfKPCfuuxGUAA70wQfLhhu/lKjxFKbvSnPZAUfufqz X-Received: by 2002:a17:902:9a95:: with SMTP id w21mr36402684plp.126.1565689578320; Tue, 13 Aug 2019 02:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565689578; cv=none; d=google.com; s=arc-20160816; b=uy6SsUlfGM/7JO/Kx2BUAsyUSYvJb6r9ycQMNwxvBJEUwmpuCQt6kDZirDMtdI/tDU yF2xoQHsDxdv4Qp0BCPdDmRpfpfnAsbsXAhp3shnU8CKDl1hueRugGnudBrVi0nUz0lt 4RcdU2TG5fs05ZWQjOOK9I5/x6sRFSPFiLHTG7UDYGoUzj2qz5N1fYrFg+l76vS5ZW9g kNkZJQgqgnsZjtkFIqVFZtGOLMZ+c7//MF/XjtxgyOGLfV4m0O7MrI9ybkOuRrK1shD4 /AJ43T4lK6jsE0pLdVxLiOx6tF1WsQVc9e32gDj6pSETjyDLePQQn0TIlCfNt4YOI1um iZ8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from; bh=zMBum8YjFv2/sj48BiWyvuEIPlgmqJ9x8xzk0jw13mU=; b=H6OR6mgRq5zohvxWJJ7dwutKNgCMNOov8eOW0XtqaHf8O2r5asfX8oLgmKpUhEVLbx MjuteHuw8jm5U0ewMlv1LajB3dbIjTEPJ/T0w9pygEmYMRBZbRGmhfMbQE++iWgpyaQn SVTh/RULXeAN0vCucFZGEUsAInPz0To9nvvcAGRD7tq5FeDsIyGUkV8/D782flqcKYpZ n9fxkwDY02Ui6mlLC7qByp4+1Z1nxPmsKogeDeVGrIXf1FDEYvMHBvtfTMMMKPtMdObq PfpjBO16wN6BCS1P9oyUqSqHxfWoINXgkqVCxz3Hcm2oklNw8krtjNaG94T15cZZowZB J5FA== 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 t26si9293258pfh.275.2019.08.13.02.46.02; Tue, 13 Aug 2019 02:46:18 -0700 (PDT) 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 S1727305AbfHMJpN (ORCPT + 99 others); Tue, 13 Aug 2019 05:45:13 -0400 Received: from mail.windriver.com ([147.11.1.11]:49725 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726890AbfHMJpN (ORCPT ); Tue, 13 Aug 2019 05:45:13 -0400 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id x7D9iqi2019320 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 13 Aug 2019 02:44:53 -0700 (PDT) Received: from pek-lpg-core2.corp.ad.wrs.com (128.224.153.41) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.468.0; Tue, 13 Aug 2019 02:44:51 -0700 From: To: , , , , Subject: [PATCH] gcc-plugins: Enable error message print Date: Tue, 13 Aug 2019 17:44:49 +0800 Message-ID: <1565689489-309136-1-git-send-email-zhe.he@windriver.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: He Zhe Instead of sliently emptying CONFIG_PLUGIN_HOSTCC which is the dependency of a series of configurations, the following error message would be easier for users to find something is wrong and what is happening. scripts/gcc-plugins/gcc-common.h:5:22: fatal error: bversion.h: No such file or directory compilation terminated. Now that we have already got the error message switch, let's turn it on. Signed-off-by: He Zhe --- scripts/gcc-plugins/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig index d33de0b..fe28cb9 100644 --- a/scripts/gcc-plugins/Kconfig +++ b/scripts/gcc-plugins/Kconfig @@ -3,7 +3,7 @@ preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX), config PLUGIN_HOSTCC string - default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC + default "$(shell,$(srctree)/scripts/gcc-plugin.sh --show-error "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC help Host compiler used to build GCC plugins. This can be $(HOSTCXX), $(HOSTCC), or a null string if GCC plugin is unsupported. -- 2.7.4