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=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 7297DC433E6 for ; Fri, 5 Feb 2021 22:14:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34D6764FDD for ; Fri, 5 Feb 2021 22:14:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231732AbhBEWNt (ORCPT ); Fri, 5 Feb 2021 17:13:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:42864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232776AbhBEOiU (ORCPT ); Fri, 5 Feb 2021 09:38:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D0758650E8; Fri, 5 Feb 2021 15:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612538906; bh=E2Jw4BshaPLVJ9wPxfC66/Uv6q2P/5ZX+rAXq/iyIPQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mlIPQhSmL4+gt4AYq78Tojxk5QM5rSKspqgbgKPkoDZJu2lW542q7KKUMwlICfYqM LpDcBrqqm5RA1rybwKa6To2pnBo3Fkiq7XC0YkJtR68uVT49Tk5ZrgCWdwEyzRozOs EC0NwgnB+QXXL3cWQPUXtgtoK9QTtP84KoOYgEkgcn22Jn2czLr2crqAcj+Uq4Rr79 R33unnJlVvV4CK9d5oALSpCObo8lF1u+ucMGv8Znarg7/5GoY+4U4PEKPcm2Jl+QbJ 6j+5yJkLKzIX+ITn/psNu1zkaTNTj094yF9Gm+cHLfjm7oc53GmM9oDNrhcIG3pBsL VDmzl339xxFyw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 63EDC40513; Fri, 5 Feb 2021 12:28:23 -0300 (-03) Date: Fri, 5 Feb 2021 12:28:23 -0300 From: Arnaldo Carvalho de Melo To: Sedat Dilek Cc: Arnaldo Carvalho de Melo , dwarves@vger.kernel.org, Linux Kernel Mailing List , bpf@vger.kernel.org, Jiri Olsa , Jan Engelhardt , Domenico Andreoli , Matthias Schwarzott , Andrii Nakryiko , Yonghong Song , Mark Wieelard , Paul Moore , Ondrej Mosnacek , Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= , Tom Stellard Subject: Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type Message-ID: <20210205152823.GD920417@kernel.org> References: <20210204220741.GA920417@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: dwarves@vger.kernel.org Em Fri, Feb 05, 2021 at 04:23:59PM +0100, Sedat Dilek escreveu: > On Fri, Feb 5, 2021 at 3:41 PM Sedat Dilek wrote: > > > > On Fri, Feb 5, 2021 at 3:37 PM Sedat Dilek wrote: > > > > > > Hi, > > > > > > when building with pahole v1.20 and binutils v2.35.2 plus Clang > > > v12.0.0-rc1 and DWARF-v5 I see: > > > ... > > > + info BTF .btf.vmlinux.bin.o > > > + [ != silent_ ] > > > + printf %-7s %s\n BTF .btf.vmlinux.bin.o > > > BTF .btf.vmlinux.bin.o > > > + LLVM_OBJCOPY=/opt/binutils/bin/objcopy /opt/pahole/bin/pahole -J > > > .tmp_vmlinux.btf > > > [115] INT DW_ATE_unsigned_1 Error emitting BTF type > > > Encountered error while encoding BTF. > > > > Grepping the pahole sources: > > > > $ git grep DW_ATE > > dwarf_loader.c: bt->is_bool = encoding == DW_ATE_boolean; > > dwarf_loader.c: bt->is_signed = encoding == DW_ATE_signed; > > > > Missing DW_ATE_unsigned encoding? > > > > Checked the LLVM sources: > > clang/lib/CodeGen/CGDebugInfo.cpp: Encoding = > llvm::dwarf::DW_ATE_unsigned_char; > clang/lib/CodeGen/CGDebugInfo.cpp: Encoding = llvm::dwarf::DW_ATE_unsigned; > clang/lib/CodeGen/CGDebugInfo.cpp: Encoding = > llvm::dwarf::DW_ATE_unsigned_fixed; > clang/lib/CodeGen/CGDebugInfo.cpp: > ? llvm::dwarf::DW_ATE_unsigned > ... > lld/test/wasm/debuginfo.test:CHECK-NEXT: DW_AT_encoding > (DW_ATE_unsigned) > > So, I will switch from GNU ld.bfd v2.35.2 to LLD-12. Thanks for the research, probably your conclusion is correct, can you go the next step and add that part and check if the end result is the expected one? - Arnaldo