Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1963704imm; Thu, 7 Jun 2018 03:14:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJpa5Hyc2paz6pLriQ1w3Tv8ruUlMFtkVvywxULlqcolOJzI96zFhSPnAnkU4/LCYkFn5oa X-Received: by 2002:a17:902:41:: with SMTP id 59-v6mr1370591pla.345.1528366471442; Thu, 07 Jun 2018 03:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528366471; cv=none; d=google.com; s=arc-20160816; b=xdvIWJipQf37IpVWc6+07ln34neBhDH5zrwS3hz1yvoUft37PkFg/hkAjZVdksc0M+ b0+Y0ki3Bf/w5NryYi31WS6u/fQovXLkpYDfU+42L08G6f4adda9+Ayz83T85KzA98y/ tN9kZuvZwQwuZ9JnT4bv996cx6zJ1MBk5YVRCtXJbHf/N8LxCyxDhtn7lkZJteqab53P fmddhhYLbm494gdhPzJ0nATdNrKXi9fDe4Z/IGlx6KG2YR/LY5NsvCZvWF7htiAtDLDc hG8jusI8Av5rEN1hh4o89xVFG+Nkv5ifXes/eV2BWrCL6OQ98vwOLnd2ORI/lspIZGkY 199Q== 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=PMun8LeXcvRDtaXhOv+ym+V2ir92E9BiC4F6onHIoU0=; b=Lze5k01/QBeS/aKaiT5AYjwZc3jbLIiPJXX10P7HwUy94db9a/siuJC4wYzUAsgh35 K5wsxeTs/eiqzAoiKSO4JQYgNi6Em8TUmf6qQN12+BxS7Jyhbp5uRlCzsZCQAkoT162p wGJNqNyNmjra6H+sCejcqIGlbIB5VXTsIlHs1wz5Opt5rRV2D7UZkz7zAw8gYchluFXV 5BPFMnP8Aiucr/VX69i7Q6UpYsHol2Zgyvo4NkL+MkG/Jf9xo9QK6TAAaoAbHQaLoR9c sdUzqFm1J9Cxc2rMj1/JltowmYbh3tZ11i5MCDSsUgWJ7y+RhsRZRmK2t6NJW4e8dMbk tn0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WMlkfQam; 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 h62-v6si26378644pge.184.2018.06.07.03.14.16; Thu, 07 Jun 2018 03:14:31 -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=WMlkfQam; 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 S932747AbeFGI7g (ORCPT + 99 others); Thu, 7 Jun 2018 04:59:36 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:42130 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932733AbeFGI7e (ORCPT ); Thu, 7 Jun 2018 04:59:34 -0400 Received: from mail-ua0-f181.google.com (mail-ua0-f181.google.com [209.85.217.181]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w578xEbV011808; Thu, 7 Jun 2018 17:59:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w578xEbV011808 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528361955; bh=PMun8LeXcvRDtaXhOv+ym+V2ir92E9BiC4F6onHIoU0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=WMlkfQamkBm5jR/A8/spdogLPyyNrUgUenx2a0hTzb70ddhB9KQEkXL/ALAQVurg8 ld8tjzWxjxIS8gXsoZyHH3jGAryfPKxn+hO3rvG9+KbuvHs8I5nyNRcQGhNQtw3WUy G9l9sZTA90KkJYmZr289TrfYLP6QMSYWFhBZtN/EHhjxzfZtuIr3jWK4CuYedmcpx/ b1+z564S1SQRt0GUFgbAMRXVbKXdPKv7DF/lKCjTduq7r8MjAetgZ8CtxSXk5becEg 04kZLw61YE0a569gNVN+WqAxDa1KGB8IBGzze9RLUFcPDrGnCn00zMN1t95PQu31dk cPjfppknlaPAA== X-Nifty-SrcIP: [209.85.217.181] Received: by mail-ua0-f181.google.com with SMTP id z16-v6so5969032uaz.10; Thu, 07 Jun 2018 01:59:15 -0700 (PDT) X-Gm-Message-State: APt69E36U8dFkdCmYCgyJEj0d1pOMgyGLSDeqx6/vQ2rTn71rlUT9M+F MaER70GrCOQ35NUY/VH1boFITcUdePuVIXkinP0= X-Received: by 2002:ab0:1048:: with SMTP id g8-v6mr569127uab.52.1528361953976; Thu, 07 Jun 2018 01:59:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Thu, 7 Jun 2018 01:58:33 -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: Thu, 7 Jun 2018 17:58:33 +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: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! -- Best Regards Masahiro Yamada