On 2/6/25 10:48 PM, Jason Xing wrote:
On Fri, Feb 7, 2025 at 2:04 PM Martin KaFai Lau <martin.lau@xxxxxxxxx> wrote:
On 2/3/25 6:39 PM, Jason Xing wrote:
When compiling the selftests, the following error is printed out:
selftests/bpf/prog_tests/changes_pkt_data.c: In function ‘test_aux’:
selftests/bpf/prog_tests/changes_pkt_data.c:22:27: error: ‘main’ is usually a function [-Werror=main]
struct changes_pkt_data *main = NULL;
The bpf CI has been testing this piece with different compilers. I also don't
see it in my environment. How to reproduce it and which compiler?
The gcc version is "gcc version 8.5.0" which is an old one. Yep, there
gcc 8.5 is old. I don't even know if it supports compiling the bpf prog in the
bpf selftests. Please update the compiler.