Add --disable-{demo,testsuite} options
PATCH 1/1 Add --disable-{demo,testsuite} options
Allow the user to disable demo and testsuite to avoid 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
--- Makefile.am | 12 ++++++++++-- configure.ac | 12 ++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-)
Makefile.am +10 -2
@@ -6,9 +6,17 @@ SUBDIRS = \ config \ include \ scripts \ - testsuite \ - utils \ + utils + +if XENO_ENABLE_DEMO +SUBDIRS += \ demo +endif + +if XENO_ENABLE_TESTSUITE +SUBDIRS += \ + testsuite +endif EXTRA_DIST = kernel debian
configure.ac +12 -0
@@ -200,6 +200,18 @@ test \! x$debug_mode = x && AC_DEFINE(CONFIG_XENO_DEBUG,1,[config]) AM_CONDITIONAL(XENO_DEBUG_FULL,[test x$debug_mode = xfull]) test x$debug_mode = xfull && AC_DEFINE(CONFIG_XENO_DEBUG_FULL,1,[config]) +dnl Demo (default: on) + +AC_ARG_ENABLE(demo, + AS_HELP_STRING([--disable-demo], [Disable demo])) +AM_CONDITIONAL(XENO_ENABLE_DEMO,[test x$enable_demo != xno]) + +dnl Testsuite (default: on) + +AC_ARG_ENABLE(testsuite, + AS_HELP_STRING([--disable-testsuite], [Disable testsuite])) +AM_CONDITIONAL(XENO_ENABLE_TESTSUITE,[test x$enable_testsuite != xno]) + dnl Low resolution clock (default: off) unset lores_clock
Signature · 1 line
2.30.2
Quoted 2 lines · Fabrice Fontaine via Xenomai
Allow the user to disable demo and testsuite to avoid the following build failures on arc and riscv32:
Are you working on ports to those archs? Or is xenomai userland just prematurely built for those in buildroot?
Quoted 15 lines
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=]
Quoted 10 lines
262 | ("RTT| %.2ld:%.2ld:%.2ld (%s, %Ld us period, "
| ~~~~^
| |
| long int
| %.2lld
263 | "priority %d)\n", dt / 3600,
| ~~~~~~~~~
| |
| time_t {aka long long int}How about fixing those issues instead?
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 7 lines · Jan Kiszka
Quoted 2 lines · Fabrice Fontaine via Xenomai
Allow the user to disable demo and testsuite to avoid the following build failures on arc and riscv32:
Are you working on ports to those archs? Or is xenomai userland just prematurely built for those in buildroot?
No, I'm not working on ports to those archs. I just sent this patch to fix buidlroot autobuilder failures. I'm not even an expert in xenomai. In buildroot, we allow to build xenomai userland on all architectures. The only requirement on the toolchain is that it must have threads, sync and must be uclibc or glibc:
https://git.buildroot.net/buildroot/commit/package/xenomai/Config.in?id=c35f157486431eafdb8d3583fc52d8ce4c784cf3.
In cobalt core, we're restricting the architectures to x86, powerpc and ARM.
Quoted 27 lines
Quoted 16 lines
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=]Quoted 10 lines
262 | ("RTT| %.2ld:%.2ld:%.2ld (%s, %Ld us period, " | ~~~~^ | | | long int | %.2lld 263 | "priority %d)\n", dt / 3600, | ~~~~~~~~~ | | | time_t {aka long long int}
Quoted 1 line
How about fixing those issues instead?
Indeed, fixing those issues would be great. I'll let you handle that. However, I also think that disabling demo and testsuite is a nice addition as it will decrease compile time and save disk space.
Quoted 6 lines
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
Best Regards,
Fabrice
Quoted 8 lines · Fabrice Fontaine
Quoted 7 lines · Jan Kiszka
Quoted 2 lines · Fabrice Fontaine via Xenomai
Allow the user to disable demo and testsuite to avoid the following build failures on arc and riscv32:
Are you working on ports to those archs? Or is xenomai userland just prematurely built for those in buildroot?
Quoted 7 lines
No, I'm not working on ports to those archs. I just sent this patch to fix buidlroot autobuilder failures. I'm not even an expert in xenomai. In buildroot, we allow to build xenomai userland on all architectures. The only requirement on the toolchain is that it must have threads, sync and must be uclibc or glibc:
https://git.buildroot.net/buildroot/commit/package/xenomai/Config.in?id=c35f157486431eafdb8d3583fc52d8ce4c784cf3.
In cobalt core, we're restricting the architectures to x86, powerpc and ARM.
Ah, ok, these are mercury userland builds. Makes more sense now.
Quoted 27 lines
Quoted 27 lines
Quoted 26 lines
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}
Quoted 2 lines
Quoted 1 line
How about fixing those issues instead?
Indeed, fixing those issues would be great. I'll let you handle that.
I wouldn't mind getting patches as well. ;)
Quoted 2 lines
However, I also think that disabling demo and testsuite is a nice addition as it will decrease compile time and save disk space.
I don't disagree. I just don't like merging a feature with the argument "this works around a bug". If you resend with adjusted reasoning, I'm fine with merging the functional changes.
But then I would still not use that to address the above errors...
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 50 lines · Jan Kiszka
Quoted 8 lines · Fabrice Fontaine
Quoted 7 lines · Jan Kiszka
Quoted 2 lines · Fabrice Fontaine via Xenomai
Allow the user to disable demo and testsuite to avoid the following build failures on arc and riscv32:
Are you working on ports to those archs? Or is xenomai userland just prematurely built for those in buildroot?
Quoted 7 lines
No, I'm not working on ports to those archs. I just sent this patch to fix buidlroot autobuilder failures. I'm not even an expert in xenomai. In buildroot, we allow to build xenomai userland on all architectures. The only requirement on the toolchain is that it must have threads, sync and must be uclibc or glibc:
https://git.buildroot.net/buildroot/commit/package/xenomai/Config.in?id=c35f157486431eafdb8d3583fc52d8ce4c784cf3.
In cobalt core, we're restricting the architectures to x86, powerpc and ARM.Ah, ok, these are mercury userland builds. Makes more sense now.
Quoted 27 lines
Quoted 27 lines
Quoted 26 lines
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}Quoted 2 lines
Quoted 1 line
How about fixing those issues instead?
Indeed, fixing those issues would be great. I'll let you handle that.
Quoted 8 lines
I wouldn't mind getting patches as well. ;)
Quoted 2 lines
However, I also think that disabling demo and testsuite is a nice addition as it will decrease compile time and save disk space.
I don't disagree. I just don't like merging a feature with the argument "this works around a bug". If you resend with adjusted reasoning, I'm fine with merging the functional changes.
OK, I sent a new patch set.
Quoted 8 lines
But then I would still not use that to address the above errors...
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
Best Regards,
Fabrice