Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp926244pxb; Wed, 13 Jan 2021 20:59:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlwjK3No63gATq+mnLMJXsgxR1Dm10iwsvTLRE7i0uGo405U1wMS6AMNJQYWzFtAPep4cA X-Received: by 2002:a05:6402:1041:: with SMTP id e1mr4655653edu.54.1610600365732; Wed, 13 Jan 2021 20:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610600365; cv=none; d=google.com; s=arc-20160816; b=s6J26hG4xIXqlDw2c8y6Qd6KiyL4q7DLLRw03x5u++yicmkV5YCQG+0ZxADoaxuFHX BI5GX0u3IXn9+0qqTydg7V9LyxtEUnFBbIEKPNxMmNX0mCEnN4y9SBOHHh8RUtPjTwSw JJE4lDbanAO3E5LguAOPITv+fjag04cf7uSjh7DtnC28rSP9Cc5V/M25UEMWwk5wQpMJ AKca8S9mVzm07H325S4pll5WMiezboTwiAEDBiXSst6jshknDQYCyikxkdjBvHsAHF4U nbGtOKqnI/ZG8Vra4fQO1qeRHRxumpwPB4y2ueSDm6cNmPvqk9YztyFD+Nsjfh4LVo12 qMWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=alkNx32/Pn7CxrAXneGdwrvfeo41NsjmUKl3/mlVhtA=; b=0oEPqivCNYkEbmPCJtLntVH1amHMEoPH+MCje/PGmkAtyew3vFYMrUvf9aK/DTFDNO Mu53Lbxqe96lZLe4zj1k+yLu7qvD2vI9lBXq4hSkdt4ALiigDVTRCTuuiYEKnN2UU4+r oQ9w5MKAQTfq2rg69z2G0zHGUnl0MwWPq51SbeZHfMSBTWpBmS9rR1zvAWWERrbOh7hu gNWg7NIrAmCLJkyiDThWMamhwC/IXBDhaNMd1lpbyBSp82nhv18FhlF2k7o2tecg4TP2 chkS5o+Z80chH8Ij7AmILZTUNtU133U5sacMivPgXstP6X2OXGvO22vO/FTIVkJDA0xO /Qaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=xZrVHEIS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si2014685edw.306.2021.01.13.20.59.02; Wed, 13 Jan 2021 20:59:25 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=xZrVHEIS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbhANE5k (ORCPT + 99 others); Wed, 13 Jan 2021 23:57:40 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:58229 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbhANE5k (ORCPT ); Wed, 13 Jan 2021 23:57:40 -0500 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 10E4ud6w028101; Thu, 14 Jan 2021 13:56:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 10E4ud6w028101 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1610600200; bh=alkNx32/Pn7CxrAXneGdwrvfeo41NsjmUKl3/mlVhtA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=xZrVHEISRFJOXJWZUinTFdypaR4EPZDqDz5eEpiMO1q8w7fvbfqBcGmj6CEFdxaA9 VsOraMV6Yud6CN7I8seSoPW3KPX94A3ukOiX7tIfs9UXG2sXAkhjvp0Z6VG+wUoDsT qk/pPmuO/ob8P8SDf6cBZaYev8QLe1VE3HyjE/Nd0RQAEmPx1CxZf0i/xcoqN0LPcQ UH8yOt/BX7J4d/KN7X8xn8M0MOCiMbdqC3x07uG4KcEB4u9DwxCJ3yaQ08lGmhQvcg 0SzMjzzsPmYDW7q5+pJeryCUXGce85cSrfGIHzOfU/jQ29F2petNGGIWmSStTw8BcU HcHhKbm3mB13w== X-Nifty-SrcIP: [209.85.214.171] Received: by mail-pl1-f171.google.com with SMTP id j1so2315668pld.3; Wed, 13 Jan 2021 20:56:40 -0800 (PST) X-Gm-Message-State: AOAM533qLW3eguMid384PmOond3wzqXBFclIgkSzce+KqCnHsf0SrnPy Z5WI05o+eQPmYAi7EXI8Z2Adndif9yPob8E6+Ew= X-Received: by 2002:a17:90a:fa0c:: with SMTP id cm12mr3098600pjb.87.1610600199281; Wed, 13 Jan 2021 20:56:39 -0800 (PST) MIME-Version: 1.0 References: <20210113222112.ej4rrd5xw2pwegvw@treble> In-Reply-To: <20210113222112.ej4rrd5xw2pwegvw@treble> From: Masahiro Yamada Date: Thu, 14 Jan 2021 13:56:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Toolchain-dependent config options To: Josh Poimboeuf Cc: Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 7:21 AM Josh Poimboeuf wrote: > > Hi Masahiro, > > If I copy a config with CONFIG_GCC_PLUGINS to another system which > doesn't have the gcc-plugin-devel package, it gets silently disabled by > "make olddefconfig". > > I've seen multiple cases lately where this is causing confusion. I > suspect the problem is getting worse with recent added support for a > variety of toolchains and toolchain-dependent features. > > Would it be possible to have an error (or at least a warning) in this > case? > > For example, a "depends-error" which triggers an error if its failure > would disable a feature? > > -- > Josh > We disable any feature that is unsupported by the compiler in use. Conventionally, we did that in the top Makefile by using $(call cc-option, ) macro or by running some scripts. Recently, we are moving such compiler tests to the Kconfig stage. Anyway, we disable unsupported features so any combination of CONFIG options builds successfully. This will ease randconfg and allmodconfig tests. A lot of people and CI systems are running allmodconfig tests for various architectures and toolchains. Introducing the build breakage is annoying. -- Best Regards Masahiro Yamada