restool: build error


leimaohui
 

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

Join {meta-freescale@lists.yoctoproject.org to automatically receive all group messages.