DEBUG: Executing shell function do_compile
NOTE: cmake --build TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build --target all --
[1/40] Building C object CMakeFiles/dwarves.dir/gobuffer.c.o
[2/40] Building C object CMakeFiles/dwarves.dir/elf_symtab.c.o
[3/40] Building C object CMakeFiles/dwarves.dir/btf_loader.c.o
FAILED: CMakeFiles/dwarves.dir/btf_loader.c.o 
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot-native/usr/bin/aarch64-yoe-linux-musl/aarch64-yoe-linux-musl-clang -DDWARVES_MAJOR_VERSION=1 -DDWARVES_MINOR_VERSION=22 -D_GNU_SOURCE -Ddwarves_EXPORTS -ITOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build -ITOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git -target aarch64-yoe-linux-musl  -mcpu=cortex-a57 -march=armv8-a+crc -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -ffile-compilation-dir=. -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git=/usr/src/debug/pahole/1.22-r0  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git=/usr/src/debug/pahole/1.22-r0  -fmacro-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build=/usr/src/debug/pahole/1.22-r0  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build=/usr/src/debug/pahole/1.22-r0  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot-native=  -pthread -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -O2 -fPIC -MD -MT CMakeFiles/dwarves.dir/btf_loader.c.o -MF CMakeFiles/dwarves.dir/btf_loader.c.o.d -o CMakeFiles/dwarves.dir/btf_loader.c.o -c TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_loader.c
In file included from TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_loader.c:24:
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:496:18: error: incomplete definition of type 'struct btf_enum64'
        return ((__u64)e->val_hi32 << 32) | e->val_lo32;
                       ~^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:489:22: note: forward declaration of 'struct btf_enum64'
static inline struct btf_enum64 *btf_enum64(const struct btf_type *t)
                     ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:496:39: error: incomplete definition of type 'struct btf_enum64'
        return ((__u64)e->val_hi32 << 32) | e->val_lo32;
                                            ~^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:489:22: note: forward declaration of 'struct btf_enum64'
static inline struct btf_enum64 *btf_enum64(const struct btf_type *t)
                     ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_loader.c:402:37: warning: implicit declaration of function 'btf__get_nr_types' is invalid in C99 [-Wimplicit-function-declaration]
        for (type_index = 1; type_index <= btf__get_nr_types(btf); type_index++) {
                                           ^
1 warning and 2 errors generated.
[4/40] Building C object CMakeFiles/dwarves.dir/btf_encoder.c.o
FAILED: CMakeFiles/dwarves.dir/btf_encoder.c.o 
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot-native/usr/bin/aarch64-yoe-linux-musl/aarch64-yoe-linux-musl-clang -DDWARVES_MAJOR_VERSION=1 -DDWARVES_MINOR_VERSION=22 -D_GNU_SOURCE -Ddwarves_EXPORTS -ITOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build -ITOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git -target aarch64-yoe-linux-musl  -mcpu=cortex-a57 -march=armv8-a+crc -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -ffile-compilation-dir=. -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git=/usr/src/debug/pahole/1.22-r0  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git=/usr/src/debug/pahole/1.22-r0  -fmacro-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build=/usr/src/debug/pahole/1.22-r0  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build=/usr/src/debug/pahole/1.22-r0  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot=  -fmacro-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot=  -fdebug-prefix-map=TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot-native=  -pthread -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -O2 -fPIC -MD -MT CMakeFiles/dwarves.dir/btf_encoder.c.o -MF CMakeFiles/dwarves.dir/btf_encoder.c.o.d -o CMakeFiles/dwarves.dir/btf_encoder.c.o -c TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c
In file included from TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:18:
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:496:18: error: incomplete definition of type 'struct btf_enum64'
        return ((__u64)e->val_hi32 << 32) | e->val_lo32;
                       ~^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:489:22: note: forward declaration of 'struct btf_enum64'
static inline struct btf_enum64 *btf_enum64(const struct btf_type *t)
                     ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:496:39: error: incomplete definition of type 'struct btf_enum64'
        return ((__u64)e->val_hi32 << 32) | e->val_lo32;
                                            ~^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:489:22: note: forward declaration of 'struct btf_enum64'
static inline struct btf_enum64 *btf_enum64(const struct btf_type *t)
                     ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:172:32: warning: implicit declaration of function 'btf__get_nr_types' is invalid in C99 [-Wimplicit-function-declaration]
        fprintf(stderr, "[%u] %s %s", btf__get_nr_types(btf) + 1,
                                      ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:203:3: warning: implicit declaration of function 'btf__get_nr_types' is invalid in C99 [-Wimplicit-function-declaration]
                btf__get_nr_types(btf), btf_kind_str[kind],
                ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:446:27: warning: implicit declaration of function 'btf__get_nr_types' is invalid in C99 [-Wimplicit-function-declaration]
        t = btf__type_by_id(btf, btf__get_nr_types(btf));
                                 ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:1017:6: warning: implicit declaration of function 'btf__get_nr_types' is invalid in C99 [-Wimplicit-function-declaration]
        if (btf__get_nr_types(encoder->btf) == 0)
            ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:1020:37: error: too many arguments to function call, expected 2, have 3
        if (btf__dedup(encoder->btf, NULL, NULL)) {
            ~~~~~~~~~~                     ^~~~
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/unistd.h:25:14: note: expanded from macro 'NULL'
#define NULL ((void*)0)
             ^~~~~~~~~~
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/recipe-sysroot/usr/include/bpf/btf.h:232:16: note: 'btf__dedup' declared here
LIBBPF_API int btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts);
               ^
TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/git/btf_encoder.c:1361:25: warning: implicit declaration of function 'btf__get_nr_types' is invalid in C99 [-Wimplicit-function-declaration]
        uint32_t type_id_off = btf__get_nr_types(encoder->btf);
                               ^
5 warnings and 3 errors generated.
[5/40] Building C object CMakeFiles/dwarves.dir/dutil.c.o
[6/40] Building C object CMakeFiles/dwarves.dir/libctf.c.o
[7/40] Building C object CMakeFiles/dwarves.dir/rbtree.c.o
[8/40] Building C object CMakeFiles/dwarves_emit.dir/dwarves_emit.c.o
[9/40] Building C object CMakeFiles/dwarves.dir/ctf_loader.c.o
[10/40] Building C object CMakeFiles/dwarves.dir/dwarves_fprintf.c.o
[11/40] Building C object CMakeFiles/dwarves.dir/dwarves.c.o
[12/40] Building C object CMakeFiles/dwarves.dir/dwarf_loader.c.o
ninja: build stopped: subcommand failed.
WARNING: TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/temp/run.do_compile.10582:154 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build 'TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
WARNING: Backtrace (BB generated script): 
	#1: cmake_runcmake_build, TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/temp/run.do_compile.10582, line 154
	#2: cmake_do_compile, TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/temp/run.do_compile.10582, line 148
	#3: do_compile, TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/temp/run.do_compile.10582, line 143
	#4: main, TOPDIR/build/tmp/work/qemuarm64-yoe-linux-musl/pahole/1.22-r0/temp/run.do_compile.10582, line 167

Error details

Submitted on:
23/08/22 19:17
Error type:
Recipe
Task:
do_compile
Recipe:
pahole
Recipe version:
1.22-r0
Machine:
qemuarm64
Distro:
yoe
Build system:
x86_64-linux
Target system:
aarch64-yoe-linux-musl
Host distro:
ubuntu-18.04/ubuntu-18.04
Branch:
HEAD
Commit:
70c6ee7281ba81a0c0e8ab14abae9d220695ffbe
Build:
#151895
Submitter:
Similar errors:
2
Open a bug