Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1017067rwe; Thu, 1 Sep 2022 11:04:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR51C1HcT4GDo5EjfRJ1h2f1QEPgpQ+NMVDpzWeIFmMwZv7KBsdLxTg8HUk2RtU8DM3fBOGL X-Received: by 2002:a17:902:eb88:b0:174:eef6:667d with SMTP id q8-20020a170902eb8800b00174eef6667dmr16500255plg.26.1662055474056; Thu, 01 Sep 2022 11:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662055474; cv=none; d=google.com; s=arc-20160816; b=LJl5CetMD4/m4f5LR/Rl9oVXpc+or++9etplsLhtdf/qT0AuMQkNn9R8/zQasJhPk4 eceRvzeaiuqAIxGjHWOV3fPiDBfw9jt3w5l95c1mB75MUlJpGLFUgqpbNiWVsAS+kNQs e85lNrymdpvKbo1mjbBvCf2SjJdkOsPctI3x5t9DBzuqM9q2XkrgP8dR5o/QktzgE+ia DYqnEWTrZV9rUWMSutiBbCg3KKzUb7XKlEn9cuWouStw+jmL3ibRINOGx5SgSuKBZoW6 qpd8rGXfQLXjc7dVvJ0VNJB4NVjsXshwJl/2wif3jVvsFEDYd4g+4LjC3XQlTPDg5HY9 eJsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oGngrFzLbPHH3qcpX426xQbz2Zq5fLl9uof+AvmzULw=; b=w18/5fontrLYEEXBxb/LOk8VcQxu1/iQ5r8B38op1tGTxOH2mqgLVUM8pIgdmG4mXm OphgmZqf3GwQG++vWMznXXsDNH7IMKAqY/ZFv8vgyhMxRU6czvuH97ElaUfGWoh5mW0F 8ugeYAWUsHp7qLJwZvl3NXE7l+PIISZ5OILRpstFssPh3Uq2bGoPurqBvE/7JSUcpSif cylAPeFKWisA/sGQSKxm9+cQxuY/pyeIwF7jRC7cuvinFUREvoSv85P+B5TY+w4WW3BH j9vme+5z1+XfO5fsFPNfywKBDC6ob8eICnN08q9dwq8LTRl6Ja5tJskCLUTg/XnZPkaP G6cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RzHAodZ0; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp10-20020a170902e78a00b00172ea8ff31bsi3407878plb.26.2022.09.01.11.04.22; Thu, 01 Sep 2022 11:04:34 -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=@google.com header.s=20210112 header.b=RzHAodZ0; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235129AbiIARE2 (ORCPT + 99 others); Thu, 1 Sep 2022 13:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235032AbiIARE0 (ORCPT ); Thu, 1 Sep 2022 13:04:26 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29CD8E0D8 for ; Thu, 1 Sep 2022 10:04:24 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id v16so20470697wrm.8 for ; Thu, 01 Sep 2022 10:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=oGngrFzLbPHH3qcpX426xQbz2Zq5fLl9uof+AvmzULw=; b=RzHAodZ0KfK4XEA7ycAzg2OlZ3uB8sINMqOxRB20LZG514UOiQRaz3XhPHkloCZJ2z VbgwYvBI5LZQZ72G3Xd5SmlR8Tp/HhsvFo8YcjtdM9+vn4DjpCnX2YQl4OG2ahWVoSq1 CVoih7eM9S2sxjep1TFBqRN3wn/D551fyzgQwD/6qMNKDoEbBrhna67QTbk8EPAvoH0P ANIlsbH8gXCsShVyGBX/UHrHR/9iGoZ+N0nFxCuKdG0WQBEFIPr9GE4HCI+C+nIC6ZAN zOq42AB5kE3L0R0kheqyajp4ceCoK30E6TRAH5kuCmX3acAAoj064kAU4SuSbnyA4Tp+ 7Fug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=oGngrFzLbPHH3qcpX426xQbz2Zq5fLl9uof+AvmzULw=; b=PZU/qcivs/JJkdAA/UHci0VupRWvLxsVcS+8kYSUREOIPsFisAkg8fpNAFd7Poy84D f2cwBpD/S9bZvCstQcEYAYJwB08d4M4qLE8U+zvTNYUGmLCbg6VuxZPgF8e2qQFqQN9W oygOLAWNMmnKlQezpBzz3+y+YLo5/bCCasiGB9pzwRyqOzhDMiRroOje18YIaRDeUq3z /Pt/OyZ5y8qJXZpwF3nJQnAklfzqfKbrqEpfSCna7CcSkOEZS2+LVH7BKe2WCTsom+S1 JMpMFyZ2nQoLvbcUp7FqpGcJmmVxBP3KBxDtno/NRbZsIlSkJSazcnP15NKiEIBWQ1o7 djsw== X-Gm-Message-State: ACgBeo2+r6sxLWugPfvvFbxgmclr4JQEw48C3pgxaAOJZmwjsrz7cRRT 4CrG5xCk4RLX6GoVZBOubVJ4Z/AM0w4Yve6YmKfATA== X-Received: by 2002:a5d:4d83:0:b0:226:d08d:35c8 with SMTP id b3-20020a5d4d83000000b00226d08d35c8mr15492867wru.4.1662051863098; Thu, 01 Sep 2022 10:04:23 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Nick Desaulniers Date: Thu, 1 Sep 2022 10:04:11 -0700 Message-ID: Subject: Re: [kbuild-all] Re: powerpc-linux-objdump: Warning: Unrecognized form: 0x23 To: Nathan Chancellor Cc: "Chen, Rong A" , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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 =C3=A0 06:59, Chen, Rong A a =C3=A9crit : > > > > > > > > > > > > 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 w= rote: > > > > > > > > tree: > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/li= nux.git > > > > > > > > master > > > > > > > > head: dcf8e5633e2e69ad60b730ab5905608b756a032f > > > > > > > > commit: f9b3cd24578401e7a392974b3353277286e49cee Kconfig.de= bug: > > > > > > > > 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/202208311= 414.4OPuYS9K-lkp@intel.com/config) > > > > > > > > compiler: clang version 16.0.0 > > > > > > > > (https://github.com/llvm/llvm-project > > > > > > > > c7df82e4693c19e3fd2e25c83eb04d9deb7b7b59) > > > > > > > > reproduce (this is a W=3D1 build): > > > > > > > > wget > > > > > > > > https://raw.githubusercontent.com/intel/lkp-tests/master/sb= in/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/li= nux.git/commit/?id=3Df9b3cd24578401e7a392974b3353277286e49cee > > > > > > > > git remote add linus > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/li= nux.git > > > > > > > > git fetch --no-tags linus master > > > > > > > > git checkout f9b3cd24578401e7a392974b3353277286e= 49cee > > > > > > > > # save the config file > > > > > > > > mkdir build_dir && cp config build_dir/.config > > > > > > > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dcl= ang > > > > > > > > make.cross W=3D1 O=3Dbuild_dir ARCH=3Dpowerpc SHELL=3D/bin/= bash > > > > > > > > > > > > > > > > If you fix the issue, kindly add following tag where applic= able > > > > > > > > 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=3Dy, which uses DWA= RF5 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 > > > > > > +++-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > ii binutils 2.38.90.20220713-2 amd64 GNU assemble= r, > > > > > > linker and binary utilities > > > > > > > > > > Thanks for chiming in! This looks like the output of 'dpkg -l', r= ight? 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 a= bove is > > > > > 'powerpc-linux-', which leads me to believe that a kernel.org too= lchain > > > > > (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 bin= utils > > > > 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=3D28981 > https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D19c26da69d= 68d5d863f37c06ad73ab6292d02ffa > > 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.c= om/ 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=3Dclang` rather than `make LLVM=3D1`? Rong, any chance we get 0day folks to test LLVM=3D1 for more architectures? Ideally we'd test both, preferably LLVM=3D1 if we had to choose. > > Cheers, > Nathan --=20 Thanks, ~Nick Desaulniers