Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/010-configure-respect-LDFLAGS.patch using plaintext: patching file configure Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/020-libxdp-Use-__noinline__-reserved-attribute-for-XDP-d.patch using plaintext: patching file lib/libxdp/protocol.org patching file lib/libxdp/xdp-dispatcher.c.in Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/021-headers-xdp-drop-vlan_hdr-as-already-defined.patch using plaintext: patching file headers/xdp/parsing_helpers.h Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/022-xdp-dump-add-missing-perf_event-include-for-bpf-and-.patch using plaintext: patching file xdp-dump/xdpdump_bpf.c patching file xdp-dump/xdpdump_xdp.c Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/023-libxdp-fix-compilation-on-multiarch-systems.patch using plaintext: patching file lib/libxdp/Makefile Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/024-lib-allow-overwriting-W-flags-via-BPF_CFLAGS.patch using plaintext: patching file lib/common.mk patching file lib/libxdp/Makefile Applying /builder/shared-workdir/build/sdk/feeds/base/package/network/utils/xdp-tools/patches/025-Add-BPF_LDFLAGS-to-allow-overwriting-llc-s-march-arg.patch using plaintext: patching file configure patching file lib/common.mk patching file lib/libxdp/Makefile Found clang binary '/builder/shared-workdir/build/sdk/staging_dir/host/llvm-bpf/bin/clang' with version 18 (from 'clang version 18.1.7') bpftool not found or doesn't support skeleton generation; not building all tools libbpf support: system v1.4.5 perf_buffer__consume support: yes btf__load_from_kernel_by_id support: yes btf__type_cnt support: yes bpf_object__next_map support: yes bpf_object__next_program support: yes bpf_program__insn_cnt support: yes bpf_program__type support: yes bpf_program__flags support: yes bpf_program__expected_attach_type support: yes bpf_map_create support: yes perf_buffer__new_raw support: yes bpf_xdp_attach support: yes bpf_map__set_autocreate support: yes bpf_prog_test_run_opts support: yes bpf_xdp_query support: yes secure_getenv support: yes cap-ng support: yes make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/xdp-tools-1.4.2' lib libxdp M4 xdp-dispatcher.c CLANG xsk_def_xdp_prog.o LLC xsk_def_xdp_prog.o CLANG xsk_def_xdp_prog_5.3.o LLC xsk_def_xdp_prog_5.3.o CC staticobjs/libxdp.o CC staticobjs/xsk.o CLANG xdp-dispatcher.o LLC xdp-dispatcher.o GEN xsk_def_xdp_prog.embed.o GEN xsk_def_xdp_prog_5.3.embed.o CC sharedobjs/libxdp.o CC sharedobjs/xsk.o GEN xdp-dispatcher.embed.o LINK libxdp.so.1.4.0 LINK libxdp.a util CC params.o CC logging.o CC util.o CC stats.o CC xpcapng.o testing CLANG test_long_func_name.o LLC test_long_func_name.o CLANG xdp_drop.o LLC xdp_drop.o CLANG xdp_pass.o CC test-tool LLC xdp_pass.o xdp-filter CLANG xdpfilt_dny_udp.o CLANG xdpfilt_dny_tcp.o xdp-loader CC xdp-loader xdp-dump CC xdpdump In file included from xdpfilt_dny_udp.c:10: In file included from ./xdpfilt_prog.h:21: ../lib/../headers/xdp/parsing_helpers.h:91:11: error: arithmetic on a pointer to an incomplete type 'struct vlan_hdr' 91 | if (vlh + 1 > data_end) | ~~~ ^ ../lib/../headers/xdp/parsing_helpers.h:71:9: note: forward declaration of 'struct vlan_hdr' 71 | struct vlan_hdr *vlh; | ^ ../lib/../headers/xdp/parsing_helpers.h:94:16: error: incomplete definition of type 'struct vlan_hdr' 94 | h_proto = vlh->h_vlan_encapsulated_proto; | ~~~^ ../lib/../headers/xdp/parsing_helpers.h:71:9: note: forward declaration of 'struct vlan_hdr' 71 | struct vlan_hdr *vlh; | ^ ../lib/../headers/xdp/parsing_helpers.h:95:6: error: arithmetic on a pointer to an incomplete type 'struct vlan_hdr' 95 | vlh++; | ~~~^ ../lib/../headers/xdp/parsing_helpers.h:71:9: note: forward declaration of 'struct vlan_hdr' 71 | struct vlan_hdr *vlh; | ^ 3 errors generated. make[5]: *** [../lib/common.mk:111: xdpfilt_dny_udp.o] Error 1 make[5]: *** Waiting for unfinished jobs.... CLANG xdpdump_bpf.o CLANG xdpdump_xdp.o In file included from xdpfilt_dny_tcp.c:10: In file included from ./xdpfilt_prog.h:21: ../lib/../headers/xdp/parsing_helpers.h:91:11: error: arithmetic on a pointer to an incomplete type 'struct vlan_hdr' 91 | if (vlh + 1 > data_end) | ~~~ ^ ../lib/../headers/xdp/parsing_helpers.h:71:9: note: forward declaration of 'struct vlan_hdr' 71 | struct vlan_hdr *vlh; | ^ ../lib/../headers/xdp/parsing_helpers.h:94:16: error: incomplete definition of type 'struct vlan_hdr' 94 | h_proto = vlh->h_vlan_encapsulated_proto; | ~~~^ ../lib/../headers/xdp/parsing_helpers.h:71:9: note: forward declaration of 'struct vlan_hdr' 71 | struct vlan_hdr *vlh; | ^ ../lib/../headers/xdp/parsing_helpers.h:95:6: error: arithmetic on a pointer to an incomplete type 'struct vlan_hdr' 95 | vlh++; | ~~~^ ../lib/../headers/xdp/parsing_helpers.h:71:9: note: forward declaration of 'struct vlan_hdr' 71 | struct vlan_hdr *vlh; | ^ 3 errors generated. make[5]: *** [../lib/common.mk:111: xdpfilt_dny_tcp.o] Error 1 make[4]: *** [Makefile:40: xdp-filter] Error 2 make[4]: *** Waiting for unfinished jobs.... xdpdump_bpf.c:16:9: warning: 'min' macro redefined [-Wmacro-redefined] 16 | #define min(x,y) ((x)<(y) ? x : y) | ^ /builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a9+neon_musl_eabi/bpf-headers/include/linux/minmax.h:85:9: note: previous definition is here 85 | #define min(x, y) __careful_cmp(min, x, y) | ^ xdpdump_bpf.c:26:18: warning: unknown attribute 'preserve_access_index' ignored [-Wunknown-attributes] 26 | } __attribute__((preserve_access_index)); | ^~~~~~~~~~~~~~~~~~~~~ xdpdump_bpf.c:34:18: warning: unknown attribute 'preserve_access_index' ignored [-Wunknown-attributes] 34 | } __attribute__((preserve_access_index)); | ^~~~~~~~~~~~~~~~~~~~~ xdpdump_bpf.c:43:18: warning: unknown attribute 'preserve_access_index' ignored [-Wunknown-attributes] 43 | } __attribute__((preserve_access_index)); | ^~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. LLC xdpdump_bpf.o xdpdump_xdp.c:16:9: warning: 'min' macro redefined [-Wmacro-redefined] 16 | #define min(x, y) ((x) < (y) ? x : y) | ^ /builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a9+neon_musl_eabi/bpf-headers/include/linux/minmax.h:85:9: note: previous definition is here 85 | #define min(x, y) __careful_cmp(min, x, y) | ^ 1 warning generated. LLC xdpdump_xdp.o make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/xdp-tools-1.4.2' make[3]: *** [Makefile:144: /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/xdp-tools-1.4.2/.built] Error 2 time: package/feeds/base/xdp-tools/compile#16.43#2.46#16.01