Re: [PATCH bpf] samples: bpf: fix build error

2020-05-14 Thread Alexei Starovoitov
On Mon, May 11, 2020 at 1:32 PM Yonghong Song wrote: > > > > On 5/11/20 4:32 AM, Matteo Croce wrote: > > GCC 10 is very strict about symbol clash, and lwt_len_hist_user contains > > a symbol which clashes with libbpf: > > > > /usr/bin/ld: samples/bpf/lwt_len_hist_user.o:(.bss+0x0): multiple > > d

Re: [PATCH bpf] samples: bpf: fix build error

2020-05-11 Thread Yonghong Song
On 5/11/20 4:32 AM, Matteo Croce wrote: GCC 10 is very strict about symbol clash, and lwt_len_hist_user contains a symbol which clashes with libbpf: /usr/bin/ld: samples/bpf/lwt_len_hist_user.o:(.bss+0x0): multiple definition of `bpf_log_buf'; samples/bpf/bpf_load.o:(.bss+0x8c0): first defin

[PATCH bpf] samples: bpf: fix build error

2020-05-11 Thread Matteo Croce
GCC 10 is very strict about symbol clash, and lwt_len_hist_user contains a symbol which clashes with libbpf: /usr/bin/ld: samples/bpf/lwt_len_hist_user.o:(.bss+0x0): multiple definition of `bpf_log_buf'; samples/bpf/bpf_load.o:(.bss+0x8c0): first defined here collect2: error: ld returned 1 exit s