All of lore.kernel.org
 help / color / mirror / Atom feed
* error compiling patched 5.4.77 Linux kernel on x86
@ 2020-11-19 20:34 Andy Tannenbaum
  2020-11-20  9:46 ` Fino Meng
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Tannenbaum @ 2020-11-19 20:34 UTC (permalink / raw)
  To: xenomai

I am having trouble building a kernel with the new
ipipe-core-5.4.77-x86-2.patch.

Before this, I am successfully running Xenomai 3.1 and Linux 4.19 cip24:on x86
https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot/linux-cip-4.19.114-cip24.tar.gz

I am trying to upgrade to Linux 5.4 with the recent ipipe patch:

https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.77.tar.xz
https://xenomai.org/downloads/ipipe/v5.x/x86/ipipe-core-5.4.77-x86-2.patch

I was able to apply the new ipipe patch with Xenomai 3.1, but my
compile failed with an args mismatch in
xenomai/thread.c, calling switch_fpu_finish()
I see that the internal.h definition is different from the thread.c code.
(compile error output below)

This was after I turned off the suggested list of Linux kernel .config
options like ACPI_PROCESSOR, CPU_FREQ, etc.
Please advise.
Should I post my kernel .config file?

-Andy

<<<<

  CC      arch/x86/entry/vdso/vdso32/vclock_gettime.o
  CC [M]  arch/x86/crypto/aesni-intel_glue.o
arch/x86/xenomai/thread.c: In function 'xnarch_leave_root':
arch/x86/xenomai/thread.c:475:2: error: too many arguments to function
'switch_fpu_finish'
  475 |  switch_fpu_finish(&current->thread.fpu, smp_processor_id());
      |  ^~~~~~~~~~~~~~~~~
In file included from arch/x86/xenomai/include/asm/xenomai/wrappers.h:44,
                 from include/xenomai/cobalt/kernel/timer.h:28,
                 from include/xenomai/cobalt/kernel/thread.h:27,
                 from arch/x86/xenomai/thread.c:25:
./arch/x86/include/asm/fpu/internal.h:594:20: note: declared here
  594 | static inline void switch_fpu_finish(struct fpu *new_fpu)
      |                    ^~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:266: arch/x86/xenomai/thread.o] Error 1
make: *** [Makefile:1729: arch/x86/xenomai] Error 2
make: *** Waiting for unfinished jobs....
  AS [M]  arch/x86/crypto/aesni-intel_avx-x86_64.o
  CC      arch/x86/events/amd/core.o
  AS      arch/x86/entry/vdso/vdso32/note.o
...

>>>>


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

* Re: error compiling patched 5.4.77 Linux kernel on x86
  2020-11-19 20:34 error compiling patched 5.4.77 Linux kernel on x86 Andy Tannenbaum
@ 2020-11-20  9:46 ` Fino Meng
  0 siblings, 0 replies; 2+ messages in thread
From: Fino Meng @ 2020-11-20  9:46 UTC (permalink / raw)
  To: Andy Tannenbaum; +Cc: xenomai

On Thu, Nov 19, 2020 at 03:34:31PM -0500, Andy Tannenbaum via Xenomai wrote:
> I am having trouble building a kernel with the new
> ipipe-core-5.4.77-x86-2.patch.
> 
> Before this, I am successfully running Xenomai 3.1 and Linux 4.19 cip24:on x86
> https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot/linux-cip-4.19.114-cip24.tar.gz
> 
> I am trying to upgrade to Linux 5.4 with the recent ipipe patch:
> 
> https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.77.tar.xz
> https://xenomai.org/downloads/ipipe/v5.x/x86/ipipe-core-5.4.77-x86-2.patch
> 
> I was able to apply the new ipipe patch with Xenomai 3.1, but my

5.4 porting work against xenomai's next branch:

git clone -b next https://git.xenomai.org/xenomai xenomai-next

should not be a issue with .config

and in our test machine(Debian 10 with Gnome desktop), we see system hang issue within 48 hours' run,
workload is 8 glmark2 windows.

BR fino

> compile failed with an args mismatch in
> xenomai/thread.c, calling switch_fpu_finish()
> I see that the internal.h definition is different from the thread.c code.
> (compile error output below)
> 
> This was after I turned off the suggested list of Linux kernel .config
> options like ACPI_PROCESSOR, CPU_FREQ, etc.
> Please advise.
> Should I post my kernel .config file?
> 
> -Andy
> 
> <<<<
> 
>   CC      arch/x86/entry/vdso/vdso32/vclock_gettime.o
>   CC [M]  arch/x86/crypto/aesni-intel_glue.o
> arch/x86/xenomai/thread.c: In function 'xnarch_leave_root':
> arch/x86/xenomai/thread.c:475:2: error: too many arguments to function
> 'switch_fpu_finish'
>   475 |  switch_fpu_finish(&current->thread.fpu, smp_processor_id());
>       |  ^~~~~~~~~~~~~~~~~
> In file included from arch/x86/xenomai/include/asm/xenomai/wrappers.h:44,
>                  from include/xenomai/cobalt/kernel/timer.h:28,
>                  from include/xenomai/cobalt/kernel/thread.h:27,
>                  from arch/x86/xenomai/thread.c:25:
> ./arch/x86/include/asm/fpu/internal.h:594:20: note: declared here
>   594 | static inline void switch_fpu_finish(struct fpu *new_fpu)
>       |                    ^~~~~~~~~~~~~~~~~
> make[1]: *** [scripts/Makefile.build:266: arch/x86/xenomai/thread.o] Error 1
> make: *** [Makefile:1729: arch/x86/xenomai] Error 2
> make: *** Waiting for unfinished jobs....
>   AS [M]  arch/x86/crypto/aesni-intel_avx-x86_64.o
>   CC      arch/x86/events/amd/core.o
>   AS      arch/x86/entry/vdso/vdso32/note.o
> ...
> 
> >>>>
> 


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

end of thread, other threads:[~2020-11-20  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-19 20:34 error compiling patched 5.4.77 Linux kernel on x86 Andy Tannenbaum
2020-11-20  9:46 ` Fino Meng

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.