All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fino Meng <fino.meng@linux.intel.com>
To: Andy Tannenbaum <trb@bioniklabs.com>
Cc: xenomai@xenomai.org
Subject: Re: error compiling patched 5.4.77 Linux kernel on x86
Date: Fri, 20 Nov 2020 17:46:46 +0800	[thread overview]
Message-ID: <20201120094645.GA785@linux.intel.com> (raw)
In-Reply-To: <CAHcYe6mzT2Tu9bWz14Fa8nGGb9ZAoqJ+XPZQf5RoHDduVLMWSQ@mail.gmail.com>

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
> ...
> 
> >>>>
> 


      reply	other threads:[~2020-11-20  9:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201120094645.GA785@linux.intel.com \
    --to=fino.meng@linux.intel.com \
    --cc=trb@bioniklabs.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.