Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp511173imm; Fri, 8 Jun 2018 00:08:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJR0Odwe1retgL4VupB2IrZhsjSqasHp/TX82mDCdIkXCWWVOPmK4ZYGAJSChfwweCA9XlW X-Received: by 2002:a17:902:b81:: with SMTP id 1-v6mr183311plr.164.1528441697221; Fri, 08 Jun 2018 00:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528441697; cv=none; d=google.com; s=arc-20160816; b=Gn6iD7jnA6mdsH7gT2B+4FV80w9hdRTZdMf91soI5lnAuhBLuluU4ed+skLWh5GVkM w6zg6Nmn5ySkoF5jhpCcmnN/n9GJqppsv2ty2CVaLFUdWMtI9OA7PKQyGU6fo0GIzWDz 6icc7Gqd/MEPJQOK9tVLQfBbQpETa+zi1hpzOAA+h4EHrgy6wSosciFnQcRp/a/KtUe1 ZdejJARzGLjeopfXz8Z1HS0hewQ2ZEDDpRSzkakXk/P4ihc9vVPJ5g3QEEBtb1+o9Hi0 aajF1ME3jDD83eaMGZbUV9xOPuTwpQBrSKXnwX/C5yth2DoksBDL1spllgjdSIm6Gn/a wemQ== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=Iim/hvEk6SUMUm4EpSSRY/yFf9WjF+25JvqsSfbmWGk=; b=WcLkP4o0vXaTag34qHIDbrCEEtz1o+s4SqkHfnMq3Xfg3W8VglXwKxBaLBlikMLpxX /aJAD1N4aGs1jMPZpDld5ZY2p0xK9EVDRdUNBZTPE8zTaG27yogq1V+kekc5GjYAZdg/ M1U0tVNRcReyH4IH198lhDR+KbXVU7LB+6xQEYlHh9txnTOcl2+yrUnjOjBaSpmtQcp5 oK7JT8nw8UrK4rSrmKXcBynbVPRy0FLtAjX4FveD+nAyQYvlNzV/riccpCvcJLwbAyQL 9EGRnXoTiVK815JUDUIPpT1yUfMHgzlYznD0D/ZV89O+shkIvlX5r/Pte4wGJJvQnReu 8Jcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XPhKEMqs; 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 y9-v6si21625854pgo.570.2018.06.08.00.08.02; Fri, 08 Jun 2018 00:08:17 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XPhKEMqs; 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 S1752642AbeFHHF0 (ORCPT + 99 others); Fri, 8 Jun 2018 03:05:26 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:55009 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752311AbeFHHFX (ORCPT ); Fri, 8 Jun 2018 03:05:23 -0400 Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w5875GbI016134; Fri, 8 Jun 2018 16:05:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w5875GbI016134 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528441517; bh=Iim/hvEk6SUMUm4EpSSRY/yFf9WjF+25JvqsSfbmWGk=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=XPhKEMqsIavUf5as7Kfxpxsnwg/frZTtgu4KJrMaTSiK2IDj/gfu7RkZ9LuoPcA8M aGqjlg8Uirq1uXoK1V2wQvQQ1J7Q0DEi1VNZLORLHD9efjIuzy/KE5k0qkbvH1TbMM bqH20seDVYTsb/DSKQcDK4KqT8X1Ssd85cEebr84R+peslPUg3f+30thjI6NZnKBa7 nQkVJ7j9edLJZkOfPB4V4DGgc30SRIZ9a3I2T/CoRd2NPEQ7bHBP9nGWC3jWB+oGkK xiDpFNzLl+w06w7cbVaajocfMIgTPQ7fCXuZr5MxnHV8DMsYIbrqCEarsSvfgWyYlu Oi6b1mz24EpIw== X-Nifty-SrcIP: [209.85.217.171] Received: by mail-ua0-f171.google.com with SMTP id c23-v6so8219210uan.3; Fri, 08 Jun 2018 00:05:16 -0700 (PDT) X-Gm-Message-State: APt69E0Zm0B9ijVTcYIaVqVMsjeiW/WeLv/yA35WLWls2SvM8wduGmwL ey+z5M7m0AYJ4f6LXwyUHQp/VMnvMFdiW4O0gUA= X-Received: by 2002:ab0:7089:: with SMTP id m9-v6mr3329230ual.141.1528441515784; Fri, 08 Jun 2018 00:05:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 00:04:35 -0700 (PDT) In-Reply-To: References: <1527499328-13213-1-git-send-email-yamada.masahiro@socionext.com> <1527499328-13213-22-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Fri, 8 Jun 2018 16:04:35 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 21/31] kconfig: show compiler version text in the top comment To: Geert Uytterhoeven Cc: linux-kbuild , Linux Kernel Mailing List , Kees Cook , Nicholas Piggin , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Linus Torvalds 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 Hi Geert, 2018-06-07 17:58 GMT+09:00 Masahiro Yamada : > Hi Geert, > > > 2018-06-07 17:42 GMT+09:00 Geert Uytterhoeven : >> Hi Yamada-san, >> >> On Mon, May 28, 2018 at 11:21 AM, Masahiro Yamada >> wrote: >>> The kernel configuration phase is now tightly coupled with the compiler >>> in use. It will be nice to show the compiler information in Kconfig. >>> >>> The compiler information will be displayed like this: >>> >>> $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- config >>> scripts/kconfig/conf --oldaskconfig Kconfig >>> * >>> * Linux/arm64 4.16.0-rc1 Kernel Configuration >>> * >>> * >>> * Compiler: aarch64-linux-gnu-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011 >>> * >>> * >>> * General setup >>> * >>> Compile also drivers which will not load (COMPILE_TEST) [N/y/?] >>> >>> If you use GUI methods such as menuconfig, it will be displayed in the >>> top menu. >>> >>> This is simply implemented by using the 'comment' statement. So, it >>> will be saved into the .config file as well. >>> >>> This commit has a very important meaning. If the compiler is upgraded, >>> Kconfig must be re-run since different compilers have different sets >>> of supported options. >>> >>> All referenced environments are written to include/config/auto.conf.cmd >>> so that any environment change triggers syncconfig, and prompt the user >>> to input new values if needed. >>> >>> With this commit, something like follows will be added to >>> include/config/auto.conf.cmd >>> >>> ifneq "$(CC_VERSION_TEXT)" "aarch64-linux-gnu-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011" >>> include/config/auto.conf: FORCE >>> endif >>> >>> Signed-off-by: Masahiro Yamada >>> Reviewed-by: Kees Cook >> >> This is now commit 21c54b774744719c ("kconfig: show compiler version text >> in the top comment") upstream. >> >> This commit broke cross-compilation for me: >> >> $ make ARCH=m68k >> scripts/kconfig/conf --syncconfig Kconfig >> scripts/kconfig/conf --syncconfig Kconfig >> scripts/kconfig/conf --syncconfig Kconfig >> scripts/kconfig/conf --syncconfig Kconfig >> ... >> >> with O=: >> >> GEN ./Makefile >> scripts/kconfig/conf --syncconfig Kconfig >> GEN ./Makefile >> scripts/kconfig/conf --syncconfig Kconfig >> GEN ./Makefile >> scripts/kconfig/conf --syncconfig Kconfig >> GEN ./Makefile >> ... >> >> .config gained (both with/without O=): >> >> # >> # Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 >> # >> >> which is definitely wrong when cross-compiling for m68k. >> >> Reverting the commit, and fixing up the conflicts, fixes the issue for me >> >> Do you have a clue? >> Thanks! > > > Agh, I missed the case where CROSS_COMPILE is > set by arch/$(SRCARCH)/Makefile. > > > I will fix it. Thanks for the report! I posted a patch. https://patchwork.kernel.org/patch/10453685/ I hope it will fix your problem. Thanks, -- Best Regards Masahiro Yamada