========== build_tools - FAILED ====== Cleaning ====== ../../../scripts/Makefile.include:4: *** O=build_tools/ does not exist. Stop. ====== Baseline building the tree ====== make[1]: Circular /home/nipa/bpf-next/wt-0/build_tools/kselftest/alsa/global-timer <- /home/nipa/bpf-next/wt-0/build_tools/kselftest/alsa/global-timer dependency dropped. Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' ====== Building the tree before the patch ====== make[1]: Circular /home/nipa/bpf-next/wt-0/build_tools/kselftest/alsa/global-timer <- /home/nipa/bpf-next/wt-0/build_tools/kselftest/alsa/global-timer dependency dropped. Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' ====== Building the tree with the patch ====== make[1]: Circular /home/nipa/bpf-next/wt-0/build_tools/kselftest/alsa/global-timer <- /home/nipa/bpf-next/wt-0/build_tools/kselftest/alsa/global-timer dependency dropped. Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' linker.c: In function ‘linker_append_btf’: linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); | ^ linker.c:2296:32: note: shadowed declaration is here 2296 | const struct btf_type *t; | ^ cc1: all warnings being treated as errors make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/staticobjs/linker.o] Error 1 make[3]: *** [Makefile:164: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/staticobjs/libbpf-in.o] Error 2 make[3]: *** Waiting for unfinished jobs.... linker.c: In function ‘linker_append_btf’: linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); | ^ linker.c:2296:32: note: shadowed declaration is here 2296 | const struct btf_type *t; | ^ cc1: all warnings being treated as errors make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/sharedobjs/linker.o] Error 1 make[3]: *** [Makefile:154: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/sharedobjs/libbpf-in.o] Error 2 make[2]: *** [Makefile:142: all] Error 2 make[1]: *** [Makefile:133: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/libbpf.a] Error 2 Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h' linker.c: In function ‘linker_append_btf’: linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); | ^ linker.c:2296:32: note: shadowed declaration is here 2296 | const struct btf_type *t; | ^ cc1: all warnings being treated as errors make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/staticobjs/linker.o] Error 1 make[3]: *** [Makefile:164: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/staticobjs/libbpf-in.o] Error 2 make[3]: *** Waiting for unfinished jobs.... linker.c: In function ‘linker_append_btf’: linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); | ^ linker.c:2296:32: note: shadowed declaration is here 2296 | const struct btf_type *t; | ^ cc1: all warnings being treated as errors make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/sharedobjs/linker.o] Error 1 make[3]: *** [Makefile:154: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/sharedobjs/libbpf-in.o] Error 2 make[2]: *** [Makefile:142: all] Error 2 make[1]: *** [bpf.mk:49: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/libbpf.a] Error 2 New errors added --- /tmp/tmp.9uIH3Ky1ft 2024-09-29 02:03:09.199345067 -0700 +++ /tmp/tmp.TDgQhfxxAl 2024-09-29 02:03:11.641395106 -0700 @@ -3,0 +4,23 @@ +linker.c: In function ‘linker_append_btf’: +linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] + 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); + | ^ +linker.c:2296:32: note: shadowed declaration is here + 2296 | const struct btf_type *t; + | ^ +cc1: all warnings being treated as errors +make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/staticobjs/linker.o] Error 1 +make[3]: *** [Makefile:164: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/staticobjs/libbpf-in.o] Error 2 +make[3]: *** Waiting for unfinished jobs.... +linker.c: In function ‘linker_append_btf’: +linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] + 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); + | ^ +linker.c:2296:32: note: shadowed declaration is here + 2296 | const struct btf_type *t; + | ^ +cc1: all warnings being treated as errors +make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/sharedobjs/linker.o] Error 1 +make[3]: *** [Makefile:154: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/sharedobjs/libbpf-in.o] Error 2 +make[2]: *** [Makefile:142: all] Error 2 +make[1]: *** [Makefile:133: /home/nipa/bpf-next/wt-0/build_tools/kselftest/hid/tools/build/libbpf/libbpf.a] Error 2 @@ -5,0 +29,23 @@ +linker.c: In function ‘linker_append_btf’: +linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] + 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); + | ^ +linker.c:2296:32: note: shadowed declaration is here + 2296 | const struct btf_type *t; + | ^ +cc1: all warnings being treated as errors +make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/staticobjs/linker.o] Error 1 +make[3]: *** [Makefile:164: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/staticobjs/libbpf-in.o] Error 2 +make[3]: *** Waiting for unfinished jobs.... +linker.c: In function ‘linker_append_btf’: +linker.c:2452:56: error: declaration of ‘t’ shadows a previous local [-Werror=shadow] + 2452 | const struct btf_type *t = btf__type_by_id(linker->btf, glob_sym->underlying_btf_id); + | ^ +linker.c:2296:32: note: shadowed declaration is here + 2296 | const struct btf_type *t; + | ^ +cc1: all warnings being treated as errors +make[4]: *** [/home/nipa/bpf-next/wt-0/tools/build/Makefile.build:105: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/sharedobjs/linker.o] Error 1 +make[3]: *** [Makefile:154: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/sharedobjs/libbpf-in.o] Error 2 +make[2]: *** [Makefile:142: all] Error 2 +make[1]: *** [bpf.mk:49: /home/nipa/bpf-next/wt-0/build_tools/kselftest/net/tools/build/libbpf/libbpf.a] Error 2 Per-file breakdown