Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2281654pxb; Fri, 5 Feb 2021 13:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRhyJ7ZS2sBVcG+CRB0SZ0O3Ceka5ReoB6cOwBXlrYRt07BAbAqCTP4kYeGZbefDUJoDya X-Received: by 2002:a17:907:2088:: with SMTP id pv8mr5769645ejb.131.1612561424029; Fri, 05 Feb 2021 13:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612561424; cv=none; d=google.com; s=arc-20160816; b=Ev2CpmbDYGvcLQsdPNKbdm4sRj+Cq2aq/+9Ive7uhH/+OrDIsOrkGDZLR6y+iMTcQ7 85RmRs2enVJA9QF+It7JF/1Wv3gsxJ9c2qhbd7h6EdJs6ftYFxHual5KVN5ZL0Cxturg M3eD19u0YsPniVWp29ED0bs55LWbfft78AqFvLxnD3RfUlhLhOqVg4TWeWOKdyZujtNU 2seNyZ/utekYJP7fqAP8pGStgYgo8eFP86EoE+88biEjI9njqKycl9AiDtjodWGBlWId GErQW9T+Iruo9nn9bVPqRKVZjtyDUB7PAQpS25jnPS6mOAiP6XCJCguF+NsEUZC9mU1V DrzA== 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:in-reply-to :references:mime-version:dkim-signature; bh=HZYn5Ce+L0yx8LnAN5tmPGD2JqoQJUOBT07GkqQWBng=; b=Zf2Qg/OkkQ8KNL7r5OOulCVMbKk7eVTQQmj0RPffMivGuPIB8rzZ/dhUovQIgycQ53 ADOnvpznMtaYWzsAKtidxz06ITyDa2gjYfsK5hr/iMQNY8S/KmJVaW0d1mvaMWi4Leyx xcfjZ9Z5Hifa7abKIln6z1XO9biV/IF9DddXZBdXdSHI6sV82K2VzZxD5UiVKt69wn4G 1hU7MqWc9NQvrijT6es3fdSusBgDgPSc+5trZV4k/3ZMxgQ/tFEGFdpnWgPaYtyxBFm0 NmOZ5GfQ/TYFK9Bop9ujGwCGOjfe+N4pZ5Q8c8+wvCo7Dop6849VOmshT8W5Dh2BMYvg PDcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MK6YRXtY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si5459446ejg.422.2021.02.05.13.43.19; Fri, 05 Feb 2021 13:43:44 -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=@google.com header.s=20161025 header.b=MK6YRXtY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229608AbhBEVmG (ORCPT + 99 others); Fri, 5 Feb 2021 16:42:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbhBEVlA (ORCPT ); Fri, 5 Feb 2021 16:41:00 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1576DC06174A for ; Fri, 5 Feb 2021 13:40:20 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id h7so11944036lfc.6 for ; Fri, 05 Feb 2021 13:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HZYn5Ce+L0yx8LnAN5tmPGD2JqoQJUOBT07GkqQWBng=; b=MK6YRXtYAchkAyJlAy7ambep9El1MPm8OChMY/h3gMlXkqEQJFXa+cWdqi+VQV3fsa JFGtm4w92co/kRBkTNlHeYHmNRGRyZZLjlV426BAhsxb7dhe1W7ZaVH4+Nu+bdUH7U0X nYaCuFGCGKpcVQ5mUS/PcT5PdA5a0ul28nbQVvmT5OcM3EQJrYl+PO9W/slCPpr/MPxX RxQI4l2IU0P4n6MmUIdxWn1QexU0loIFZ/23M7LxAAshOGUkBW3+d3JcPO1fD+lFII08 +HnLb52xHtz1z0Sg4MiD7Qa7gdiwrdxK86kBTHHObCC9gF7hHO7bJELwjnraYCGBzPpG Pybw== 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:from:date :message-id:subject:to:cc; bh=HZYn5Ce+L0yx8LnAN5tmPGD2JqoQJUOBT07GkqQWBng=; b=JWgkJBm4yBVAkJhRFDEEQ/Lyx++OiOEsxsryEeY1b51m6CeBnWRWslE6vzy/Bq/qLk /7fF80cGFFWN3nC5JGrmqkLGLW+vnJgr52vWeMZMMiAX6gFcJueJifSwNPih+/CoQFSL smTTlpTEHwC6uJVykCUtIOZmCw84xYrNK7hqxGShz1tjrPecVnRyvkf6/zlyWP+6CIbU uruHDPTLHTu/+K1Vh9cjcb3hywEoq5ZhIEH2WSDusF5hTkbKl41g+NdLqc1v8nnCNK7f uBpISMKCMFDRFkS28r49a/fxe2MTRO3rlTTe7ekKPSUmWUjrsc+nEdooyG4QL6vjNTR9 e6Jw== X-Gm-Message-State: AOAM530d9Nis+5pc4YdSFFfJfeycg8UZ4i1qKjUIdLqqmikUOCm+oq9P qzrbhM5Mr4i7lEr+UHECjJ2hFRTRmL+8pmAyw3SDzw== X-Received: by 2002:ac2:5e90:: with SMTP id b16mr3431873lfq.122.1612561218365; Fri, 05 Feb 2021 13:40:18 -0800 (PST) MIME-Version: 1.0 References: <20210205211010.2764627-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 5 Feb 2021 13:40:05 -0800 Message-ID: Subject: Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type To: Sedat Dilek Cc: Andrii Nakryiko , arnaldo.melo@gmail.com, berrange@redhat.com, bpf , cavok@debian.org, dwarves@vger.kernel.org, jengelh@inai.de, Jiri Olsa , LKML , Mark Wielaard , Ondrej Mosnacek , paul@paul-moore.com, Tom Stellard , Yonghong Song , zzam@gentoo.org 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 1:17 PM Sedat Dilek wrote: > > On Fri, Feb 5, 2021 at 10:10 PM Nick Desaulniers > 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. > > > > Yes, I observe this error, too. > > > > https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781 > > > > via v9 of my DWARF v5 series, which should help make this easier to > > reproduce: > > https://lore.kernel.org/lkml/CA+icZUW3sg_PkbmKSFMs6EqwQV7=hvKuAgZSsbg=Qr6gTs7RbQ@mail.gmail.com/T/#m45ec7e6df4c4b5e9da034b95d7dfc8e2a0c81dac > > Thanks Nick for confirming the error. > > Ah, I see you passed: > > make LLVM=1 LLVM_IAS=1 ... > > Can you by chance try with KCFLAGS="-fbinutils-version=2.35"? $ PATH=/path/to/tot/pahole/build:$PATH make LLVM=1 LLVM_IAS=1 -j72 KCFLAGS="-fbinutils-version=2.35" ... BTF .btf.vmlinux.bin.o [12919] INT DW_ATE_unsigned_1 Error emitting BTF type Encountered error while encoding BTF. ... LD vmlinux BTFIDS vmlinux FAILED: load BTF from vmlinux: Invalid argument -- Thanks, ~Nick Desaulniers