Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2345604pxb; Fri, 5 Feb 2021 15:53:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp27YkhxsV6cAHImulreIIlTEwCzTYclJ70AofgpnsRPwba2y6tdWMwgg3qWrqon7UVmL4 X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr6097359ejc.197.1612569236745; Fri, 05 Feb 2021 15:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612569236; cv=none; d=google.com; s=arc-20160816; b=zbAH59wPHkE7KTM6VZddek5FxlVw2MZtTQlsQ9X4em5jbL3ldtmeCd4GbT2L8O/Th+ 06HnO2Ay3CVS3o/p2+NbbtQyzmw1m2jFsCDSALMEPH19H7mdJdVU05nPd0wDaXD7sNrd gBAumYRjGd0V1JmIekFcPSX6CLMaPz28yiJTZVFd+k2qJwbdQ5+VEHFJBZndlLtHAzXv r3xUs+vAGttyPlGoxBxyVFrU//vnxqOocQbhnE0fCPqSqP8BLHkaOJU6vUtE41Wnn5yE TT0rKWrxrLRem4MVKx1/9105K2VMRvH8QLDqYpSdSAli31BfBgy78P3qdLTse/KpkauE bbng== 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=kiM8WMFjST9dsy9zDah68/XyOF2KBPOv5W+GYkbdeSU=; b=fBDg9WyvoJ82BZA0188jfHsuBg5KhgIM6ss35CZMKPQsC4/yk4ypXDL/sIw0t2j68V DT9EGc8m3hu9Ka21zvhcD75qX59JwBtVAFM3SQaaIC1yQGpvx/1ILJbeUSmcOmABj8UM JeIw4J+5iPdHm96JFUMlTKWjujKR3O+2p4cYM7PUZhotpqC2R5+xcvfj0f89VElNp1XM y/CqBdQzygVENSTaWLKabh34o0He6sV+CG10H6mu/2M++5esp88TvPhXMwmqXcK0O92F gSJXotJRlhqGcmhtbIoIqgfyo0vAVbwF+btvt9+F01EEwn3MZ1aKGUy6eBSAnfL7ii9x H2Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZhDvtHxZ; 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 t15si6120290ejj.506.2021.02.05.15.53.32; Fri, 05 Feb 2021 15:53: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=ZhDvtHxZ; 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 S229500AbhBEXwr (ORCPT + 99 others); Fri, 5 Feb 2021 18:52:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232207AbhBEOOq (ORCPT ); Fri, 5 Feb 2021 09:14:46 -0500 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA74C061A2A; Fri, 5 Feb 2021 07:50:49 -0800 (PST) Received: by mail-il1-x131.google.com with SMTP id p15so6191118ilq.8; Fri, 05 Feb 2021 07:50:49 -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=kiM8WMFjST9dsy9zDah68/XyOF2KBPOv5W+GYkbdeSU=; b=ZhDvtHxZgtHTeY5fyZvbph2aXejeBONUjk0laSyWHs/QDFG5LJ9yIUTaOXQcYVmy1/ WS2CJ0uUMJMdBwp2t4lWN2kSj7CHRJYMY0sCM23/kj5OZH6cDxo7YmwkWXjiK02SLu0Z JVwInYdwgJmkye65iGmTfoKn4kplizy4wl5YdYgk0LAsSJbI2La/jY2qjYlo8UZcKqVl Xz2SWjCKHDly+bUkdmUAx7IrxoQw4Yf1lMf1tRarksR+aM9oWtJFFNMumodtfZXEWP2S JUKXCicBRJQOYYWT0+MBQ7+X1QkKoZihCQ3tRVs212ww4K5xzs+SsxWedJpwe70fOl2q smQQ== 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=kiM8WMFjST9dsy9zDah68/XyOF2KBPOv5W+GYkbdeSU=; b=dR2SwLukGrJS3jjm7A3niy3higIPOv5dRpigFJTzRqWylgLjjZU2awnX0SaP2jlD1I FhznNpVeHuYn4xKafYKbC85LzLDQjUqcHzT8BVRPEHkP33XAYb+ut+vO+Ep7uM1zjNPI j/dfCixLQygnXDvAlUUw4OdqzOfMKD2OOQXvxsFJ1YDHS+3qmjaG0zBr3G/vx/HAav3P dpET5wRoULyaMcBKfP4QAwffJBq23DitHMzLR54tbvEvRNH0nbHif5GuQ37zEp/pj8zN t+Hb/wP+l4KSKCAw46GgHfyaWuCJ2QVYDW6X5WlSz44SX+Omn6q96EQ8w/LG98QROFig 2AdA== X-Gm-Message-State: AOAM5322IBGtzyH++M+Ag16BaMe5pTjIX1GUJSUr3MrSOo/ZLlDMlup8 6QvcF5FZziLZBWhHg+jNH8wpMY+KLLZOI429YA+VJHYCfHTXGYcS X-Received: by 2002:a92:ce46:: with SMTP id a6mr4531229ilr.10.1612538650788; Fri, 05 Feb 2021 07:24:10 -0800 (PST) MIME-Version: 1.0 References: <20210204220741.GA920417@kernel.org> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 5 Feb 2021 16:23:59 +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 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. - Sedat -