Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp327484pxb; Thu, 14 Jan 2021 07:00:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRhVfkJy1hk21YL3aHOzlGAMH2VgJ9dQw8xPT9Zj5/zBG4XECY9e3j47yGQkOIXlcLM8b0 X-Received: by 2002:a50:875b:: with SMTP id 27mr6118510edv.24.1610636444632; Thu, 14 Jan 2021 07:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610636444; cv=none; d=google.com; s=arc-20160816; b=flBVqEhIUZPsvQpXSam7r1SPmQO7xKhTzmLqyYLiPY28i6ZeBW+/B/LsflZv18Xyx6 d+D4ha6mGOUtIK/1ltwMCAR5joz2OA+acVDg7FCTTXtbBX+/5w+D9ohb1KE3ulYteC+z 76/FnpW8swPQNgzqYzfEVNFGM9JJRG/ywjANzRI0tlis+IJz+MPBX6nQy+HWU0JUVCHD iKpjacyWu4eBAMaXFBK1By4d3kZoy8VgMGdflGFD3qhAGEYqIgDL1mj8ijqbCwDp7oGd D+ycusftOddWKbOnqOOF89l+Q+gH8abervCCpk99j+1MFth9FWZH0uFA/TpKhZ8Y3UGO 67kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/ppwJSqDEjfy1jUVKvhzNEie3ebwOMmvOLlmQbJW//U=; b=otRMJ8NMNsc9MPtVslJNkKcILIpWmJ1rdXTDF5dMQGgAcZchEyaHnj9mFeCiDFErS/ RnkQ9QzID8Sj8CE+v++8N+HpcFd4vmN9VXclJxe7yImPSomRX/3VBKjFmTXYVdYB0k00 Kbv5Gnja7dEL7UwAUIkGJP7L10v39iAuyVIHZ1HuAnyrHWGts/KH8rKZuqSMuEhE2+vF V7G6xw/gvDMP2O0/Dc2vfnQIV1E1MSDELLVT1qG9HV0BDf8hWGVU8RJQD8r/2sI+ebzJ P51wJ4PY48WNEQT6rGS2ekYhslmVqAJ2l2Ld0WoNe8Bl2BP0Hkm0eqTVduv9CWZJtRuO 0VCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I3Oauxuj; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr3si716656ejc.380.2021.01.14.07.00.20; Thu, 14 Jan 2021 07:00:44 -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=@redhat.com header.s=mimecast20190719 header.b=I3Oauxuj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726259AbhANO6p (ORCPT + 99 others); Thu, 14 Jan 2021 09:58:45 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:29873 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbhANO6o (ORCPT ); Thu, 14 Jan 2021 09:58:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610636238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/ppwJSqDEjfy1jUVKvhzNEie3ebwOMmvOLlmQbJW//U=; b=I3OauxujAxmGEbgSBIQeeKwNtZPaudho6PbqePRBJYth99nnefJ3JWGYU0yrLVmao37gOA FoEnpEqq5UlZJDbsJ984jGSH4KhiCS1JtyyRbZmOu9svdNT7ByZzOY+97vAGA8gZzKoila Gjls+ylNPAJYTMNc2ZRte+ItFwxJ1kg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-188-wv0VLSzDMN-f09iPugNMOw-1; Thu, 14 Jan 2021 09:57:16 -0500 X-MC-Unique: wv0VLSzDMN-f09iPugNMOw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EA301107ACF7; Thu, 14 Jan 2021 14:57:14 +0000 (UTC) Received: from treble (ovpn-120-156.rdu2.redhat.com [10.10.120.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 39F5B10023B9; Thu, 14 Jan 2021 14:57:13 +0000 (UTC) Date: Thu, 14 Jan 2021 08:57:11 -0600 From: Josh Poimboeuf To: Bernd Petrovitsch Cc: Masahiro Yamada , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: Toolchain-dependent config options Message-ID: <20210114145711.3yfx2x6snjij3bxl@treble> References: <20210113222112.ej4rrd5xw2pwegvw@treble> <53fccf6d59938e94f71a823d704e26903b98fb7d.camel@petrovitsch.priv.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <53fccf6d59938e94f71a823d704e26903b98fb7d.camel@petrovitsch.priv.at> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 12:55:26PM +0100, Bernd Petrovitsch wrote: > Hi all! > > On Thu, 2021-01-14 at 13:56 +0900, Masahiro Yamada wrote: > > On Thu, Jan 14, 2021 at 7:21 AM Josh Poimboeuf wrote: > [...] > > > 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? > [...] > > 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. > > For options of $CC, that makes sense since there are different > compilers and lots of versions of them out there. > > > A lot of people and CI systems are running allmodconfig tests > > for various architectures and toolchains. > > Isn't some kind of defying (or more killing) the usefulness > of regression compile runs if one does `make allmodconfig` > and some (lots?) of stuff gets automatically configured > out just because some > -dev(|el) package is missing? Right, it sort of defeats the purpose of CI if new toolchain-dependent features never get tested. There needs to be some way to alert the user they're not testing everything, despite "allyesconfig". I suppose such config options can stop using this new "depends on some_script" feature and just do it the old-fashioned way with an $(error) in the makefile. -- Josh