Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2321560pxb; Fri, 5 Feb 2021 15:04:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg3CV58V0fI8EaGkDqxNuxaAkyzh02GBpUGaL4eENLIyRCjGFxxqM0/p2S0fRRhD0Pp2aD X-Received: by 2002:a05:6402:17a6:: with SMTP id j6mr5964762edy.305.1612566247037; Fri, 05 Feb 2021 15:04:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612566247; cv=none; d=google.com; s=arc-20160816; b=IDfbLn0nKBmSk1lCK/cXdZJsulv35kVygtZEK/QXNF18zY8AGqmdo1phaSBRwP0U66 Q06pat9QA0N09vTWPzoCo/99fRU7OQNSWOjSKbFyZqxB4MSQF+h7bcovWSFYIgOL3Kwr RvWQ/jQlAXes29QVsW4fdOsLJzolOBtx8XDeODbLWtjHFPCRPNg1ufn5pcw6ndDWNi65 4Bsgk9e8C7CPNTR+KcWswOBLBHNQTWsYIsv+7FxoKiANtbM7rfMg4y8MmMj+q1Qh6fuJ IaxXNVDqm67XOzjReG+cReSKnxAz05nJmQvTYCabzUdF4S9yEl+vOfoOJNwhc5LnBh38 kJ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WdhpQpWAabCxNCIPxug85QuPkWiVwlr6AOJ2T24cvRk=; b=W1YDGlpqvA9v8NrZg1FlLgbIw7bPg43+3e9k96JpPySN4e+t2A0XLlXPUXX28y6ALb enuawY/1WwW9SdCQrlWrFrbyWjM+uxMfzUATNoekA/Z1UjGWjSk/uzX66UO4mmkqbU1X Gi9AQl7h2ml2tjOfguu7RlRbRs9U5IdpflEgOTHk4+eWw7YC4GB5Ox3iktT0wj54kox/ FrjfDun69fWw9NNuCZAjmh5Xz7b3ZB4M4Ul0s6y+k1idfsNYXZDR8nv6JblvSPMAWL3n hDAX+ofVr5i1T+oUKBZSzstP8vkrhwULg9+OnC88TjEY9aqN8/zit00lXGj0d0eYbcVt TLkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mlIPQhSm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si5928010edq.451.2021.02.05.15.03.42; Fri, 05 Feb 2021 15:04:07 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=mlIPQhSm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232268AbhBEXB0 (ORCPT + 99 others); Fri, 5 Feb 2021 18:01:26 -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: linux-kernel@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