meta-freescale.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: "leimaohui@fujitsu.com" <leimaohui@fujitsu.com>
To: "meta-freescale@lists.yoctoproject.org"
	<meta-freescale@lists.yoctoproject.org>
Subject: restool:  build error
Date: Wed, 25 May 2022 02:29:51 +0000	[thread overview]
Message-ID: <OS0PR01MB61785C415344D6C5819103D5A0D69@OS0PR01MB6178.jpnprd01.prod.outlook.com> (raw)

Hi, all

   I built restool with new poky, but failed. The error is like the following. So, is there anybody can give me some suggestions?

----------------------------
| mc_v10/dprc.c: In function 'dprc_get_res_ids':
| mc_v10/fsl_mc_cmd.h:56:42: error: right shift count >= width of type [-Werror=shift-count-overflow]
|    56 |                 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
|       |                                          ^~
| mc_v10/fsl_dprc_cmd.h:77:9: note: in expansion of macro 'GENMASK'
|    77 |         GENMASK(DPRC_##field##_SHIFT + DPRC_##field##_SIZE - 1, \
|       |         ^~~~~~~
| mc_v10/fsl_dprc_cmd.h:80:54: note: in expansion of macro 'DPRC_MASK'
|    80 |         ((var) |= (((val) << DPRC_##field##_SHIFT) & DPRC_MASK(field)))
|       |                                                      ^~~~~~~~~
| mc_v10/dprc.c:611:9: note: in expansion of macro 'dprc_set_field'
|   611 |         dprc_set_field(cmd_params->iter_status_lo,
|       |         ^~~~~~~~~~~~~~
| mc_v10/fsl_mc_cmd.h:56:42: error: right shift count >= width of type [-Werror=shift-count-overflow]
|    56 |                 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
|       |                                          ^~
| mc_v10/fsl_dprc_cmd.h:77:9: note: in expansion of macro 'GENMASK'
|    77 |         GENMASK(DPRC_##field##_SHIFT + DPRC_##field##_SIZE - 1, \
|       |         ^~~~~~~
......
| dpdmux_commands.c: In function 'print_dpdmux_endpoint':
| dpdmux_commands.c:380:41: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
|   380 |                         printf("\t%s: %lu\n", dpdmux_counters[i], count);
|       |                                       ~~^                         ~~~~~
|       |                                         |                         |
|       |                                         long unsigned int         uint64_t {aka long long unsigned int}
|       |                                       %llu
| cc1: all warnings being treated as errors
| cc1: all warnings being treated as errors
| In file included from mc_v10/dpdbg.c:35:
| mc_v10/dpdbg.c: In function 'dpdbg_set_ctlu_profiling_counters':
| mc_v10/fsl_mc_cmd.h:56:42: error: right shift count >= width of type [-Werror=shift-count-overflow]
|    56 |                 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
|       |                                          ^~
......


Best regards
Lei

                 reply	other threads:[~2022-05-25  2:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=OS0PR01MB61785C415344D6C5819103D5A0D69@OS0PR01MB6178.jpnprd01.prod.outlook.com \
    --to=leimaohui@fujitsu.com \
    --cc=meta-freescale@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).