Test failed to build with error message below:
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf'
make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests'
stderr:
Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at 'include/uapi/linux/if_link.h'
prog_tests/send_signal.c: In function 'test_send_signal_common':
prog_tests/send_signal.c:52:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
52 | write(pipe_c2p[1], buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:55:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
55 | read(pipe_p2c[0], buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:61:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
61 | write(pipe_c2p[1], "2", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:63:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
63 | write(pipe_c2p[1], "0", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:66:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
66 | read(pipe_p2c[0], buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:109:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
109 | read(pipe_c2p[0], buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:117:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
117 | write(pipe_p2c[1], buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:131:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
131 | write(pipe_p2c[1], buf, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/sockmap_basic.c: In function 'connected_socket_v4':
prog_tests/sockmap_basic.c:22:6: warning: implicit declaration of function 'CHECK_FAIL' [-Wimplicit-function-declaration]
22 | if (CHECK_FAIL(s == -1))
| ^~~~~~~~~~
prog_tests/sockmap_basic.c:26:22: error: 'SOL_TCP' undeclared (first use in this function); did you mean 'SOL_TIPC'?
26 | err = setsockopt(s, SOL_TCP, TCP_REPAIR, &repair, sizeof(repair));
| ^~~~~~~
| SOL_TIPC
prog_tests/sockmap_basic.c:26:22: note: each undeclared identifier is reported only once for each function it appears in
prog_tests/sockmap_basic.c: In function 'test_sockmap_basic':
prog_tests/sockmap_basic.c:75:6: warning: implicit declaration of function 'test__start_subtest' [-Wimplicit-function-declaration]
75 | if (test__start_subtest("sockmap create_update_free"))
| ^~~~~~~~~~~~~~~~~~~
prog_tests/stacktrace_build_id_nmi.c: In function 'read_perf_max_sample_freq':
prog_tests/stacktrace_build_id_nmi.c:12:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
12 | fscanf(f, "%llu", &sample_freq);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [../lib.mk:141: /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/test_progs] Error 1
make: *** [Makefile:136: all] Error 2
Test failed to build with error message below: ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests/ bpf' ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests' include/ uapi/linux/ if_link. h' differs from latest version at 'include/ uapi/linux/ if_link. h' send_signal. c: In function 'test_send_ signal_ common' : send_signal. c:52:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~~ send_signal. c:55:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~ send_signal. c:61:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~~ send_signal. c:63:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~~ send_signal. c:66:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~ send_signal. c:109:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~ send_signal. c:117:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~~ send_signal. c:131:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~~ sockmap_ basic.c: In function 'connected_ socket_ v4': sockmap_ basic.c: 22:6: warning: implicit declaration of function 'CHECK_FAIL' [-Wimplicit- function- declaration] sockmap_ basic.c: 26:22: error: 'SOL_TCP' undeclared (first use in this function); did you mean 'SOL_TIPC'? sockmap_ basic.c: 26:22: note: each undeclared identifier is reported only once for each function it appears in sockmap_ basic.c: In function 'test_sockmap_ basic': sockmap_ basic.c: 75:6: warning: implicit declaration of function 'test__ start_subtest' [-Wimplicit- function- declaration] start_subtest( "sockmap create_ update_ free")) stacktrace_ build_id_ nmi.c: In function 'read_perf_ max_sample_ freq': stacktrace_ build_id_ nmi.c:12: 2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests/ bpf/test_ progs] Error 1
make[1]: Leaving directory '/home/
make: Leaving directory '/home/
stderr:
Warning: Kernel ABI header at 'tools/
prog_tests/
prog_tests/
52 | write(pipe_c2p[1], buf, 1);
| ^~~~~~~
prog_tests/
55 | read(pipe_p2c[0], buf, 1);
| ^~~~~~~
prog_tests/
61 | write(pipe_c2p[1], "2", 1);
| ^~~~~~~
prog_tests/
63 | write(pipe_c2p[1], "0", 1);
| ^~~~~~~
prog_tests/
66 | read(pipe_p2c[0], buf, 1);
| ^~~~~~~
prog_tests/
109 | read(pipe_c2p[0], buf, 1);
| ^~~~~~~
prog_tests/
117 | write(pipe_p2c[1], buf, 1);
| ^~~~~~~
prog_tests/
131 | write(pipe_p2c[1], buf, 1);
| ^~~~~~~
prog_tests/
prog_tests/
22 | if (CHECK_FAIL(s == -1))
| ^~~~~~~~~~
prog_tests/
26 | err = setsockopt(s, SOL_TCP, TCP_REPAIR, &repair, sizeof(repair));
| ^~~~~~~
| SOL_TIPC
prog_tests/
prog_tests/
prog_tests/
75 | if (test__
| ^~~~~~~~~~~~~~~~~~~
prog_tests/
prog_tests/
12 | fscanf(f, "%llu", &sample_freq);
| ^~~~~~~
make[1]: *** [../lib.mk:141: /home/ubuntu/
make: *** [Makefile:136: all] Error 2