>>> bpftool v7.1.0 Extracting mkdir -p /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host mkdir -p /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target gzip -d -c /home/buildroot/autobuild/instance-2/dl/bpftool/bpftool-v7.1.0-br1.tar.gz | tar --strip-components=1 -C /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0 -xf - >>> bpftool v7.1.0 Patching >>> bpftool v7.1.0 Configuring mkdir -p /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/binutils/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/binutils/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/elfutils/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/elfutils/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/host-ccache/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/host-ccache/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/host-skeleton/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/host-skeleton/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/libcap/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/libcap/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/skeleton/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/skeleton/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/toolchain/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/toolchain/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/zlib/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/zlib/host/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host mkdir -p /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/binutils/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/binutils/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/elfutils/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/elfutils/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/host-ccache/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/host-ccache/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/host-skeleton/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/host-skeleton/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/libcap/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/libcap/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/skeleton/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/skeleton/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/toolchain/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/toolchain/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target rsync -a --link-dest=/home/buildroot/autobuild/instance-2/output-1/per-package/zlib/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/zlib/target/ /home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/target >>> bpftool v7.1.0 Building PATH="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin:/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" PATH="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin:/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" AR="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gcc-ar" AS="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-as" LD="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-ld" NM="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gcc-nm" CC="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gcc" GCC="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gcc" CPP="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-cpp" CXX="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-g++" FC="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gfortran" F77="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gfortran" RANLIB="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-gcc-ranlib" READELF="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-readelf" STRIP="/bin/true" OBJCOPY="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-objcopy" OBJDUMP="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/ccache /usr/bin/gcc" GCC_FOR_BUILD="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/ccache /usr/bin/gcc" CXX_FOR_BUILD="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/ccache /usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/include" CFLAGS_FOR_BUILD="-O2 -I/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/include" LDFLAGS_FOR_BUILD="-L/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/lib -Wl,-rpath,/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-as" DEFAULT_LINKER="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/arc-linux-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 " LDFLAGS="" FCFLAGS=" -O3 -g0" FFLAGS=" -O3 -g0" PKG_CONFIG="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/bin/pkg-config" STAGING_DIR="/home/buildroot/autobuild/instance-2/output-1/per-package/bpftool/host/arc-buildroot-linux-uclibc/sysroot" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j4 -C /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src make[1]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src' /bin/sh: line 1: llvm-config: command not found ... libbfd: [ on ] ... clang-bpf-co-re: [ OFF ] ... llvm: [ OFF ] ... libcap: [ on ] MKDIR /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/ MKDIR /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/include/bpf INSTALL /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/include/bpf/hashmap.h INSTALL /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/include/bpf/nlattr.h INSTALL /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/include/bpf/relo_core.h make[2]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/libbpf/src' INSTALL /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/include/bpf/libbpf_internal.h MKDIR /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs INSTALL bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h bpf_helpers.h bpf_helper_defs.h bpf_tracing.h bpf_endian.h bpf_core_read.h skel_internal.h libbpf_version.h usdt.bpf.h CC /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/bpf.o CC /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/btf.o CC /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/libbpf.o CC /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/libbpf_errno.o In file included from libbpf_errno.c:15: libbpf_internal.h: In function 'ensure_good_fd': libbpf_internal.h:543:18: error: 'F_DUPFD_CLOEXEC' undeclared (first use in this function); did you mean 'FD_CLOEXEC'? 543 | fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); | ^~~~~~~~~~~~~~~ | FD_CLOEXEC libbpf_internal.h:543:18: note: each undeclared identifier is reported only once for each function it appears in libbpf_errno.c: In function 'libbpf_strerror': libbpf_errno.c:65:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 65 | if (ret >= size) | ^~ libbpf_errno.c:72:10: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 72 | if (ret >= size) | ^~ make[2]: *** [Makefile:131: /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/libbpf_errno.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from bpf.c:37: libbpf_internal.h: In function 'ensure_good_fd': libbpf_internal.h:543:18: error: 'F_DUPFD_CLOEXEC' undeclared (first use in this function); did you mean 'FD_CLOEXEC'? 543 | fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); | ^~~~~~~~~~~~~~~ | FD_CLOEXEC libbpf_internal.h:543:18: note: each undeclared identifier is reported only once for each function it appears in bpf.c: In function 'alloc_zero_tailing_info': bpf.c:219:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 219 | for (i = 0; i < cnt; i++) { | ^ make[2]: *** [Makefile:131: /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/bpf.o] Error 1 In file included from btf.c:22: libbpf_internal.h: In function 'ensure_good_fd': libbpf_internal.h:543:18: error: 'F_DUPFD_CLOEXEC' undeclared (first use in this function); did you mean 'FD_CLOEXEC'? 543 | fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); | ^~~~~~~~~~~~~~~ | FD_CLOEXEC libbpf_internal.h:543:18: note: each undeclared identifier is reported only once for each function it appears in btf.c: In function 'btf_type_by_id': btf.c:466:14: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 466 | if (type_id < btf->start_id) | ^ btf.c: In function 'determine_ptr_size': btf.c:513:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 513 | for (j = 0; j < ARRAY_SIZE(long_aliases); j++) { | ^ btf.c: In function 'btf_ptr_sz': btf.c:526:44: warning: operand of ?: changes signedness from 'int' to 'unsigned int' due to unsignedness of other operand [-Wsign-compare] 526 | return btf->ptr_sz < 0 ? sizeof(void *) : btf->ptr_sz; | ^~~~~~~~~~~ btf.c: In function 'btf_parse_raw': btf.c:1108:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'long int' [-Wsign-compare] 1108 | if (fread(data, 1, sz, f) < sz) { | ^ btf.c: In function 'btf_get_raw_data': btf.c:1284:17: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'const unsigned int'} [-Wsign-compare] 1284 | for (i = 0; i < btf->nr_types; i++) { | ^ btf.c: In function 'btf__str_by_offset': btf.c:1331:13: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1331 | if (offset < btf->start_str_off) | ^ btf.c: In function 'validate_type_id': btf.c:1846:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1846 | if (id < 0 || id > BTF_MAX_NR_TYPES) | ^ btf.c: In function 'btf_dedup_clear_hypot_map': btf.c:3179:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 3179 | for (i = 0; i < d->hypot_cnt; i++) | ^ btf.c: In function 'btf_for_each_str_off': btf.c:3282:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 3282 | for (i = 0; i < d->btf->nr_types; i++) { | ^ btf.c: In function 'strs_dedup_remap_str_off': btf.c:3308:30: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 3308 | if (str_off == 0 || str_off < d->btf->start_str_off) | ^ btf.c: In function 'btf_hash_struct': btf.c:3514:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 3514 | for (i = 0; i < vlen; i++) { | ^ btf.c: In function 'btf_dedup_prim_types': btf.c:3833:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 3833 | for (i = 0; i < d->btf->nr_types; i++) { | ^ btf.c: In function 'btf_dedup_is_equiv': btf.c:4086:42: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 4086 | if (fwd_kind == real_kind && canon_id < d->btf->start_id) | ^ btf.c: In function 'btf_dedup_merge_hypot_map': btf.c:4213:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 4213 | for (i = 0; i < d->hypot_cnt; i++) { | ^ btf.c: In function 'btf_dedup_struct_types': btf.c:4353:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 4353 | for (i = 0; i < d->btf->nr_types; i++) { | ^ btf.c: In function 'btf_dedup_ref_types': btf.c:4515:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 4515 | for (i = 0; i < d->btf->nr_types; i++) { | ^ btf.c: In function 'btf_dedup_resolve_fwds': btf.c:4643:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 4643 | for (i = 0; i < d->btf->nr_types; i++) { | ^ btf.c: In function 'btf_dedup_compact_types': btf.c:4678:39: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 4678 | for (i = 0, id = d->btf->start_id; i < d->btf->nr_types; i++, id++) | ^ btf.c:4683:39: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 4683 | for (i = 0, id = d->btf->start_id; i < d->btf->nr_types; i++, id++) { | ^ btf.c:4684:18: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 4684 | if (d->map[id] != id) | ^~ btf.c: In function 'btf_dedup_remap_types': btf.c:4747:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 4747 | for (i = 0; i < d->btf->nr_types; i++) { | ^ btf.c: In function 'btf__load_vmlinux_btf': btf.c:4790:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 4790 | for (i = 0; i < ARRAY_SIZE(locations); i++) { | ^ In file included from btf.c:22: btf.c: In function 'btf_ext_visit_type_ids': libbpf_internal.h:399:9: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 399 | i < (sec)->num_info; \ | ^ btf.c:4959:3: note: in expansion of macro 'for_each_btf_ext_rec' 4959 | for_each_btf_ext_rec(seg, sec, i, rec) { | ^~~~~~~~~~~~~~~~~~~~ libbpf_internal.h:399:9: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 399 | i < (sec)->num_info; \ | ^ btf.c:4970:3: note: in expansion of macro 'for_each_btf_ext_rec' 4970 | for_each_btf_ext_rec(seg, sec, i, rec) { | ^~~~~~~~~~~~~~~~~~~~ btf.c: In function 'btf_ext_visit_str_offs': libbpf_internal.h:399:9: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 399 | i < (sec)->num_info; \ | ^ btf.c:5001:3: note: in expansion of macro 'for_each_btf_ext_rec' 5001 | for_each_btf_ext_rec(seg, sec, i, rec) { | ^~~~~~~~~~~~~~~~~~~~ libbpf_internal.h:399:9: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 399 | i < (sec)->num_info; \ | ^ btf.c:5019:3: note: in expansion of macro 'for_each_btf_ext_rec' 5019 | for_each_btf_ext_rec(seg, sec, i, rec) { | ^~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:131: /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/staticobjs/btf.o] Error 1 libbpf.c: In function 'bpf_object__add_programs': libbpf.c:804:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 804 | for (i = 0; i < nr_syms; i++) { | ^ libbpf.c: In function 'find_struct_ops_kern_types': libbpf.c:983:30: warning: comparison of integer expressions of different signedness: '__u32' {aka 'const unsigned int'} and '__s32' {aka 'int'} [-Wsign-compare] 983 | if (kern_data_member->type == kern_type_id) | ^~ libbpf.c: In function 'internal_map_name': libbpf.c:1561:14: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1561 | if (sfx_len >= BPF_OBJ_NAME_LEN) | ^~ libbpf.c: In function 'bpf_object__init_global_data_maps': libbpf.c:1683:28: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 1683 | for (sec_idx = 1; sec_idx < obj->efile.sec_cnt; sec_idx++) { | ^ libbpf.c: In function 'set_kcfg_value_str': libbpf.c:1791:10: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1791 | if (len >= ext->kcfg.sz) { | ^~ libbpf.c: In function 'pathname_concat': libbpf.c:2149:10: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 2149 | if (len >= buf_sz) | ^~ libbpf.c: In function 'bpf_object__sanitize_btf': libbpf.c:2701:16: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'unsigned int'} [-Wsign-compare] 2701 | for (i = 1; i < btf__type_cnt(btf); i++) { | ^ libbpf.c: In function 'bpf_object__init_btf': libbpf.c:2839:29: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 2839 | for (seg_num = 0; seg_num < ARRAY_SIZE(ext_segs); seg_num++) { | ^ libbpf.c: In function 'bpf_object__sanitize_and_load_btf': libbpf.c:3099:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 3099 | for (i = 0; i < obj->nr_programs; i++) { | ^ libbpf.c: In function 'bpf_object__elf_collect': libbpf.c:3498:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 3498 | targ_sec_idx >= obj->efile.sec_cnt) | ^~ libbpf.c:3525:52: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 3525 | if (!obj->efile.strtabidx || obj->efile.strtabidx > idx) { | ^ libbpf.c: In function 'find_extern_sec_btf_id': libbpf.c:3615:17: warning: comparison of integer expressions of different signedness: '__u32' {aka 'const unsigned int'} and 'int' [-Wsign-compare] 3615 | if (vs->type == ext_btf_id) | ^~ libbpf.c: In function 'prog_is_subprog': libbpf.c:3957:23: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'const unsigned int'} and 'int' [-Wsign-compare] 3957 | return prog->sec_idx == obj->efile.text_shndx && obj->nr_programs > 1; | ^~ libbpf.c: In function 'bpf_program__record_reloc': libbpf.c:4064:29: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 4064 | if (!shdr_idx || shdr_idx != obj->efile.text_shndx) { | ^~ libbpf.c: In function 'init_map_in_map_slots': libbpf.c:5136:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 5136 | for (i = 0; i < map->init_slots_sz; i++) { | ^ libbpf.c: In function 'init_prog_array_slots': libbpf.c:5175:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 5175 | for (i = 0; i < map->init_slots_sz; i++) { | ^ libbpf.c: In function 'bpf_object_init_prog_arrays': libbpf.c:5204:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 5204 | for (i = 0; i < obj->nr_maps; i++) { | ^ libbpf.c: In function 'bpf_core_find_cands': libbpf.c:5568:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 5568 | for (i = 0; i < obj->btf_module_cnt; i++) { | ^ In file included from libbpf.c:54: libbpf.c: In function 'bpf_object__relocate_core': libbpf_internal.h:399:9: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'const unsigned int'} [-Wsign-compare] 399 | i < (sec)->num_info; \ | ^ libbpf.c:5748:3: note: in expansion of macro 'for_each_btf_ext_rec' 5748 | for_each_btf_ext_rec(seg, sec, i, rec) { | ^~~~~~~~~~~~~~~~~~~~ libbpf.c:5777:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 5777 | if (insn_idx >= prog->insns_cnt) | ^~ In file included from libbpf.c:55: hashmap.h:179:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 179 | for (bkt = 0; bkt < map->cap; bkt++) \ | ^ libbpf.c:5813:3: note: in expansion of macro 'hashmap__for_each_entry' 5813 | hashmap__for_each_entry(cand_cache, entry, i) { | ^~~~~~~~~~~~~~~~~~~~~~~ libbpf.c: In function 'adjust_prog_btf_ext_info': libbpf.c:5968:21: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'const unsigned int'} and 'int' [-Wsign-compare] 5968 | if (prog->sec_idx != sec_idx) | ^~ In file included from libbpf.c:54: libbpf_internal.h:399:9: warning: comparison of integer expressions of different signedness: 'int' and '__u32' {aka 'const unsigned int'} [-Wsign-compare] 399 | i < (sec)->num_info; \ | ^ libbpf.c:5971:3: note: in expansion of macro 'for_each_btf_ext_rec' 5971 | for_each_btf_ext_rec(ext_info, sec, i, rec) { | ^~~~~~~~~~~~~~~~~~~~ libbpf.c: In function 'cmp_relo_by_insn_idx': libbpf.c:6097:15: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 6097 | if (insn_idx == relo->insn_idx) | ^~ libbpf.c:6099:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 6099 | return insn_idx < relo->insn_idx ? -1 : 1; | ^ libbpf.c: In function 'bpf_object__relocate_calls': libbpf.c:6352:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6352 | for (i = 0; i < obj->nr_programs; i++) { | ^ libbpf.c: In function 'bpf_object__free_relocs': libbpf.c:6374:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6374 | for (i = 0; i < obj->nr_programs; i++) { | ^ libbpf.c: In function 'bpf_object__sort_relos': libbpf.c:6400:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6400 | for (i = 0; i < obj->nr_programs; i++) { | ^ libbpf.c: In function 'bpf_object__relocate': libbpf.c:6436:17: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 6436 | for (j = 0; j < prog->nr_reloc; j++) { | ^ libbpf.c: In function 'bpf_object__collect_map_relos': libbpf.c:6534:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6534 | for (j = 0; j < obj->nr_maps; j++) { | ^ libbpf.c:6544:9: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6544 | if (j == obj->nr_maps) { | ^~ libbpf.c:6609:12: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 6609 | if (moff >= map->init_slots_sz) { | ^~ libbpf.c: In function 'bpf_object__collect_relos': libbpf.c:6632:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6632 | for (i = 0; i < obj->efile.sec_cnt; i++) { | ^ libbpf.c: In function 'bpf_object__sanitize_prog': libbpf.c:6686:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6686 | for (i = 0; i < prog->insns_cnt; i++, insn++) { | ^ libbpf.c: In function 'bpf_object_load_prog': libbpf.c:6886:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 6886 | for (i = 0; i < obj->nr_maps; i++) { | ^ libbpf.c: In function 'fixup_log_failed_core_relo': libbpf.c:7024:33: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 7024 | insn_idx, spec_buf, spec_len >= sizeof(spec_buf) ? "..." : ""); | ^~ libbpf.c: In function 'fixup_log_missing_map_load': libbpf.c:7050:29: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 7050 | if (map_idx < 0 || map_idx >= obj->nr_maps) | ^~ libbpf.c: In function 'fixup_verifier_log': libbpf.c:7076:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'const unsigned int'} [-Wsign-compare] 7076 | for (i = 0; i < max_last_line_cnt; i++, next_line = cur_line) { | ^ libbpf.c: In function 'find_ksym_btf_id': libbpf.c:7448:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 7448 | for (i = 0; i < obj->btf_module_cnt; i++) { | ^ libbpf.c: In function 'bpf_object_load': libbpf.c:7747:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 7747 | for (i = 0; i < obj->nr_maps; i++) | ^ libbpf.c:7757:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 7757 | for (i = 0; i < obj->btf_module_cnt; i++) { | ^ libbpf.c:7776:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 7776 | for (i = 0; i < obj->nr_maps; i++) | ^ libbpf.c: In function '__bpf_program__iter': libbpf.c:8315:10: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'size_t' {aka 'const unsigned int'} [-Wsign-compare] 8315 | if (idx >= obj->nr_programs || idx < 0) | ^~ libbpf.c: In function 'libbpf_unregister_prog_handler': libbpf.c:8682:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 8682 | for (i = 0; i < custom_sec_def_cnt; i++) { | ^ libbpf.c:8687:8: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 8687 | if (i == custom_sec_def_cnt) | ^~ libbpf.c:8691:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 8691 | for (i = i + 1; i < custom_sec_def_cnt; i++) | ^ libbpf.c: In function 'libbpf_get_type_names': libbpf.c:8769:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 8769 | for (i = 0; i < ARRAY_SIZE(section_defs); i++) { | ^ libbpf.c:8780:53: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 8780 | if (strlen(buf) + strlen(section_defs[i].sec) + 2 > len) { | ^ libbpf.c: In function 'find_btf_by_prefix_kind': libbpf.c:9025:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 9025 | if (ret < 0 || ret >= sizeof(btf_type_name)) | ^~ libbpf.c: In function 'find_kernel_btf_id': libbpf.c:9116:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 9116 | for (i = 0; i < obj->btf_module_cnt; i++) { | ^ libbpf.c: In function '__bpf_map__iter': libbpf.c:9397:10: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'size_t' {aka 'const unsigned int'} [-Wsign-compare] 9397 | if (idx >= obj->nr_maps || idx < 0) | ^~ libbpf.c: In function 'perf_event_open_probe': libbpf.c:9906:25: warning: comparison is always false due to limited range of data type [-Wtype-limits] 9906 | if ((__u64)ref_ctr_off >= (1ULL << PERF_UPROBE_REF_CTR_OFFSET_BITS)) | ^~ libbpf.c: In function 'elf_find_next_scn_by_type': libbpf.c:10557:18: warning: comparison of integer expressions of different signedness: 'Elf64_Word' {aka 'unsigned int'} and 'int' [-Wsign-compare] 10557 | if (sh.sh_type == sh_type) | ^~ libbpf.c: In function 'elf_find_func_offset': libbpf.c:10606:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 10606 | for (i = 0; i < ARRAY_SIZE(sh_types); i++) { | ^ libbpf.c: In function 'resolve_full_path': libbpf.c:10773:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 10773 | for (i = 0; i < ARRAY_SIZE(search_paths); i++) { | ^ libbpf.c:10785:26: warning: operand of ?: changes signedness from 'int' to 'size_t' {aka 'unsigned int'} due to unsignedness of other operand [-Wsign-compare] 10785 | seg_len = next_path ? next_path - s : strlen(s); | ^~~~~~~~~~~~~ libbpf.c: In function 'determine_tracepoint_id': libbpf.c:11056:10: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 11056 | if (ret >= sizeof(file)) { | ^~ libbpf.c: In function '__perf_buffer__new': libbpf.c:11818:42: warning: comparison of integer expressions of different signedness: '__u32' {aka 'unsigned int'} and 'int' [-Wsign-compare] 11818 | if (map.max_entries && map.max_entries < pb->cpu_cnt) | ^ libbpf.c: In function 'perf_buffer__buffer_fd': libbpf.c:11998:14: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 11998 | if (buf_idx >= pb->cpu_cnt) | ^~ libbpf.c: In function 'perf_buffer__consume_buffer': libbpf.c:12036:14: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] 12036 | if (buf_idx >= pb->cpu_cnt) | ^~ libbpf.c: In function 'parse_cpu_mask_file': libbpf.c:12179:10: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 12179 | if (len >= sizeof(buf)) { | ^~ libbpf.c: In function 'populate_skeleton_maps': libbpf.c:12220:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 12220 | for (i = 0; i < map_cnt; i++) { | ^ libbpf.c: In function 'populate_skeleton_progs': libbpf.c:12244:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 12244 | for (i = 0; i < prog_cnt; i++) { | ^ make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/libbpf/src' make[1]: *** [Makefile:44: /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src/libbpf/libbpf.a] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/src' make: *** [package/pkg-generic.mk:293: /home/buildroot/autobuild/instance-2/output-1/build/bpftool-v7.1.0/.stamp_built] Error 2 make: Leaving directory '/home/buildroot/autobuild/instance-2/buildroot'