From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0D54C4338F for ; Fri, 13 Aug 2021 15:21:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D7E7260EE4 for ; Fri, 13 Aug 2021 15:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243077AbhHMPWT (ORCPT ); Fri, 13 Aug 2021 11:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242626AbhHMPSM (ORCPT ); Fri, 13 Aug 2021 11:18:12 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20AF0C0698C6 for ; Fri, 13 Aug 2021 08:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=p67Ofyq4VTWuxUbSULjdsrUDt9m7Z7Au2Rp1QiwAyI8=; b=3yXkaLZv6aDJpI6HPzR4DECQKK TSbr+qnCGZL9Hgp4TaCAdHSx4mtW6VzraR7ZKGbIGumP40S4iYzDUrmyrt5wMitmKYRAulJXq4zNU 2s9qiBkQaQgEabiJ7PQ8z+g88b5KbpBYG2vSOcnhFUqUdYlyERoWFSxCbBRrx2OVdP+Bm+Hq+mrnR DksmW3rySZSAF6uH9SzZCCriiIyln7gd6aqlATP3HlGGWJw3ud1cTCU5KXUXcC6vGYJNhkKNGB78O Aio7kn7zxzNx+/aBKveBFik14r6dnJoBKiSk8xVS8AoBd4jigG2bYmKcT6GLVgdGaeHr4NGG1uAbe uQsjfxsw==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEYqH-00CuJy-Hc; Fri, 13 Aug 2021 15:11:29 +0000 Subject: Re: Error: kernelrelease not valid - run 'make prepare' to update it To: Masahiro Yamada Cc: kernel test robot , clang-built-linux , kbuild-all@lists.01.org, Linux Kernel Mailing List , Nathan Chancellor References: <202108111155.RvN9J3Hs-lkp@intel.com> <5ec75ad9-a861-4402-9c16-ae7cb0aaeaba@infradead.org> From: Randy Dunlap Message-ID: Date: Fri, 13 Aug 2021 08:11:28 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/13/21 3:18 AM, Masahiro Yamada wrote: > On Wed, Aug 11, 2021 at 12:19 PM Randy Dunlap wrote: >> >> On 8/10/21 8:16 PM, kernel test robot wrote: >>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>> head: 9e723c5380c6e14fb91a8b6950563d040674afdb >>> commit: ba64beb17493a4bfec563100c86a462a15926f24 kbuild: check the minimum assembler version in Kconfig >>> date: 4 months ago >>> config: riscv-randconfig-r025-20210810 (attached as .config) >>> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d39ebdae674c8efc84ebe8dc32716ec353220530) >>> reproduce (this is a W=1 build): >>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >>> chmod +x ~/bin/make.cross >>> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ba64beb17493a4bfec563100c86a462a15926f24 >>> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >>> git fetch --no-tags linus master >>> git checkout ba64beb17493a4bfec563100c86a462a15926f24 >>> # save the attached .config to linux build tree >>> mkdir build_dir >>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv prepare >>> >>> If you fix the issue, kindly add following tag as appropriate >>> Reported-by: kernel test robot >>> >>> All errors (new ones prefixed by >>): >>> >>>>> Error: kernelrelease not valid - run 'make prepare' to update it >>> -- >>> clang --target=riscv64-linux-gnu -no-integrated-as --prefix=riscv64-linux-gnu- -Werror=unknown-warning-option: unknown assembler invoked >>> scripts/Kconfig.include:50: Sorry, this assembler is not supported. >>> make[3]: *** [scripts/kconfig/Makefile:63: syncconfig] Error 1 >>> make[2]: *** [Makefile:617: syncconfig] Error 2 >>> make[1]: *** [Makefile:726: include/config/auto.conf.cmd] Error 2 >>> make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'. >>> make[1]: Failed to remake makefile 'include/config/auto.conf'. >>>>> Error: kernelrelease not valid - run 'make prepare' to update it >>> make[1]: Target 'prepare' not remade because of errors. >>> make: *** [Makefile:215: __sub-make] Error 2 >>> make: Target 'prepare' not remade because of errors. >> >> Yes, I have noticed this one and a few other ('static') make targets that >> should not need a .config file. I have a note to myself to ask about these, >> so thanks for bringing it up. > > > I think it is unrelated. > > > > The 0-day bot has already shown the real reason > of the error: > > clang --target=riscv64-linux-gnu -no-integrated-as > --prefix=riscv64-linux-gnu- -Werror=unknown-warning-option: unknown > assembler invoked > scripts/Kconfig.include:50: Sorry, this assembler is not supported. > > > > > This happens when the proper toolchains are not found. > > That is, make.cross passed CROSS_COMPILE=riscv64-linux-gnu- > to the make command line, but riscv64-linux-gnu binutils > are not installed on the system. > > > > Without installing binutils-riscv64-linux-gnu, > I can see a similar error log. Hi, Thanks for the detailed info. I get it. -- ~Randy