Hi Dom,

On Sun, Sep 4, 2022 at 5:54 PM Domenico Andreoli <ca...@debian.org> wrote:
>
> On Thu, Sep 01, 2022 at 08:57:21PM +0100, Sudip Mukherjee wrote:
> >
> > Dear Maintainer,
>
> Hi Sudip,
>
> >
> > dwarves FTBFS with libbpf 1.0.0 (available in experimental).
> > Hopefully this is the error from the build log:
> >
> > In file included from /home/sudip/test/dwarves-1.23/btf_encoder.c:18:
> > /usr/include/bpf/btf.h: In function 'btf_enum64_value':
> > /usr/include/bpf/btf.h:496:25: error: invalid use of undefined type 'const 
> > struct btf_enum64'
> >   496 |         return ((__u64)e->val_hi32 << 32) | e->val_lo32;
> >       |                         ^~
> > /usr/include/bpf/btf.h:496:46: error: invalid use of undefined type 'const 
> > struct btf_enum64'
> >   496 |         return ((__u64)e->val_hi32 << 32) | e->val_lo32;
> >       |                                              ^~
>
> Which version of linux-libc-dev are you using? I see that struct
> btf_enum64 is introduced only in kernel 6.0, not yet packaged.

It does look like libbpf has now added a hard dependency on v6.0+
kernel even though they said it will have "transparent handling of
older kernels".
I have mentioned it in
https://github.com/libbpf/libbpf/issues/562#issuecomment-1237299951.
So, we either need to wait for some fix from libbpf upstream or wait
for the Debian kernel team to update to v6.0 after its released next
month.


-- 
Regards
Sudip

Reply via email to