All of lore.kernel.org
 help / color / mirror / Atom feed
* [I-PIPE] ipipe-core-5.4.119-arm-2 released
@ 2021-05-21  4:32 xenomai
  2021-05-21  9:22 ` Michael Opdenacker
  0 siblings, 1 reply; 4+ messages in thread
From: xenomai @ 2021-05-21  4:32 UTC (permalink / raw)
  To: xenomai

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [I-PIPE] ipipe-core-5.4.119-arm-2 released
  2021-05-21  4:32 [I-PIPE] ipipe-core-5.4.119-arm-2 released xenomai
@ 2021-05-21  9:22 ` Michael Opdenacker
  2021-05-21  9:35   ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Opdenacker @ 2021-05-21  9:22 UTC (permalink / raw)
  To: 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 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.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [I-PIPE] ipipe-core-5.4.119-arm-2 released
  2021-05-21  9:22 ` Michael Opdenacker
@ 2021-05-21  9:35   ` Jan Kiszka
  2021-05-21 11:07     ` Michael Opdenacker
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2021-05-21  9:35 UTC (permalink / raw)
  To: Michael Opdenacker, xenomai

On 21.05.21 11:22, Michael Opdenacker via Xenomai wrote:
> 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?
> 

Yes:

https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6

What's your Xenomai version? We likely need a 3.1.1 soon...

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [I-PIPE] ipipe-core-5.4.119-arm-2 released
  2021-05-21  9:35   ` Jan Kiszka
@ 2021-05-21 11:07     ` Michael Opdenacker
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Opdenacker @ 2021-05-21 11:07 UTC (permalink / raw)
  To: Jan Kiszka, xenomai

Hi Jan,

On 5/21/21 11:35 AM, Jan Kiszka wrote:
> Yes:
>
> https://source.denx.de/Xenomai/xenomai/-/commit/18ab00b7b0c2c2d0ed1f560cf4fb4161f6e9bde6


Indeed, this fixes the kernel build, thanks!

>
> What's your Xenomai version? We likely need a 3.1.1 soon...


I'm using Xenomai 3.1.

Thanks again,

Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-21 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21  4:32 [I-PIPE] ipipe-core-5.4.119-arm-2 released xenomai
2021-05-21  9:22 ` Michael Opdenacker
2021-05-21  9:35   ` Jan Kiszka
2021-05-21 11:07     ` Michael Opdenacker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.