To be clear, it's the bpf test that's causing this problem.
gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program test_tcpnotify_user.c /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_stub.o /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/libbpf.a cgroup_helpers.c trace_helpers.c -lcap -lelf -lrt -lpthread -o /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_tcpnotify_user test_tcpnotify_user.c: In function ‘main’: test_tcpnotify_user.c:153:2: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] 153 | system(test_script); | ^~~~~~~~~~~~~~~~~~~ test_tcpnotify_user.c:158:2: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] 158 | system(test_script); | ^~~~~~~~~~~~~~~~~~~ test_tcpnotify_user.c:163:2: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] 163 | system(test_script); | ^~~~~~~~~~~~~~~~~~~ gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program test_sock_fields.c /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_stub.o /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/libbpf.a cgroup_helpers.c -lcap -lelf -lrt -lpthread -o /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_sock_fields gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program test_sysctl.c /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_stub.o /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/libbpf.a cgroup_helpers.c -lcap -lelf -lrt -lpthread -o /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_sysctl test_sysctl.c:181:4: error: ‘struct sysctl_test’ has no member named ‘seek’ 181 | .seek = 4, | ^~~~ test_sysctl.c:181:11: warning: initialization of ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 181 | .seek = 4, | ^ test_sysctl.c:181:11: note: (near initialization for ‘tests[7].newval’) make[1]: *** [../lib.mk:138: /home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf/test_sysctl] Error 1 make[1]: Leaving directory '/home/ubuntu/ubuntu-eoan/tools/testing/selftests/bpf' make: *** [Makefile:137: all] Error 2
We need some module in bpf, so this was triggered in the beginning of the net test.
To be clear, it's the bpf test that's causing this problem.
gcc -g -Wall -O2 -I../.. /../include/ uapi -I../../../lib -I../../../lib/bpf -I../.. /../../ include/ generated -I../../../include -Dbpf_prog_ load=bpf_ prog_test_ load -Dbpf_load_ program= bpf_test_ load_program test_tcpnotify_ user.c /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ stub.o /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/libbpf. a cgroup_helpers.c trace_helpers.c -lcap -lelf -lrt -lpthread -o /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ tcpnotify_ user user.c: In function ‘main’: user.c: 153:2: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] test_script) ; user.c: 158:2: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] test_script) ; user.c: 163:2: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] test_script) ; /../include/ uapi -I../../../lib -I../../../lib/bpf -I../.. /../../ include/ generated -I../../../include -Dbpf_prog_ load=bpf_ prog_test_ load -Dbpf_load_ program= bpf_test_ load_program test_sock_fields.c /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ stub.o /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/libbpf. a cgroup_helpers.c -lcap -lelf -lrt -lpthread -o /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ sock_fields /../include/ uapi -I../../../lib -I../../../lib/bpf -I../.. /../../ include/ generated -I../../../include -Dbpf_prog_ load=bpf_ prog_test_ load -Dbpf_load_ program= bpf_test_ load_program test_sysctl.c /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ stub.o /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/libbpf. a cgroup_helpers.c -lcap -lelf -lrt -lpthread -o /home/ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ sysctl c:181:4: error: ‘struct sysctl_test’ has no member named ‘seek’ c:181:11: warning: initialization of ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] c:181:11: note: (near initialization for ‘tests[7].newval’) ubuntu- eoan/tools/ testing/ selftests/ bpf/test_ sysctl] Error 1 ubuntu/ ubuntu- eoan/tools/ testing/ selftests/ bpf'
test_tcpnotify_
test_tcpnotify_
153 | system(
| ^~~~~~~~~~~~~~~~~~~
test_tcpnotify_
158 | system(
| ^~~~~~~~~~~~~~~~~~~
test_tcpnotify_
163 | system(
| ^~~~~~~~~~~~~~~~~~~
gcc -g -Wall -O2 -I../..
gcc -g -Wall -O2 -I../..
test_sysctl.
181 | .seek = 4,
| ^~~~
test_sysctl.
181 | .seek = 4,
| ^
test_sysctl.
make[1]: *** [../lib.mk:138: /home/ubuntu/
make[1]: Leaving directory '/home/
make: *** [Makefile:137: all] Error 2
We need some module in bpf, so this was triggered in the beginning of the net test.