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.


> /home/sudip/test/dwarves-1.23/btf_encoder.c: In function 'btf__log_err':
> /home/sudip/test/dwarves-1.23/btf_encoder.c:175:39: warning: implicit 
> declaration of function 'btf__get_nr_types' [-Wimplicit-function-declaration]
>   175 |         fprintf(stderr, "[%u] %s %s", btf__get_nr_types(btf) + 1,
>       |                                       ^~~~~~~~~~~~~~~~~
> /home/sudip/test/dwarves-1.23/btf_encoder.c: In function 
> 'btf_encoder__encode':
> /home/sudip/test/dwarves-1.23/btf_encoder.c:1049:13: error: too many 
> arguments to function 'btf__dedup'
>  1049 |         if (btf__dedup(encoder->btf, NULL, NULL)) {
>       |             ^~~~~~~~~~
> /usr/include/bpf/btf.h:232:16: note: declared here
>   232 | LIBBPF_API int btf__dedup(struct btf *btf, const struct 
> btf_dedup_opts *opts);
>       |                ^~~~~~~~~~
> 

These probably require the new dwarves 1.24.


Thanks,
Dom

-- 
rsa4096: 3B10 0CA1 8674 ACBA B4FE  FCD2 CE5B CF17 9960 DE13
ed25519: FFB4 0CC3 7F2E 091D F7DA  356E CC79 2832 ED38 CB05

Attachment: signature.asc
Description: PGP signature

Reply via email to