meta-freescale.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* restool:  build error
@ 2022-05-25  2:29 leimaohui
  0 siblings, 0 replies; only message in thread
From: leimaohui @ 2022-05-25  2:29 UTC (permalink / raw)
  To: meta-freescale

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-25  2:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25  2:29 restool: build error leimaohui

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).