Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1393263rwe; Thu, 1 Sep 2022 18:28:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR74BygLCJsjNP0ZvacUzEv7gr27+hnT/mzGumOQJQJNk+XQMx/hasKis2kD15Lb8Y478wbF X-Received: by 2002:a17:907:7f21:b0:73d:6b7b:3e0 with SMTP id qf33-20020a1709077f2100b0073d6b7b03e0mr24625398ejc.680.1662082109765; Thu, 01 Sep 2022 18:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662082109; cv=none; d=google.com; s=arc-20160816; b=glTkxsNtAFV0K1lkW+Gded1T3Snp8VnVUqe2lethESpSg2oLgFIlfB8ys2rnA1rmTj ECc3X3/O7iieGM+tXINsHg16jRp1WAIiCAn+RZMLWERoUOjvbnudf0rYpoqKPaIQlN3/ NF2F15e/PWqPeuKEpaOdwjBk0JNkwON/fXAdRsXxGoKMcW0+cfcCW6jwO4/5VwVItRqh 0wRS+uuIcdrlJGBCHOZCDpZvWOxGEJKTBcR2cEVx/VNyn5zZFveAXoRXK3FpnM+Emo2N 6c6swnaoaC70w8rexprVIqd4/l7Y0U1rxwfmFcB/myQPMTLwH2mTIb+UFOjdinhxfxt/ Xyuw== 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=wldb4YRSAIIjnL+ABXXHVxH3sumU8oAsW2KfzyYJKKw=; b=1HZWukrVu7/OK5VBP/p+ArscC28BeYqYFBFESORnS/478xqfzAl8XC0NHOel0cNNLJ az03nvfeXzgB3SRSLFGmSD97ljcA5QtZ8PAo9td3MEm0PZ+nmkoQ1GRBBcxj4XZQQJVG l3AvmOQShQQf9gpAw56nI8sD54xoVmcdteAO3JPRCvKZDTbvh5ITVJbfZVC+kt/doT2q iRUeQPOO/Nxycqd/w5ACxQmLqTWfNNxD7L6jYFCEz4mkTEnCnVqKS6zTkuLVf7tv5F5Q eFaXYC1QsaWSdqd6XHWt7Wqd/GR6j0uSmCthrjnCWBgoMgKOL9klT73VvRrHr4b+0s3L +OjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GFfToSkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga18-20020a1709070c1200b00734bfaa41b2si704144ejc.69.2022.09.01.18.28.04; Thu, 01 Sep 2022 18:28:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GFfToSkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234495AbiIBAyc (ORCPT + 99 others); Thu, 1 Sep 2022 20:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232705AbiIBAyb (ORCPT ); Thu, 1 Sep 2022 20:54:31 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07B2583BCD for ; Thu, 1 Sep 2022 17:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662080070; x=1693616070; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=L3mRRBK1ngAjAxHn3yh88wqZwNaBV7sRHz6khPlLV7w=; b=GFfToSkhAhrqM5XgTygrbHE5+bh5w+gJ1CzHcIUDmCiAgLBAif/SnkC9 8n5stv4ZIs6ubF2Si6v1jwMC8uVGXjtqMXq0kk/5B42VKtSS+/62Ls3xZ Qubucn2BSGAKpRtbpSEi/V9JEsf1xi+GvJZv6YBvMd2/dG9yQGoSz0sWb 8H/9gBAbHBbx4/6t02NxF11v7Kn1OJNpWt2PccAbWG0OkdQPqSHHwSzLJ 7C9lUgU9GlGRw/B9Myjw93tR72NSwJ1AiubMLIzWgotPkkBYHDg9ewx3k I/c3VZZbnNmbHoPP8xnDYj+aBAxcV5WjPtrDaTC4V2r12zA5DBLvGhWAI w==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="296646885" X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="296646885" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 17:54:19 -0700 X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="642650565" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.254.211.18]) ([10.254.211.18]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 17:54:16 -0700 Subject: Re: [kbuild-all] Re: powerpc-linux-objdump: Warning: Unrecognized form: 0x23 To: Nick Desaulniers , Nathan Chancellor Cc: Christophe Leroy , kernel test robot , Kees Cook , "llvm@lists.linux.dev" , "kbuild-all@lists.01.org" , "linux-kernel@vger.kernel.org" , Arnd Bergmann , Masahiro Yamada , Andrew Morton , Linux Memory Management List References: <202208311414.4OPuYS9K-lkp@intel.com> <8d2c3aef-aa4f-1f4d-dc89-622554ffda31@intel.com> <9d77cb93-2eff-d87d-6554-1636d5e7d5ec@csgroup.eu> <0acfb209-a792-a47b-0261-9fb29824e4b9@intel.com> From: "Chen, Rong A" Message-ID: <4c6da74c-4dc1-796c-5f22-bdd075b23c2b@intel.com> Date: Fri, 2 Sep 2022 08:54:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 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: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/2/2022 1:04 AM, Nick Desaulniers wrote: > On Thu, Sep 1, 2022 at 9:55 AM Nathan Chancellor wrote: >> >> On Thu, Sep 01, 2022 at 01:52:42PM +0800, Chen, Rong A wrote: >>> >>> >>> On 9/1/2022 1:45 PM, Christophe Leroy wrote: >>>> >>>> >>>> Le 01/09/2022 à 06:59, Chen, Rong A a écrit : >>>>> >>>>> >>>>> On 9/1/2022 10:03 AM, Nathan Chancellor wrote: >>>>>> Hi Rong, >>>>>> >>>>>> On Thu, Sep 01, 2022 at 09:15:58AM +0800, Chen, Rong A wrote: >>>>>>> >>>>>>> >>>>>>> On 8/31/2022 11:40 PM, Nathan Chancellor wrote: >>>>>>>> On Wed, Aug 31, 2022 at 02:52:36PM +0800, kernel test robot wrote: >>>>>>>>> tree: >>>>>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >>>>>>>>> master >>>>>>>>> head: dcf8e5633e2e69ad60b730ab5905608b756a032f >>>>>>>>> commit: f9b3cd24578401e7a392974b3353277286e49cee Kconfig.debug: >>>>>>>>> make DEBUG_INFO selectable from a choice >>>>>>>>> date: 5 months ago >>>>>>>>> config: powerpc-buildonly-randconfig-r003-20220830 >>>>>>>>> (https://download.01.org/0day-ci/archive/20220831/202208311414.4OPuYS9K-lkp@intel.com/config) >>>>>>>>> compiler: clang version 16.0.0 >>>>>>>>> (https://github.com/llvm/llvm-project >>>>>>>>> c7df82e4693c19e3fd2e25c83eb04d9deb7b7b59) >>>>>>>>> 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 >>>>>>>>> # install powerpc cross compiling tool for clang build >>>>>>>>> # apt-get install binutils-powerpc-linux-gnu >>>>>>>>> # >>>>>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9b3cd24578401e7a392974b3353277286e49cee >>>>>>>>> git remote add linus >>>>>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >>>>>>>>> git fetch --no-tags linus master >>>>>>>>> git checkout f9b3cd24578401e7a392974b3353277286e49cee >>>>>>>>> # save the config file >>>>>>>>> mkdir build_dir && cp config build_dir/.config >>>>>>>>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang >>>>>>>>> make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash >>>>>>>>> >>>>>>>>> If you fix the issue, kindly add following tag where applicable >>>>>>>>> Reported-by: kernel test robot >>>>>>>>> >>>>>>>>> All warnings (new ones prefixed by >>): >>>>>>>>> >>>>>>>>>>> powerpc-linux-objdump: Warning: Unrecognized form: 0x23 >>>>>>>> >>>>>>>> Given this is clang 16.0.0 with >>>>>>>> CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y, which uses DWARF5 by >>>>>>>> default instead of DWARF4, it looks like older binutils not >>>>>>>> understanding DWARF5. What version of binutils is being used by the >>>>>>>> bot? >>>>>>> >>>>>>> Hi Nathan, >>>>>>> >>>>>>> We're using binutils v2.38.90.20220713-2 >>>>>>> >>>>>>> ||/ Name Version Architecture Description >>>>>>> +++-==============-==================-============-========================================== >>>>>>> ii binutils 2.38.90.20220713-2 amd64 GNU assembler, >>>>>>> linker and binary utilities >>>>>> >>>>>> Thanks for chiming in! This looks like the output of 'dpkg -l', right? I >>>>> >>>>> Hi Nathan, >>>>> >>>>> oh, yes, I misunderstood, it's not related to this package. >>>>> >>>>>> noticed on second glance that the tuple for the objdump warning above is >>>>>> 'powerpc-linux-', which leads me to believe that a kernel.org toolchain >>>>>> (or a self compiled one) is being used. I would expect the tuple to be >>>>>> 'powerpc-linux-gnu-' if Debian's package was being used. Is that >>>>>> possible? >>>>> >>>>> you are right, we used a self-compiled toolchain, we'll try the binutils >>>>> from debian package. >>>> >>>> Can you first tell us the version you are using ? >>>> >>>> powerpc-linux-objdump -v >>>> >>>> That will tell you the version. >>> >>> Hi Christophe, >>> >>> the version is v2.38: >>> >>> $ ./powerpc-linux-objdump -v >>> GNU objdump (GNU Binutils) 2.38 >>> Copyright (C) 2022 Free Software Foundation, Inc. >>> This program is free software; you may redistribute it under the terms of >>> the GNU General Public License version 3 or (at your option) any later >>> version. >>> This program has absolutely no warranty. >> >> Thanks! I did some research and it seems like this warning is expected >> with binutils older than 2.39. The warning appears to come from >> read_and_display_attr_value() in binutils/dwarf.c. 0x22 and 0x23 are >> DW_FORM_loclistx and DW_FORM_rnglistx, which were only recently >> supported in that function. >> >> https://sourceware.org/bugzilla/show_bug.cgi?id=28981 >> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=19c26da69d68d5d863f37c06ad73ab6292d02ffa >> >> That change shipped in binutils 2.39. I am not really sure how we should >> work around this in the kernel, other than maybe requiring binutils >> 2.39+ for CONFIG_DEBUG_INFO_DWARF5. Unfortunately, that will not fix >> CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT when DWARF5 is the default >> version... > > I've been working on a series that will encode the default implicit > dwarf version based on compiler version check. Maybe that can be > extended/reused here once that lands? > https://lore.kernel.org/llvm/20220831184408.2778264-1-ndesaulniers@google.com/ > Series needs revision, but it's on the right track. > >> Alternatively, switching to llvm-objdump for clang builds >> would help :) I am not aware of any issues that would affect that switch >> for PowerPC: >> >> https://github.com/ClangBuiltLinux/linux/labels/%5BTOOL%5D%20llvm-objdump > > Oh, is 0day doing `make CC=clang` rather than `make LLVM=1`? Rong, > any chance we get 0day folks to test LLVM=1 for more architectures? > Ideally we'd test both, preferably LLVM=1 if we had to choose. Hi Nick, Thanks for your advice, yes, we are doing `make CC=clang`, we'll plan it recently. Best Regards, Rong Chen > >> >> Cheers, >> Nathan > > >