ipipe-core-5.4.119-arm-2 released
Download URL: https://xenomai.org/downloads/ipipe/v5.x/arm/ipipe-core-5.4.119-arm-2.patch
Repository: https://git.xenomai.org/ipipe-arm
Release tag: ipipe-core-5.4.119-arm-2
Greetings,
After downloading this new patch and patching the 5.4.119 kernel sources for arm through "./scripts/prepare-kernel.sh", I'm facing kernel compiling issues with the "sama5_defconfig" configuration:
CC kernel/xenomai/intr.o
In file included from include/xenomai/cobalt/kernel/thread.h:26:0,
from include/xenomai/cobalt/kernel/sched.h:24,
from kernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘inc_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
^include/xenomai/cobalt/kernel/stat.h:147:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:123:2: note: in expansion of macro ‘xnstat_exectime_lazy_switch’
xnstat_exectime_lazy_switch(sched, &statp->account, start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/atomic.h:76:0,
from ./include/asm-generic/bitops/lock.h:5,
from ./arch/arm/include/asm/bitops.h:243,
from ./include/linux/bitops.h:26,
from ./include/linux/kernel.h:12,
from ./include/asm-generic/bug.h:19,
from ./arch/arm/include/asm/bug.h:60,
from ./include/linux/bug.h:5,
from ./include/linux/thread_info.h:12,
from ./include/asm-generic/current.h:5,
from ./arch/arm/include/generated/asm/current.h:1,
from ./include/linux/mutex.h:14,
from kernel/xenomai/intr.c:21:...
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:262: kernel/xenomai/intr.o] Error 1 make[1]: *** [scripts/Makefile.build:496: kernel/xenomai] Error 2
make: *** [Makefile:1734: kernel] Error 2
I'm using the Linaro ARM 2018.05 toolchain (Linaro GCC 7.3-2018.05), but I also tried with another toolchain (gcc 10.2), and getting the same issue.
I don't have any trouble with ipipe-core-4.19.144-arm-10.patch on sama5_defconfig.
Does it ring a bell to anyone?
Cheers,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 39 lines · Michael Opdenacker via Xenomai
Greetings,
After downloading this new patch and patching the 5.4.119 kernel sources for arm through "
./scripts/prepare-kernel.sh", I'm facing kernel compiling issues with the "sama5_defconfig" configuration:CC
kernel/xenomai/intr.o
In file included frominclude/xenomai/cobalt/kernel/thread.h:26:0,
frominclude/xenomai/cobalt/kernel/sched.h:24,
fromkernel/xenomai/intr.c:24:kernel/xenomai/intr.c: In function ‘inc_irqstats’:include/xenomai/cobalt/kernel/stat.h:61:49: error: passing argument 1 of ‘atomic_long_xchg’ from incompatible pointer type [-Werror=incompatible-pointer-types]__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \ ^
include/xenomai/cobalt/kernel/stat.h:147:2: note: in expansion of macro ‘xnstat_exectime_set_current’
xnstat_exectime_set_current(sched, new_account); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~kernel/xenomai/intr.c:123:2: note: in expansion of macro ‘xnstat_exectime_lazy_switch’
xnstat_exectime_lazy_switch(sched, &statp->account, start); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from./include/linux/atomic.h:76:0,from ./include/asm-generic/bitops/lock.h:5, from ./arch/arm/include/asm/bitops.h:243, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./include/asm-generic/bug.h:19, from ./arch/arm/include/asm/bug.h:60, from ./include/linux/bug.h:5, from ./include/linux/thread_info.h:12, from ./include/asm-generic/current.h:5, from ./arch/arm/include/generated/asm/current.h:1, from ./include/linux/mutex.h:14, from kernel/xenomai/intr.c:21:...
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:262:kernel/xenomai/intr.o] Error 1 make[1]: *** [scripts/Makefile.build:496: kernel/xenomai] Error 2
make: *** [Makefile:1734: kernel] Error 2
Quoted 8 lines
I'm using the Linaro ARM 2018.05 toolchain (Linaro GCC 7.3-2018.05), but I also tried with another toolchain (gcc 10.2), and getting the same issue.
I don't have any trouble with ipipe-core-4.19.144-arm-10.patch on
sama5_defconfig.Does it ring a bell to anyone?
Yes:
https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6
What's your Xenomai version? We likely need a 3.1.1 soon...
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Hi Jan,
Quoted 3 lines · Jan Kiszka
Yes:
https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6
Indeed, this fixes the kernel build, thanks!
Quoted 2 lines
What's your Xenomai version? We likely need a 3.1.1 soon...
I'm using Xenomai 3.1.
Thanks again,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com