Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2283805pxb; Fri, 5 Feb 2021 13:48:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOFKIsw/U22h/qym5ICPMY+Nw2TH5nqQcwVGUTd4Fn0Gq9qYCt7WCS0RHQW3Jl+XSUWpQU X-Received: by 2002:a17:906:af6b:: with SMTP id os11mr5974971ejb.472.1612561724934; Fri, 05 Feb 2021 13:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612561724; cv=none; d=google.com; s=arc-20160816; b=0YOyGxUD6ZmOHD1M5U1QfTKzQJdX/Qefh+1WysUAhRQIYRMFLGwXCeVRm7kDX5UZPu Ggpn3Xn1xfhWryR56KLXi9vfcJPSiuDUJf5z00TWHmDxiQ2HL0U6VZ+uWXTdlCz3W0LY EZ0Qzs5lDtyZ2Fy42Z0+Y06TPtcsJoQx8oniR3Kvz2/vN8stsj8FprIIy+ji3V94oJ+Q 5iQnRV9AGQaF2Xwy2SZpjYN4efUoPvSGhFkItE7Go8SlUIPKAGV6C8OpXnmzeCiLkF3i mNta3/z1NYr7wUERhJqf1Th9vRjhxj0CLLNvHIwAEriO5Nxjb5q9ASnlpN77q1vnFcX0 s26g== 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=cUYenjmJ9cKKN2NVNXP7Wjbj+RthPpuIhOcVKNsaAsc=; b=Nd2iewd8ZHD2iM9OX3yf4woYeyuQG+9XZDyPvvwJP/wwiUayhBrC7SuNybXciJGdzu BAqjONoMMcziQzOofEt3qAks+6lULU++RprBh1KHz9/tV+eOBJKwcEM4Dh2H8FJ3dH+g BEj0sBlbhTAOS1Rf15Wk51a/LQLfyMCTeMkdlsZ0RZb2cO+6iSRWKd/cryiZg33IIb7I mRLIVors3aCThy69CHQj9OdS8RvE6u3TKkHfCiSy7xo3FyRa6GyesAjrXg6bl1hx2mYl cysPGmi/MrxIq5eI0BSOveysvvt6U1DzOWg+h9qczv/oGqMA8iMuHJ+GO30EuVHm8UIf 5H1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=po1CWeaX; 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 f2si7554780edl.352.2021.02.05.13.48.19; Fri, 05 Feb 2021 13:48: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=@gmail.com header.s=20161025 header.b=po1CWeaX; 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 S231480AbhBEVok (ORCPT + 99 others); Fri, 5 Feb 2021 16:44:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbhBEVna (ORCPT ); Fri, 5 Feb 2021 16:43:30 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26BD1C06174A; Fri, 5 Feb 2021 13:42:50 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id q7so8753608iob.0; Fri, 05 Feb 2021 13:42:50 -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=cUYenjmJ9cKKN2NVNXP7Wjbj+RthPpuIhOcVKNsaAsc=; b=po1CWeaX2J8Q7cmzBZN6be5J1NGa6VHuMeofwIS+bVjA+aArYN7tQ++rvgDFolsY6M NaYHfG2ztt4gAhMWOoCCubTO6aMKbkPdNzWDlEUGZ0/jtw7t8SwetWIUWhHVZN6PW/TU 3tAxoUBdoS6RF+QvN143bFKaz+ygTLvXLzFQwKIDANERJzZw3H15hAOBQ0d8xTaRXPyg fqRei3Z6PgCJ4DGLi8Sq0+Qg8g5RCOmEhyV3wspZzDZb/osBwjp2z6MMXu7ug6KaZVWB JRbW44knp76BueshzLdP7YrxCfDVmiATCyPJ7vHIEpQwUqhTXxCFU56OeKbNNdyHdm0z 3KTw== 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=cUYenjmJ9cKKN2NVNXP7Wjbj+RthPpuIhOcVKNsaAsc=; b=lL0dDOBkn0PNkqL44ooTkC+HmApwJKP7Cgw9kpVA58HvrIQLfAGHPinBeA8ohtvhYk ndzxEcRnVI72Iuym1T3rVKp8xqZvPoPE1eFEgod3oG3kRRjtEXsEZLplTeJSOtnTkOwB 8BTr+uYXPOWsIFefiUaK+/1sCuin3SuFA2smsVBTR6u1ZCNSA9+5i59roWRHAv8mhfJt O02KsCImlS9aQOO2/fkQbNjJm0hVNGLyrIkr0e3+YqOK1accz4kRQNhWqZoDSPLeX3nD Dn1pNb7/VsG4LllvgWOtlW0gli+q8SsQ3t7s9fq11Z8eyWId1sOZvwXDE1OX3QWlXWTW yxZA== X-Gm-Message-State: AOAM532O12sFcLkzy3mF869otD14u28wqL13WITFKGIoJ3aObhMHZiJl AgoGv3PFuG+raGb51T/VKWn9qryotiH5MByHydQ= X-Received: by 2002:a05:6638:2694:: with SMTP id o20mr7051927jat.132.1612561369540; Fri, 05 Feb 2021 13:42:49 -0800 (PST) MIME-Version: 1.0 References: <20210205211010.2764627-1-ndesaulniers@google.com> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 5 Feb 2021 22:42:36 +0100 Message-ID: Subject: Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type To: Nick Desaulniers 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 10:40 PM Nick Desaulniers wrote: > > 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 > OK, thanks. I stopped my build: /usr/bin/perf_5.10 stat make V=1 -j4 LLVM=1 LLVM_IAS=1 PAHOLE=/opt/pahole/bin/pahole KCFLAGS=-fbinutils-version=2.3 5 LOCALVERSION=-13-amd64-clang12-llvm KBUILD_VERBOSE=1 KBUILD_BUILD_HOST=iniza KBUILD_BUILD_USER=sedat.dilek@gmail.com KBUILD_BUILD_TIMESTAMP=2021-02-05 bindeb-pkg KDE B_PKGVERSION=5.11.0~rc6-13~bullseye+dileks1 Enjoy weekend. - Sedat -