Skip to contentSkip to conversation

Problems compiling arch/ppc/xmon/xmon.o (CONFIG_XMON=y)

Xenomai-core Niklaus Giger 2 participants 3 messages Apr 29, 2006

lore
Share & tools
lore
#0 lore raw

Hi

After a clean checkout of xenomai (r1016) and with a config which defines CONFIG_XMON I get the following errors:
CC arch/ppc/xmon/xmon.o
In file included
from /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/xmon.c:23:
/mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:26: error:
conflicting types for ‘get_rtcu’
include2/asm/time.h:102: error: previous definition of ‘get_rtcu’ was here /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:27: error:
conflicting types for ‘get_rtcl’
include2/asm/time.h:95: error: previous definition of ‘get_rtcl’ was here /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:32: error:
conflicting types for ‘get_dec’
include2/asm/time.h:39: error: previous definition of ‘get_dec’ was here /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:32: error:
conflicting types for ‘set_dec’
include2/asm/time.h:48: error: previous definition of ‘set_dec’ was here make[2]: *** [arch/ppc/xmon/xmon.o] Fehler 1
make[1]: *** [arch/ppc/xmon] Fehler 2

Best regards

Signature · 1 line
Niklaus Giger
#1 lore raw
Quoted 6 lines · Niklaus Giger

Hi

After a clean checkout of xenomai (r1016) and with a config which defines CONFIG_XMON I get the following errors:
CC arch/ppc/xmon/xmon.o
In file included

xmon looks like pretty much broken actually, and I see no issue regarding Xeno here. privinst.h's GSETSPR creates inlines with different return types than the declarations found in asm-ppc/time.h, so no wonder why the compiler is whining.

Quoted 13 lines

from /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/xmon.c:23:
/mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:26: error: conflicting types for ‘get_rtcu’ include2/asm/time.h:102: error: previous definition of ‘get_rtcu’ was here /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:27: error: conflicting types for ‘get_rtcl’ include2/asm/time.h:95: error: previous definition of ‘get_rtcl’ was here /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:32: error: conflicting types for ‘get_dec’ include2/asm/time.h:39: error: previous definition of ‘get_dec’ was here /mnt/data.ng/hcu/kernel/ppc/linux-2.6.14/arch/ppc/xmon/privinst.h:32: error: conflicting types for ‘set_dec’ include2/asm/time.h:48: error: previous definition of ‘set_dec’ was here
make[2]: *** [arch/ppc/xmon/xmon.o] Fehler 1
make[1]: *** [arch/ppc/xmon] Fehler 2

Best regards

Signature · 1 line
Philippe.
#2 lore raw

Am Samstag, 29. April 2006 19:09 schrieb Philippe Gerum:

Quoted 1 line

Niklaus Giger wrote:

<..>

Quoted 6 lines

xmon looks like pretty much broken actually, and I see no issue regarding Xeno here. privinst.h's GSETSPR creates inlines with different return types than the declarations found in asm-ppc/time.h, so no wonder why the compiler is whining.

Thanks for your explanation. I have no problems, as I never used XMON.

Best regards

Signature · 1 line
Niklaus Giger