Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9003763imu; Tue, 4 Dec 2018 19:02:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/WqxCn/uf3WC5E6ZHdCb/jyzkL+0WQIwz2z+a2NYSO1IByqIceBoaBEFrdQKwAxm7F6Jk5U X-Received: by 2002:a63:c303:: with SMTP id c3mr19057199pgd.268.1543978954535; Tue, 04 Dec 2018 19:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543978954; cv=none; d=google.com; s=arc-20160816; b=MUKcs41iE4nHHsf/7zCUMJywXXDjFWiLnFZLx2xUq5RaQsNIXf+zNxUt4gPnk95QAO okNMtV12am9UwKa6CqJMzPyj6kb30g0RNRSVROldpdM3FZzB+aYkuHyLmngCorpV6YRu U0eRqwwl9yKzWZ1Nc5BBHQ2IVmgQv919njNtyIRenjliBuJ/rCsEOHXtmN/O9n5hCd6P Fojom/PZbbau2B/1ZL9XArbgHuoMaednF6OnXiOBpYb4OGoOR/NCiHH+02FyMgJYWJBw 7VSHPTah6riR6+e2tn7Srg4bWn8HvaG5ZElbDv+/myq+1xVoruhjhmZzve/EnPoaBSQI s6og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=3xbLUf4w6f6M6ICBIgGYRry7weZGK/uBFoKKL8BU5ig=; b=tNizWMZ0vxVj0kN2cV9yzdwr20ekorIO8oJS1F2FK+l935leWzVrGde6SIq3UInsmw RFHh9oxv+QfChyPqx2NUnpMZHYuNWNrSPi36isW2OgNh3eXHwpnYsN9ZYeSCQ5+4JgoS 9SWJGn/OFrK5Uuu8R/SJ/xWRx1/1l3URPW4yfU4VgEdKLQeLDOUB4Zs6qb+WPTU9SM3c V0zYe3JCuCic6aXCvA1NhtM716IETA0dp22NGJPzR9VJNDK+5GhnUou+p4jEzQYfzYAI Veh5waqkd0Vfbxqi+NObVxH67YJLlR+DvtUsiU8PgC0mYR4H9P+yHwp6xB1jQAc12HKF K8PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Be2D/DHK"; 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 j20si16703539pgh.224.2018.12.04.19.02.18; Tue, 04 Dec 2018 19:02:34 -0800 (PST) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Be2D/DHK"; 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 S1726092AbeLEDBV (ORCPT + 99 others); Tue, 4 Dec 2018 22:01:21 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:47071 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbeLEDBV (ORCPT ); Tue, 4 Dec 2018 22:01:21 -0500 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (authenticated) by conssluserg-05.nifty.com with ESMTP id wB531Hbl020188 for ; Wed, 5 Dec 2018 12:01:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com wB531Hbl020188 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1543978878; bh=3xbLUf4w6f6M6ICBIgGYRry7weZGK/uBFoKKL8BU5ig=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Be2D/DHKeXnTyNf0fmNb9QkWM4U4LQ1JrbbLvMCuLPe2EiRtPJX4UPfTvktRzD6TZ URnJfjZ/5RgkLTS1VvZLc3ZH5nKh9inREIJ6AbyW3EeV2rpofwDS3b46+2KUQugHRN /xl3uktxGdQpqsztRS6bM07dRKhs7DUHX3IC+IX00inlT/AKso5hHuknFyQ3I45rpc wP5zCLwzijggvpuxT5rjtN9tolPbScJFL4a12UEabb92+seUgGbSSOVsGgtlYMFYyj JBgn2SYhnMbJCdG6cE0WNo3Xi0bfq/xzo6IBqKHoWgVpYFpv8SA6ZGiRoIWIMiOHI2 cnZh9oJVIvm/Q== X-Nifty-SrcIP: [209.85.217.52] Received: by mail-vs1-f52.google.com with SMTP id x1so11168187vsc.10 for ; Tue, 04 Dec 2018 19:01:18 -0800 (PST) X-Gm-Message-State: AA+aEWYV5qvh+C1HWTGkz+w9MKkmzN04OPGUEwv0mnCO2sh6oJ6sT1rB 94oXnjUSBIshx4l3qdF7jb+1yjGkSpR6HUDm16s= X-Received: by 2002:a67:f1d6:: with SMTP id v22mr9801784vsm.181.1543978877143; Tue, 04 Dec 2018 19:01:17 -0800 (PST) MIME-Version: 1.0 References: <6eeee8da-82ac-f527-9278-7ebcc8756ea1@linux.ee> <3f72d5fa-cfed-e1a0-4f6c-90f8d1de1ace@oracle.com> In-Reply-To: <3f72d5fa-cfed-e1a0-4f6c-90f8d1de1ace@oracle.com> From: Masahiro Yamada Date: Wed, 5 Dec 2018 12:00:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Compiling with old gcc breaks when CONFIG_RETPOLINE is off To: zhenzhong.duan@oracle.com Cc: Meelis Roos , Thomas Gleixner , David Woodhouse , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 5, 2018 at 10:31 AM Zhenzhong Duan wrote: > > Hi Meelis, > > Could you try below change? It force syncconfig for any 'make *config" > > so that autoconf.h and auto.conf are always updated. NACK. syncconfig should happen only when you are about to build something. This patch let "make *config" touch include/config/* around unnecessarily. > diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c > index 98e0c7a..802875b 100644 > --- a/scripts/kconfig/conf.c > +++ b/scripts/kconfig/conf.c > @@ -38,7 +38,7 @@ enum input_mode { > > static int indent = 1; > static int tty_stdio; > -static int sync_kconfig; > +static int sync_kconfig = 1; > static int conf_cnt; > static char line[PATH_MAX]; > static struct menu *rootEntry; > @@ -506,11 +506,11 @@ int main(int ac, char **av) > * Suppress distracting "configuration written > to ..." > */ > conf_set_message_callback(NULL); > - sync_kconfig = 1; > break; > case defconfig: > case savedefconfig: > defconfig_file = optarg; > + sync_kconfig = 0; > break; > case randconfig: > { > @@ -537,13 +537,15 @@ int main(int ac, char **av) > srand(seed); > break; > } > + case listnewconfig: > + sync_kconfig = 0; > + /* fall through */ > case oldaskconfig: > case oldconfig: > case allnoconfig: > case allyesconfig: > case allmodconfig: > case alldefconfig: > - case listnewconfig: > case olddefconfig: > break; > case '?': > > Thanks > > Zhenzhong > > On 2018/12/4 17:58, Meelis Roos wrote: > > Just tried 4.20-rc5 on an old K6-2 PC with gcc 5.3.1, got an error > > about non-retpoline compiler, > > turned CONFIG_RETPOLINE off and retried. > > > > To my surprise, compilation still breaks with > > arch/x86/Makefile:224: *** You are building kernel with non-retpoline > > compiler, please update your compiler.. Stop. > > > > As I read the Makefile, it should error only when CONFIG_RETPOLINE is > > enabled, but it still breaks. > > > > $ grep -r CONFIG_RETPOLINE .config > > # CONFIG_RETPOLINE is not set > > > > $ grep -r CONFIG_RETPOLINE include/ > > include/generated/autoconf.h:#define CONFIG_RETPOLINE 1 > > include/config/auto.conf:CONFIG_RETPOLINE=y > > > > So the headers have not been updated yet, maybe? > > -- Best Regards Masahiro Yamada