* bbpf_internal.h:102:22: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=]
@ 2021-05-20 13:51 Naresh Kamboju
2021-05-22 0:48 ` Andrii Nakryiko
0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2021-05-20 13:51 UTC (permalink / raw
To: bpf, Netdev, lkft-triage
Cc: Andrii Nakryiko, Kernel Team, ast, Daniel Borkmann, Yonghong Song,
Daniel Díaz
The perf build failed on i386 on Linux next-20210519 and next-20210520 tag
with gcc-7.3 due to below warnings / errors.
In file included from libbpf.c:55:0:
libbpf.c: In function 'init_map_slots':
libbpf_internal.h:102:22: error: format '%ld' expects argument of type
'long int', but argument 3 has type 'int' [-Werror=format=]
libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
^
libbpf_internal.h:105:27: note: in expansion of macro '__pr'
#define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
^~~~
libbpf.c:4568:4: note: in expansion of macro 'pr_warn'
pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
^~~~~~~
libbpf.c:4568:44: note: format string is defined here
pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
~~^
%d
In file included from libbpf.c:55:0:
libbpf_internal.h:102:22: error: format '%ld' expects argument of type
'long int', but argument 5 has type 'int' [-Werror=format=]
libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
^
libbpf_internal.h:105:27: note: in expansion of macro '__pr'
#define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
^~~~
libbpf.c:4568:4: note: in expansion of macro 'pr_warn'
pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
^~~~~~~
libbpf.c:4568:70: note: format string is defined here
pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
~~^
%d
CC /srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/perf/1.0-r9/perf-1.0/cpu.o
In file included from libbpf.c:55:0:
libbpf.c: In function 'bpf_core_apply_relo':
libbpf_internal.h:102:22: error: format '%ld' expects argument of type
'long int', but argument 3 has type 'int' [-Werror=format=]
libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
^
libbpf_internal.h:105:27: note: in expansion of macro '__pr'
#define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
^~~~
libbpf.c:6192:3: note: in expansion of macro 'pr_warn'
pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
^~~~~~~
libbpf.c:6192:38: note: format string is defined here
pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
~~^
%d
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-buster-lkft/1030/consoleText
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bbpf_internal.h:102:22: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=]
2021-05-20 13:51 bbpf_internal.h:102:22: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=] Naresh Kamboju
@ 2021-05-22 0:48 ` Andrii Nakryiko
0 siblings, 0 replies; 2+ messages in thread
From: Andrii Nakryiko @ 2021-05-22 0:48 UTC (permalink / raw
To: Naresh Kamboju
Cc: bpf, Netdev, lkft-triage, Andrii Nakryiko, Kernel Team,
Alexei Starovoitov, Daniel Borkmann, Yonghong Song,
Daniel Díaz
On Thu, May 20, 2021 at 6:51 AM Naresh Kamboju
<naresh.kamboju@linaro.org> wrote:
>
> The perf build failed on i386 on Linux next-20210519 and next-20210520 tag
> with gcc-7.3 due to below warnings / errors.
Thanks, being addressed in [0].
[0] https://lore.kernel.org/bpf/20210521162041.GH8544@kitsune.suse.cz/
>
> In file included from libbpf.c:55:0:
> libbpf.c: In function 'init_map_slots':
> libbpf_internal.h:102:22: error: format '%ld' expects argument of type
> 'long int', but argument 3 has type 'int' [-Werror=format=]
> libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
> ^
> libbpf_internal.h:105:27: note: in expansion of macro '__pr'
> #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
> ^~~~
> libbpf.c:4568:4: note: in expansion of macro 'pr_warn'
> pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
> ^~~~~~~
> libbpf.c:4568:44: note: format string is defined here
> pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
> ~~^
> %d
> In file included from libbpf.c:55:0:
> libbpf_internal.h:102:22: error: format '%ld' expects argument of type
> 'long int', but argument 5 has type 'int' [-Werror=format=]
> libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
> ^
> libbpf_internal.h:105:27: note: in expansion of macro '__pr'
> #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
> ^~~~
> libbpf.c:4568:4: note: in expansion of macro 'pr_warn'
> pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
> ^~~~~~~
> libbpf.c:4568:70: note: format string is defined here
> pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
> ~~^
> %d
> CC /srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/perf/1.0-r9/perf-1.0/cpu.o
> In file included from libbpf.c:55:0:
> libbpf.c: In function 'bpf_core_apply_relo':
> libbpf_internal.h:102:22: error: format '%ld' expects argument of type
> 'long int', but argument 3 has type 'int' [-Werror=format=]
> libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
> ^
> libbpf_internal.h:105:27: note: in expansion of macro '__pr'
> #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
> ^~~~
> libbpf.c:6192:3: note: in expansion of macro 'pr_warn'
> pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
> ^~~~~~~
> libbpf.c:6192:38: note: format string is defined here
> pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
> ~~^
> %d
>
> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
>
> https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-buster-lkft/1030/consoleText
>
> --
> Linaro LKFT
> https://lkft.linaro.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-22 0:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-20 13:51 bbpf_internal.h:102:22: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Werror=format=] Naresh Kamboju
2021-05-22 0:48 ` Andrii Nakryiko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.