lkml.org 
[lkml]   [2021]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type
    On Fri, Feb 5, 2021 at 4:28 PM Arnaldo Carvalho de Melo
    <arnaldo.melo@gmail.com> 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 <sedat.dilek@gmail.com> wrote:
    > > >
    > > > On Fri, Feb 5, 2021 at 3:37 PM Sedat Dilek <sedat.dilek@gmail.com> 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?
    >

    Started a new build:

    $ ps -ef | grep p[e]rf
    dileks 529807 529775 0 16:32 pts/1 00:00:00 /usr/bin/perf_5.10
    stat make V=1 -j4 LLVM=1 PAHOLE=/opt/pahole/bin/pahole
    LOCALVERSION=-12-amd64-clang12-llvm KBUIL
    D_VERBOSE=1 KBUILD_BUILD_HOST=iniza
    KBUILD_BUILD_USER=sedat.dilek@gmail.com
    KBUILD_BUILD_TIMESTAMP=2021-02-05 bindeb-pkg
    KDEB_PKGVERSION=5.11.0~rc6-12~bullseye+dileks1

    $ scripts/diffconfig /boot/config-5.11.0-rc6-10-amd64-clang12-bfd .config
    BUILD_SALT "5.11.0-rc6-10-amd64-clang12-bfd" ->
    "5.11.0-rc6-11-amd64-clang12-llvm"
    DEBUG_INFO_DWARF4 y -> n
    LD_VERSION 235020000 -> 0
    LLD_VERSION 0 -> 120000
    +DEBUG_INFO_DWARF5 y
    +LD_IS_LLD y
    +TOOLS_SUPPORT_RELR y

    Will take approx. 03:15 [hh:mm] and report later.

    - Sedat -

    \
     
     \ /
      Last update: 2021-02-06 00:33    [W:4.043 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site