Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2142291pxb; Fri, 5 Feb 2021 09:54:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmA7Ebw+W4ae0+zwff9LpTBY+dEXYyEGO4/Xq1Yxo2qKXEEi5mzbCjBVjBmr5l5qFEl25h X-Received: by 2002:a17:906:40d2:: with SMTP id a18mr5254757ejk.82.1612547696647; Fri, 05 Feb 2021 09:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612547696; cv=none; d=google.com; s=arc-20160816; b=doWSMlz/9JN4nqh+rx4AlaDbhX4Gk8rIKXJ/E3Ami3B6lm6dGAP+2cwd6r+9M4Xi9l oYvMiBqrAKrfDPq91A4Cc++VKXnqaFD7CfY+lNFJvKcSsIrt9IPT+8nSJxWr/m6zNEAy kzSwFmzSWCkvKTUZpmQK1U8+lbotDgQ9f/d7tkzU3Or7o5wYwD0aLjerxKQ/x7bir0su s/c5clhajTeX2JWsAMDLqA13o6efDZbXnfU+Ai3htyky7PGvyfHSKD3Va8zEH+jnn5Xp nqWKWuXjiz7hx/IY8Uuzb08OtAYp2Vqr/T2lzBplu9svrNknvrVTfvibR+/QAtV+wbSS IjEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=Nzg2Y6oVl+tLUz3k5gFodM3ChMzuciBTFCA8xI93+E4=; b=sfeGhusaxvw0vkj4HBDCc3J3RUUaW6RGl5slzP4ZJJBuSHfi6Y2jtdBlzARPSr2PbR RmtMfDjU+RakTA5dWbpTNOfQomSrySXRrqa5xREj5uudhDwH3fbHpCLleY2hn60cBFBh ak+RTEyKIJw7k3ozjF7WqhyUDsa/03ThVMCfGk0MRW7VOv9yccQkO2ZHG3fEet+4WXBV moyd3rgClYVQnOJ4Nv7bjFKhyx5mE93o5+BKF9Q+hOosL9rxH5AUsX213g9VUTQ5hwvG c6Oiz074j0BUnLsURZMVDZNcfHaYVawCt9V3VrCdKKFR8N7fJRCXxLoIu8Fzd3kfrBwc DRYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mzh3bA4P; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si4634905ejn.226.2021.02.05.09.54.31; Fri, 05 Feb 2021 09:54:56 -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=@gmail.com header.s=20161025 header.b=mzh3bA4P; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233436AbhBEQLO (ORCPT + 99 others); Fri, 5 Feb 2021 11:11:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232226AbhBEQGc (ORCPT ); Fri, 5 Feb 2021 11:06:32 -0500 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8105C06178A; Fri, 5 Feb 2021 09:48:14 -0800 (PST) Received: by mail-il1-x12b.google.com with SMTP id a16so6574787ilq.5; Fri, 05 Feb 2021 09:48:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=Nzg2Y6oVl+tLUz3k5gFodM3ChMzuciBTFCA8xI93+E4=; b=mzh3bA4P1GVt2poO+pGX1uSo08aLxLImENFo2eSBX4r53MeU/8TValwGQTeFEgDtU7 lKHDmzQxxcByjhX2sqUModDOkxjFskCKrRHDVW2JxmsZJ6e46wTYssM2hUibPy3D575B +jiGZSpMJopbVXsVGES4zUpKbTO120TxkYuoCr1N+71+l1IoBgUEYm9J0MAvHIb3xQYN U02XCrB+fqb8iKbZUeZlydA5JBo6bn2lTQbFCFqBghzYs0XSkzuag28jmlcAFPL7pJBs A1emkUP1XvbD0fvgbbf4yBI0E9pfs/zBPtHcjpiQvb6DuSgFfLhXIIDmOpVzHTvXxBxz hfKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=Nzg2Y6oVl+tLUz3k5gFodM3ChMzuciBTFCA8xI93+E4=; b=BB36qj54RZFrwS2IObITEL9B3w8Kn+NRdUCNvQ8ph2yExjztrRUlijrASxDee0ESNE xKHAV26hSKhs5avat208HdfIPBROq6W9+/jIZhDTpNYaI5YAhCuh4dvOIz7d1PwR/x4R 87/D8Z3CdKPDp4CiiF26apYY83/jiJboBp5c33c9cq8wHkOagQ/IDbzpYXpVB8Syy7q4 DPTT5/o2m9j2QgON7Bau/rdSjRQQexEDY5kel6biKUSR/PY61ZxHcmsxKpkH4vfkWSDb SxMaFWPJxdy4EiXYwkY9qRG8BQpEUEspheokaO+jTxFavRkJGfSPju6F1VDSo0u+8cmF UP4A== X-Gm-Message-State: AOAM533soWQgcbQnSbmdvH/BOt+eCHxD7I0CCaGriEEhAfuq+y20khvS nE0YaMv5+DwLd6Wr+wvTLAHIp+zIawZUgMdX8J4= X-Received: by 2002:a92:58ce:: with SMTP id z75mr5018753ilf.209.1612547294004; Fri, 05 Feb 2021 09:48:14 -0800 (PST) MIME-Version: 1.0 References: <20210204220741.GA920417@kernel.org> <20210205152823.GD920417@kernel.org> In-Reply-To: <20210205152823.GD920417@kernel.org> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 5 Feb 2021 18:48:02 +0100 Message-ID: Subject: Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type To: Arnaldo Carvalho de Melo Cc: 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 , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Tom Stellard Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 5, 2021 at 4:28 PM Arnaldo Carvalho de Melo wrote: > > 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? > Still building... Can you give me a hand on what has to be changed in dwarves/pahole? I guess switching from ld.bfd to ld.lld will show the same ERROR. - Sedat -