public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Arnaldo Carvalho de Melo <arnaldo.melo@gmail•com>,
	Namhyung Kim <namhyung@kernel•org>
Cc: Ian Rogers <irogers@google•com>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: linux-next: build failure after merge of the perf tree
Date: Fri, 11 Oct 2024 10:23:30 +1100	[thread overview]
Message-ID: <20241011102330.02bece12@canb.auug.org.au> (raw)

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

Hi all,

After merging the perf tree, today's linux-next build (native perf)
failed like this:

util/evsel.c: In function 'store_event':
util/evsel.c:138:50: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  138 |         snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir,
      |                                               ~~~^
      |                                                  |
      |                                                  long long unsigned int
      |                                               %lu
  139 |                  attr->type, attr->config, fd);
      |                              ~~~~~~~~~~~~         
      |                                  |
      |                                  __u64 {aka long unsigned int}
util/evsel.c:147:41: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  147 |         if (fprintf(file, "[event-%d-%llu-%d]\n",
      |                                      ~~~^
      |                                         |
      |                                         long long unsigned int
      |                                      %lu
  148 |                     attr->type, attr->config, fd) < 0) {
      |                                 ~~~~~~~~~~~~
      |                                     |
      |                                     __u64 {aka long unsigned int}
util/evsel.c:164:33: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  164 |         WRITE_ASS(config,  "llu");
      |                                 ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:164:9: note: in expansion of macro 'WRITE_ASS'
  164 |         WRITE_ASS(config,  "llu");
      |         ^~~~~~~~~
util/evsel.c:165:39: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  165 |         WRITE_ASS(sample_period, "llu");
      |                                       ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:165:9: note: in expansion of macro 'WRITE_ASS'
  165 |         WRITE_ASS(sample_period, "llu");
      |         ^~~~~~~~~
util/evsel.c:166:39: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  166 |         WRITE_ASS(sample_type,   "llu");
      |                                       ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:166:9: note: in expansion of macro 'WRITE_ASS'
  166 |         WRITE_ASS(sample_type,   "llu");
      |         ^~~~~~~~~
util/evsel.c:167:39: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  167 |         WRITE_ASS(read_format,   "llu");
      |                                       ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:167:9: note: in expansion of macro 'WRITE_ASS'
  167 |         WRITE_ASS(read_format,   "llu");
      |         ^~~~~~~~~
util/evsel.c:198:33: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  198 |         WRITE_ASS(config1, "llu");
      |                                 ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:198:9: note: in expansion of macro 'WRITE_ASS'
  198 |         WRITE_ASS(config1, "llu");
      |         ^~~~~~~~~
util/evsel.c:199:33: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  199 |         WRITE_ASS(config2, "llu");
      |                                 ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:199:9: note: in expansion of macro 'WRITE_ASS'
  199 |         WRITE_ASS(config2, "llu");
      |         ^~~~~~~~~
util/evsel.c:200:44: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  200 |         WRITE_ASS(branch_sample_type, "llu");
      |                                            ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:200:9: note: in expansion of macro 'WRITE_ASS'
  200 |         WRITE_ASS(branch_sample_type, "llu");
      |         ^~~~~~~~~
util/evsel.c:201:44: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type '__u64' {aka 'long unsigned int'} [-Werror=format=]
  201 |         WRITE_ASS(sample_regs_user,   "llu");
      |                                            ^
util/evsel.c:122:28: note: in definition of macro '__WRITE_ASS'
  122 |         if (fprintf(file, #str "=%"fmt "\n", data) < 0) {               \
      |                            ^~~
util/evsel.c:201:9: note: in expansion of macro 'WRITE_ASS'
  201 |         WRITE_ASS(sample_regs_user,   "llu");
      |         ^~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

  f90a29144887 ("perf test: Remove C test wrapper for attr.py")

This is a native build of perf on ppc64le using

  make -C tools/perf -f Makefile.perf NO_BPF_SKEL=1

I have merged the perf tree from next-20241010 for today.

-- 
Cheers,
Stephen Rothwell

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

             reply	other threads:[~2024-10-10 23:23 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-10 23:23 Stephen Rothwell [this message]
2024-10-10 23:57 ` [PATCH] perf tools: Fix build failures on ppc64le Namhyung Kim
2024-10-11  0:48   ` Stephen Rothwell
2024-10-11  6:34     ` Namhyung Kim
2024-10-11  7:05       ` Ian Rogers
2024-10-13  9:29         ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2026-01-19 16:09 linux-next: build failure after merge of the perf tree Mark Brown
2026-01-19 16:37 ` James Clark
2026-01-19 16:43   ` Mark Brown
2026-01-19 16:55     ` James Clark
2026-01-19 17:02       ` Mark Brown
2026-01-26 15:13 ` Mark Brown
2026-01-26 15:20   ` James Clark
2025-03-26 23:22 Stephen Rothwell
2025-03-28  6:40 ` Namhyung Kim
2025-02-14  4:20 Stephen Rothwell
2025-01-09 23:05 Stephen Rothwell
2025-01-09 23:31 ` Charlie Jenkins
2025-01-10 14:01   ` Arnaldo Carvalho de Melo
2025-01-10 17:32     ` Arnaldo Carvalho de Melo
2025-01-10 18:59       ` Charlie Jenkins
2025-01-10 19:22     ` Charlie Jenkins
2024-09-05  1:55 Stephen Rothwell
2024-04-01 22:41 Stephen Rothwell
2024-04-02 20:17 ` Arnaldo Carvalho de Melo
2024-04-12 15:22 ` Arnaldo Carvalho de Melo
2024-04-13  2:43   ` Stephen Rothwell
2024-03-21 21:41 Stephen Rothwell
2024-03-21 23:18 ` Arnaldo Carvalho de Melo
2024-03-21 23:19   ` Arnaldo Carvalho de Melo
2024-03-21 23:32     ` Stephen Rothwell
2024-03-22  2:13       ` Stephen Rothwell
2024-03-22 14:32         ` Arnaldo Carvalho de Melo
2024-03-21 23:36   ` Stephen Rothwell
2024-03-21 23:40     ` arnaldo.melo
2024-03-21 23:48     ` Arnaldo Carvalho de Melo
2024-02-21 23:06 Stephen Rothwell
2024-02-23 19:50 ` Arnaldo Carvalho de Melo
2024-02-06 23:40 Stephen Rothwell
2024-02-07  0:02 ` Ian Rogers
2023-10-24 23:26 Stephen Rothwell
2023-10-25  0:34 ` Namhyung Kim
2023-05-29 23:05 Stephen Rothwell
2023-05-30  2:16 ` Ian Rogers
2023-03-16 22:50 Stephen Rothwell
2023-03-16 23:11 ` Arnaldo Carvalho de Melo
2023-03-16 23:55   ` Stephen Rothwell
2023-03-17  3:23     ` Ian Rogers
2023-03-21 21:39 ` Stephen Rothwell
2023-03-22 18:37   ` Ian Rogers
2023-03-22 22:54     ` Stephen Rothwell
2023-03-23 13:27       ` Arnaldo Carvalho de Melo
2023-03-27 20:31         ` Ian Rogers
2023-03-28  1:33         ` Stephen Rothwell
2023-03-28 19:47           ` Arnaldo Carvalho de Melo
2023-03-28 23:06             ` Stephen Rothwell
2023-03-29 12:28               ` Arnaldo Carvalho de Melo
2023-04-03  5:15                 ` Stephen Rothwell
2022-08-30 22:34 Stephen Rothwell
2022-09-01  5:11 ` Anshuman Khandual
2022-09-06 19:05 ` Stephen Rothwell
2022-09-07  2:31   ` Anshuman Khandual
2022-09-07  3:00     ` Stephen Rothwell
2022-09-07  4:22       ` Anshuman Khandual
2022-09-08 15:21         ` Arnaldo Carvalho de Melo
2022-07-20 23:05 Stephen Rothwell
2022-07-21  2:35 ` Ian Rogers
2022-07-21  3:55   ` Stephen Rothwell
2022-07-21  5:33     ` Ian Rogers
2022-01-05 22:19 Stephen Rothwell
2022-01-07  8:58 ` kajoljain
2022-01-11 21:45   ` Stephen Rothwell
2022-01-11 22:01     ` Arnaldo Carvalho de Melo
2022-01-12  5:30       ` kajoljain
2022-01-12  6:16       ` Stephen Rothwell
2022-01-14 12:03       ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241011102330.02bece12@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=arnaldo.melo@gmail$(echo .)com \
    --cc=irogers@google$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=namhyung@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox