Skip to contentSkip to conversation

Real-Time Preemption Patch -RT-2.6.12-final-V0.7.51-26 failed ,to compile

DISCUSSION Steven Wooding 3 participants 3 messages Jul 11, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I wonder if someone can help a newbie to the Real-Time Preemption Patch. After appling the lastest patch (-RT-2.6.12-final-V0.7.51-26) to the 2.6.12 vanilla kernel I get the following error when compiling the patched kernel:

arch/x86_64/kernel/mce.c: In function 'mce_read':
arch/x86_64/kernel/mce.c:383: warning: type defaults to 'int' in declarationd of 'DECLARE_MUTEX' arch/x86_64/kernel/mce.c:383: warning: parameter names (without types) in function declaration arch/x86_64/kernel/mce.c:392:error: 'mce_read_sem' undeclared (first use in this function)

Then the mce.o fails to get made and the make stops.

I've tried compiling the vanilla 2.6.12 kernel without the patch and that works fine. It is strange that the error should be in arch/x86_64/kernel/mce.c as this is not altered by the patch. I've also tried saying no to MCE support, but got the some error.

I'm using RHEL 4 on a SMP system (gcc version 3.4.3).

Thanks,

Steve.

PS Please CC me on replies. Thanks.

#1 lore raw

This may help ..

arch/x86_64/kernel/mce.c 2005-07-11 18:44:42.000000000 +0000 renamed from arch/x86_64/kernel/mce.c 2005-06-17 19:48:29.000000000 +0000 +2 -0
Index: linux-2.6.12/arch/x86_64/kernel/mce.c
===================================================================
@@ -15,6 +15,8 @@
 #include <linux/sysdev.h>
 #include <linux/miscdevice.h>
 #include <linux/fs.h>
+#include <linux/semaphore.h>
+
 #include <asm/processor.h>
 #include <asm/msr.h>
 #include <asm/mce.h>
Quoted 35 lines · Steven Wooding

Hi,

I wonder if someone can help a newbie to the Real-Time Preemption Patch. After appling the lastest patch (-RT-2.6.12-final-V0.7.51-26) to the 2.6.12 vanilla kernel I get the following error when compiling the patched kernel:

arch/x86_64/kernel/mce.c: In function 'mce_read':
arch/x86_64/kernel/mce.c:383: warning: type defaults to 'int' in declarationd of 'DECLARE_MUTEX' arch/x86_64/kernel/mce.c:383: warning: parameter names (without types) in function declaration
arch/x86_64/kernel/mce.c:392:error: 'mce_read_sem' undeclared (first use in this function)

Then the mce.o fails to get made and the make stops.

I've tried compiling the vanilla 2.6.12 kernel without the patch and that works fine. It is strange that the error should be in arch/x86_64/kernel/mce.c as this is not altered by the patch. I've also tried saying no to MCE support, but got the some error.

I'm using RHEL 4 on a SMP system (gcc version 3.4.3).

Thanks,

Steve.

PS Please CC me on replies. Thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 3 lines · Daniel Walker

This may help ..

Unless Ingo's fixed it, x86-64 is broken at the moment anyway. I just get a segfault from init.

Signature · 8 lines
Cheers,
Alistair.

personal:   alistair()devzero!co!uk
university: s0348365()sms!ed!ac!uk
student:    CS/CSim Undergraduate
contact:    1F2 55 South Clerk Street,
            Edinburgh. EH8 9PP.