All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686)
       [not found] <mailman.5479.1202920211.28415.xenomai@xenomai.org>
@ 2008-02-14 15:17 ` Hubert Talbot
  2008-02-14 15:33   ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Hubert Talbot @ 2008-02-14 15:17 UTC (permalink / raw)
  To: xenomai

Hi,

I try to build kernel 2.6.24 with adeos-ipipe-2.6.24-x86-2.0-03.patch
and I get this:

  ...
  AR      arch/x86/lib/lib.a
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/x86/kernel/built-in.o: In function `do_machine_check_vector':
ipipe.c:(.text+0x128de): undefined reference to `do_machine_check'
make[1]: *** [.tmp_vmlinux1] Erreur 1
make[1]: quittant le répertoire * /usr/src/linux-2.6.24 *
make: *** [debian/stamp-build-kernel] Erreur 2

real	7m59.559s
user	6m36.813s
sys	0m40.419s


Just to report the problem...


Hubert


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

* Re: [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686)
  2008-02-14 15:17 ` [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686) Hubert Talbot
@ 2008-02-14 15:33   ` Philippe Gerum
  2008-02-16 11:21     ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2008-02-14 15:33 UTC (permalink / raw)
  To: Hubert Talbot; +Cc: xenomai

Hubert Talbot wrote:
> Hi,
> 
> I try to build kernel 2.6.24 with adeos-ipipe-2.6.24-x86-2.0-03.patch
> and I get this:
> 
>   ...
>   AR      arch/x86/lib/lib.a
>   GEN     .version
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> arch/x86/kernel/built-in.o: In function `do_machine_check_vector':
> ipipe.c:(.text+0x128de): undefined reference to `do_machine_check'
> make[1]: *** [.tmp_vmlinux1] Erreur 1
> make[1]: quittant le répertoire * /usr/src/linux-2.6.24 *
> make: *** [debian/stamp-build-kernel] Erreur 2
>

It's a 64bit symbol only it seems. Disable CONFIG_X86_MCE for now, will
fix. Thanks.

> real	7m59.559s
> user	6m36.813s
> sys	0m40.419s
> 
> 
> Just to report the problem...
> 
> 
> Hubert
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 
Philippe.


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

* Re: [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686)
  2008-02-14 15:33   ` Philippe Gerum
@ 2008-02-16 11:21     ` Jan Kiszka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2008-02-16 11:21 UTC (permalink / raw)
  To: rpm; +Cc: Hubert Talbot, xenomai

[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]

Philippe Gerum wrote:
> Hubert Talbot wrote:
>> Hi,
>>
>> I try to build kernel 2.6.24 with adeos-ipipe-2.6.24-x86-2.0-03.patch
>> and I get this:
>>
>>   ...
>>   AR      arch/x86/lib/lib.a
>>   GEN     .version
>>   CHK     include/linux/compile.h
>>   UPD     include/linux/compile.h
>>   CC      init/version.o
>>   LD      init/built-in.o
>>   LD      .tmp_vmlinux1
>> arch/x86/kernel/built-in.o: In function `do_machine_check_vector':
>> ipipe.c:(.text+0x128de): undefined reference to `do_machine_check'
>> make[1]: *** [.tmp_vmlinux1] Erreur 1
>> make[1]: quittant le répertoire * /usr/src/linux-2.6.24 *
>> make: *** [debian/stamp-build-kernel] Erreur 2
>>
> 
> It's a 64bit symbol only it seems. Disable CONFIG_X86_MCE for now, will
> fix. Thanks.

Here is some fix for this:

---
 arch/x86/kernel/ipipe.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: b/arch/x86/kernel/ipipe.c
===================================================================
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -644,8 +644,13 @@ asmlinkage int __ipipe_syscall_root(stru
 static void do_machine_check_vector(struct pt_regs *regs, long error_code)
 {
 #ifdef CONFIG_X86_MCE
+#ifdef CONFIG_X86_32
+	extern void (*machine_check_vector)(struct pt_regs *, long error_code);
+	machine_check_vector(regs, error_code);
+#else  /* !CONFIG_X86_32 */
 	void do_machine_check(struct pt_regs *, long);
-	do_machine_check(regs,error_code);
+	do_machine_check(regs, error_code);
+#endif /* !CONFIG_X86_32 */
 #endif /* CONFIG_X86_MCE */
 }
 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

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

end of thread, other threads:[~2008-02-16 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5479.1202920211.28415.xenomai@xenomai.org>
2008-02-14 15:17 ` [Xenomai-help] Xenomai-2.4.2 vs kernel-2.6.24 (i686) Hubert Talbot
2008-02-14 15:33   ` Philippe Gerum
2008-02-16 11:21     ` Jan Kiszka

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.