All of lore.kernel.org
 help / color / mirror / Atom feed
* [next] perf build failures: libbpf.c:10946:50: error: format '%li' expects argument of type 'long int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'} [-Werror=format=]
@ 2022-04-07 10:16 Naresh Kamboju
  2022-04-07 12:23 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2022-04-07 10:16 UTC (permalink / raw)
  To: Linux-Next Mailing List, open list, perf-users, lkft-triage
  Cc: Arnaldo Carvalho de Melo, NeilBrown, tanu235m, Matthew Wilcox,
	Thierry Reding, mgorman, Andrew Morton

perf build errors on i386 [1] on Linux next-20220407 [2]

usdt.c:1181:5: error: "__x86_64__" is not defined, evaluates to 0
[-Werror=undef]
 1181 | #if __x86_64__
      |     ^~~~~~~~~~
usdt.c:1196:5: error: "__x86_64__" is not defined, evaluates to 0
[-Werror=undef]
 1196 | #if __x86_64__
      |     ^~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [/builds/linux/tools/build/Makefile.build:97:
/home/tuxbuild/.cache/tuxmake/builds/1/build/libbpf/staticobjs/usdt.o]
Error 1
make[4]: *** Waiting for unfinished jobs....
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/values.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/backward-ring-buffer.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/sdt.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/is_printable_array.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/debug.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/fncache.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/bitmap.o
  CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/machine.o
libbpf.c: In function 'attach_uprobe':
libbpf.c:10946:50: error: format '%li' expects argument of type 'long
int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'}
[-Werror=format=]
10946 |         n = sscanf(func_name, "%m[a-zA-Z0-9_.]+%li", &func, &offset);
      |                                                ~~^          ~~~~~~~
      |                                                  |          |
      |                                                  long int *
size_t * {aka unsigned int *}
      |                                                %i
cc1: all warnings being treated as errors
make[4]: *** [/builds/linux/tools/build/Makefile.build:96:
/home/tuxbuild/.cache/tuxmake/builds/1/build/libbpf/staticobjs/libbpf.o]
Error 1

metadata:
  git_ref: master
  git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
  git_sha: 2e9a9857569ec27e64d2ddd01294bbe3c736acb1
  git_describe: next-20220407
  kernel-config: https://builds.tuxbuild.com/27SL0lCnWoPP04Jn8zKQ5nEEX7i/config
  target_arch: i386

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

--
Linaro LKFT
https://lkft.linaro.org


[1] https://builds.tuxbuild.com/27SL0lCnWoPP04Jn8zKQ5nEEX7i/
[2] https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/2302706510

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [next] perf build failures: libbpf.c:10946:50: error: format '%li' expects argument of type 'long int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'} [-Werror=format=]
  2022-04-07 10:16 [next] perf build failures: libbpf.c:10946:50: error: format '%li' expects argument of type 'long int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'} [-Werror=format=] Naresh Kamboju
@ 2022-04-07 12:23 ` Stephen Rothwell
  2022-04-07 15:57   ` Andrii Nakryiko
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2022-04-07 12:23 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: Linux-Next Mailing List, open list, perf-users, lkft-triage,
	Arnaldo Carvalho de Melo, NeilBrown, tanu235m, Matthew Wilcox,
	Thierry Reding, mgorman, Andrew Morton, Andrii Nakryiko,
	Alexei Starovoitov, Alan Maguire, Dave Marchevsky

[-- Attachment #1: Type: text/plain, Size: 2548 bytes --]

Hi Naresh,

On Thu, 7 Apr 2022 15:46:53 +0530 Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> perf build errors on i386 [1] on Linux next-20220407 [2]
> 
> usdt.c:1181:5: error: "__x86_64__" is not defined, evaluates to 0
> [-Werror=undef]
>  1181 | #if __x86_64__
>       |     ^~~~~~~~~~
> usdt.c:1196:5: error: "__x86_64__" is not defined, evaluates to 0
> [-Werror=undef]
>  1196 | #if __x86_64__
>       |     ^~~~~~~~~~
> cc1: all warnings being treated as errors

Caused by commit

  4c59e584d158 ("libbpf: Add x86-specific USDT arg spec parsing logic")

>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/values.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/backward-ring-buffer.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/sdt.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/is_printable_array.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/debug.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/fncache.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/bitmap.o
>   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/machine.o
> libbpf.c: In function 'attach_uprobe':
> libbpf.c:10946:50: error: format '%li' expects argument of type 'long
> int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'}
> [-Werror=format=]
> 10946 |         n = sscanf(func_name, "%m[a-zA-Z0-9_.]+%li", &func, &offset);
>       |                                                ~~^          ~~~~~~~
>       |                                                  |          |
>       |                                                  long int *
> size_t * {aka unsigned int *}
>       |                                                %i
> cc1: all warnings being treated as errors

Caused by commit

  39f8dc43b7a0 ("libbpf: Add auto-attach for uprobes based on section name")

> metadata:
>   git_ref: master
>   git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
>   git_sha: 2e9a9857569ec27e64d2ddd01294bbe3c736acb1
>   git_describe: next-20220407
>   kernel-config: https://builds.tuxbuild.com/27SL0lCnWoPP04Jn8zKQ5nEEX7i/config
>   target_arch: i386
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> 
> --
> Linaro LKFT
> https://lkft.linaro.org
> 
> 
> [1] https://builds.tuxbuild.com/27SL0lCnWoPP04Jn8zKQ5nEEX7i/
> [2] https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/2302706510

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [next] perf build failures: libbpf.c:10946:50: error: format '%li' expects argument of type 'long int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'} [-Werror=format=]
  2022-04-07 12:23 ` Stephen Rothwell
@ 2022-04-07 15:57   ` Andrii Nakryiko
  0 siblings, 0 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2022-04-07 15:57 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Naresh Kamboju, Linux-Next Mailing List, open list, perf-users,
	lkft-triage, Arnaldo Carvalho de Melo, NeilBrown, tanu235m,
	Matthew Wilcox, Thierry Reding, Mel Gorman, Andrew Morton,
	Andrii Nakryiko, Alexei Starovoitov, Alan Maguire,
	Dave Marchevsky

On Thu, Apr 7, 2022 at 5:23 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi Naresh,
>
> On Thu, 7 Apr 2022 15:46:53 +0530 Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> >
> > perf build errors on i386 [1] on Linux next-20220407 [2]
> >
> > usdt.c:1181:5: error: "__x86_64__" is not defined, evaluates to 0
> > [-Werror=undef]
> >  1181 | #if __x86_64__
> >       |     ^~~~~~~~~~
> > usdt.c:1196:5: error: "__x86_64__" is not defined, evaluates to 0
> > [-Werror=undef]
> >  1196 | #if __x86_64__
> >       |     ^~~~~~~~~~
> > cc1: all warnings being treated as errors
>
> Caused by commit
>
>   4c59e584d158 ("libbpf: Add x86-specific USDT arg spec parsing logic")
>
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/values.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/backward-ring-buffer.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/sdt.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/is_printable_array.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/debug.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/fncache.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/tests/bitmap.o
> >   CC      /home/tuxbuild/.cache/tuxmake/builds/1/build/util/machine.o
> > libbpf.c: In function 'attach_uprobe':
> > libbpf.c:10946:50: error: format '%li' expects argument of type 'long
> > int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'}
> > [-Werror=format=]
> > 10946 |         n = sscanf(func_name, "%m[a-zA-Z0-9_.]+%li", &func, &offset);
> >       |                                                ~~^          ~~~~~~~
> >       |                                                  |          |
> >       |                                                  long int *
> > size_t * {aka unsigned int *}
> >       |                                                %i
> > cc1: all warnings being treated as errors
>
> Caused by commit
>
>   39f8dc43b7a0 ("libbpf: Add auto-attach for uprobes based on section name")
>

My bad, I'll fix both issues in bpf-next and will send a fix today.
Thanks for letting me know!

> > metadata:
> >   git_ref: master
> >   git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
> >   git_sha: 2e9a9857569ec27e64d2ddd01294bbe3c736acb1
> >   git_describe: next-20220407
> >   kernel-config: https://builds.tuxbuild.com/27SL0lCnWoPP04Jn8zKQ5nEEX7i/config
> >   target_arch: i386
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > --
> > Linaro LKFT
> > https://lkft.linaro.org
> >
> >
> > [1] https://builds.tuxbuild.com/27SL0lCnWoPP04Jn8zKQ5nEEX7i/
> > [2] https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/2302706510
>
> --
> Cheers,
> Stephen Rothwell

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-07 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 10:16 [next] perf build failures: libbpf.c:10946:50: error: format '%li' expects argument of type 'long int *', but argument 4 has type 'size_t *' {aka 'unsigned int *'} [-Werror=format=] Naresh Kamboju
2022-04-07 12:23 ` Stephen Rothwell
2022-04-07 15:57   ` 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.