[Buildroot] [PATCH 1/1] package/xenomai: fix build on arc and riscv32
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Aug 12 21:18:39 UTC 2021
Hello Fabrice,
On Tue, 10 Aug 2021 18:24:47 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
> Fix the following build failures on arc and riscv32:
>
> latency.c: In function 'display':
> latency.c:326:21: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'time_t' {aka 'long long int'} [-Werror=format=]
> 326 | ("RTT| %.2ld:%.2ld:%.2ld (%s, %Ld us period, "
> | ~~~~^
> | |
> | long int
> | %.2lld
> 327 | "priority %d)\n", dt / 3600,
> | ~~~~~~~~~
> | |
> | time_t {aka long long int}
>
> altency.c: In function ‘display’:
> altency.c:262:21: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘time_t’ {aka ‘long long int’} [-Werror=format=]
> 262 | ("RTT| %.2ld:%.2ld:%.2ld (%s, %Ld us period, "
> | ~~~~^
> | |
> | long int
> | %.2lld
> 263 | "priority %d)\n", dt / 3600,
> | ~~~~~~~~~
> | |
> | time_t {aka long long int}
>
> Fixes:
> - http://autobuild.buildroot.org/results/448efe22e8fe058a1b354a3c124874e30b9ce138
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> ...2-Add-disable-demo-testsuite-options.patch | 94 +++++++++++++++++++
> package/xenomai/xenomai.mk | 7 +-
> 2 files changed, 100 insertions(+), 1 deletion(-)
> create mode 100644 package/xenomai/3.0.10/0002-Add-disable-demo-testsuite-options.patch
I have applied but, could you (1) submit this patch upstream and (2)
report the issue upstream so that they fix it?
Thanks a lot,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list