Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp960756pxb; Fri, 13 Aug 2021 10:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaqlWoI2PtrChoaOEMMoFLnJ1JjH8uuElZw7+c5vXSvKFMILRt/mMi8ZsBx0kIBrIfJHcQ X-Received: by 2002:a92:d9c2:: with SMTP id n2mr2407419ilq.214.1628874372551; Fri, 13 Aug 2021 10:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874372; cv=none; d=google.com; s=arc-20160816; b=yxnTEmW2TA98fJhd2en1WOElJsGF41siPj0C/LYpz+ScJBpthxjfC5TSv6YKOEsLL6 CEAVOMqdkHTkAUKDNjhptSFnI0U7XYvvnHA+v9xy2AMCerzW3/IgFix7fJ6ZYlwnqGad UrMwdAnfFT+cuA+5meWOj5zQgHgym/ipQ+5wxklPzLzWJXHUHuhDsDnf3P8w90zCr9Fv HrAOTv/SrapzEk77G1QyJ26X9tzErEsdgXT1Cs7xedQB4HqScbWjYH605C17K1fgyXVk 5PBm+P5rvTAFwmjeOWNdIBdBo20l7u8BAA2ZSXOWKq/bfeH1xmRpjQDqtCke3InAV0qj TjNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=p67Ofyq4VTWuxUbSULjdsrUDt9m7Z7Au2Rp1QiwAyI8=; b=rTIC7lcZde64qTb7M94UwQwnsPQMyLokKpyVQIzI55d8t9yDLT7SInB0412i5+y1TZ vH5/FjBaRJLIIPUkNUCJyi/w5trXad1ysDElboUcEPcEi3Gwz6amWg+miTTXDFAa4udW yzpo9sAtrSYOq6RhWmz/s1oUHdOevPuzWK69VBzGhrO18IJSpCvIkof0w5uLOOtFPG0k iGR0aBfKm0yAryvXcIZ8eC/kpool5tk6ioFXUqDBkNrEG7g5eSKWkTNWhNdSsuOqA8dn +kR0kptQvTAaGgglbOROrpsvRIbfuwRK1a2hPiiLwdGU3J1CsBNJ1jtTys28JIlADAyb dfeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=3yXkaLZv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si1964038iow.12.2021.08.13.10.06.01; Fri, 13 Aug 2021 10:06:12 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=3yXkaLZv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243073AbhHMPWT (ORCPT + 99 others); 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