lkml.org 
[lkml]   [2021]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectERROR: INT DW_ATE_unsigned_1 Error emitting BTF type
    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.
    + /opt/binutils/bin/objcopy --only-section=.BTF --set-section-flags
    .BTF=alloc,readonly --strip-all .tmp_vmlinux.btf .btf.vmlinux.bin.o
    + printf \1
    + dd of=.btf.vmlinux.bin.o conv=notrunc bs=1 seek=16 status=none
    + kallsymso=
    ...
    + info BTFIDS vmlinux
    + [ != silent_ ]
    + printf %-7s %s\n BTFIDS vmlinux
    BTFIDS vmlinux
    + ./tools/bpf/resolve_btfids/resolve_btfids vmlinux
    FAILED: load BTF from vmlinux: No such file or directory
    + on_exit
    + [ 255 -ne 0 ]
    + cleanup
    + rm -f .btf.vmlinux.bin.o
    + rm -f .tmp_System.map
    + rm -f .tmp_vmlinux.btf .tmp_vmlinux.kallsyms1
    .tmp_vmlinux.kallsyms1.S .tmp_vmlinux.kallsyms1.o
    .tmp_vmlinux.kallsyms2 .tmp_vmlinux.kallsyms2.S .tmp_vmlinux.kallsyms
    2.o
    + rm -f System.map
    + rm -f vmlinux
    + rm -f vmlinux.o
    make[3]: *** [Makefile:1166: vmlinux] Error 255

    Looks like it does not matter to use
    LLVM_OBJCOPY=/opt/llvm-toolchain/bin/llvm-objcopy:

    + info BTF .btf.vmlinux.bin.o
    + [ != silent_ ]
    + printf %-7s %s\n BTF .btf.vmlinux.bin.o
    BTF .btf.vmlinux.bin.o
    + LLVM_OBJCOPY=/opt/llvm-toolchain/bin/llvm-objcopy
    /opt/pahole/bin/pahole -J .tmp_vmlinux.btf
    [115] INT DW_ATE_unsigned_1 Error emitting BTF type
    Encountered error while encoding BTF.

    My make-line looks like this:

    make V=1 -j4 HOSTCC=clang HOSTCXX=clang++
    HOSTLD=/opt/binutils/bin/ld.bfd HOSTAR=/opt/binutils/bin/ar CC=clang
    LD=/opt/binutils/bin/ld.
    bfd AR=/opt/binutils/bin/ar NM=/opt/binutils/bin/nm
    STRIP=/opt/binutils/bin/strip OBJCOPY=/opt/binutils/bin/objcopy
    OBJDUMP=/opt/binutils/bin/objdump READELF=/opt/binu
    tils/bin/readelf PAHOLE=/opt/pahole/bin/pahole
    LOCALVERSION=-11-amd64-clang12-bfd KBUILD_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-11~bullseye+dileks1

    My kernel-config is attached.

    If you need further informations, please let me know.

    Thanks.

    Regards,
    - Sedat -
    [unhandled content-type:application/octet-stream]
    \
     
     \ /
      Last update: 2021-02-05 21:41    [W:2.304 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site