buildbot: how to setup for ppc with 2.6.19 kernel?
Hi
Compiling ppc fails for me with 2.6.19 kernels.
( I compile on a Pegasos PPC 601 Debian Linux).
If I use ARCH=ppc then I get the following error:
Quoted 9 lines
CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.hgcc:
include/asm/byteorder.h: No such file or directory
gcc: no input files
CCarch/ppc/xenomai/hal.oarch/ppc/xenomai/hal.c: In function 'rthal_arch_init':arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->' make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
Trying to use ARCH=powerpc fails already while configuring the kernel like this:
Quoted 8 lines
make ARCH=powerpc menuconfig
HOSTCCscripts/kconfig/mconf.o
HOSTLDscripts/kconfig/mconfscripts/kconfig/mconfarch/powerpc/Kconfiginit/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to undefined symbol 'IPIPE' ## configuration written to .config #
And a make gives me
Quoted 8 lines
make ARCH=powerpc menuconfig
HOSTCCscripts/kconfig/mconf.o
HOSTLDscripts/kconfig/mconfscripts/kconfig/mconfarch/powerpc/Kconfiginit/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to undefined symbol 'IPIPE' ## configuration written to .config #
What is wrong? Did I miss something in my setup? Wrong config?
Best regards
Signature · 1 line
Niklaus Giger
Quoted 16 lines · Niklaus Giger
Hi
Compiling ppc fails for me with 2.6.19 kernels.
( I compile on a Pegasos PPC 601 Debian Linux).If I use ARCH=ppc then I get the following error:
Quoted 9 lines
CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.hgcc:
include/asm/byteorder.h: No such file or directory
gcc: no input files
CCarch/ppc/xenomai/hal.oarch/ppc/xenomai/hal.c: In function 'rthal_arch_init':arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->' make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
Fixed, thanks.
Signature · 1 line
Philippe.
Quoted 9 lines · Niklaus Giger
Hi
Compiling ppc fails for me with 2.6.19 kernels. ( I compile on a Pegasos PPC 601 Debian Linux).
If I use ARCH=ppc then I get the following error:
Quoted 4 lines
CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.hgcc:
include/asm/byteorder.h: No such file or directory
Hmm, strange.
Quoted 5 lines
Quoted 5 lines
gcc: no input files
CCarch/ppc/xenomai/hal.oarch/ppc/xenomai/hal.c: In function 'rthal_arch_init':arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->' make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
That looks like an altivec problem. Does the attached patch for Xenomai help?
Quoted 10 lines
Trying to use ARCH=powerpc fails already while configuring the kernel like this:
Quoted 8 lines
make ARCH=powerpc menuconfig
HOSTCCscripts/kconfig/mconf.o
HOSTLDscripts/kconfig/mconfscripts/kconfig/mconfarch/powerpc/Kconfiginit/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to undefined symbol 'IPIPE' ## configuration written to .config #
Quoted 9 lines
And a make gives me
Quoted 8 lines
make ARCH=powerpc menuconfig
HOSTCCscripts/kconfig/mconf.o
HOSTLDscripts/kconfig/mconfscripts/kconfig/mconfarch/powerpc/Kconfiginit/Kconfig:564:warning: 'select' used by config symbol 'XENOMAI' refer to undefined symbol 'IPIPE' ## configuration written to .config #
The powerpc tree is not yet supported.
Quoted 1 line
What is wrong? Did I miss something in my setup? Wrong config?
Seems to be an untested configuration!?
Wolfgang.
+ diff -u xenomai/ksrc/arch/powerpc/hal.c.OLD xenomai/ksrc/arch/powerpc/hal.c
ksrc/arch/powerpc/hal.c renamed from ksrc/arch/powerpc/hal.c.OLD +0 -4
@@ -347,11 +347,7 @@int rthal_arch_init (void ) {#ifdef CONFIG_ALTIVEC -#ifdef CONFIG_PPC64if (!(cur_cpu_spec->cpu_features &CPU_FTR_ALTIVEC )) { -#else /* !CONFIG_PPC64 */ - if (!(cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC)) { -#endif /* CONFIG_PPC64 */printk ("Xenomai: ALTIVEC support enabled in kernel but no hardware found.\n" " Disable CONFIG_ALTIVEC in the kernel configuration.\n" );
Quoted 14 lines · Wolfgang Grandegger
Quoted 10 lines · Niklaus Giger
Hi
Compiling ppc fails for me with 2.6.19 kernels.
( I compile on a Pegasos PPC 601 Debian Linux).If I use ARCH=ppc then I get the following error:
Quoted 4 lines
CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.hgcc:
include/asm/byteorder.h: No such file or directoryHmm, strange.
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
gcc: no input files
CCarch/ppc/xenomai/hal.oarch/ppc/xenomai/hal.c: In function 'rthal_arch_init':arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->' make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1That looks like an altivec problem. Does the attached patch for Xenomai help?
It does, but we also need to remain compatible with older kernels (namely 2.6.14 since the ppc64 port is still based on it), so I fixed this by using cpu_has_feature() instead.
Signature · 1 line
Philippe.
Quoted 18 lines · Philippe Gerum
Quoted 17 lines · Wolfgang Grandegger
Quoted 9 lines · Niklaus Giger
Hi
Compiling ppc fails for me with 2.6.19 kernels. ( I compile on a Pegasos PPC 601 Debian Linux).
If I use ARCH=ppc then I get the following error:
Quoted 4 lines
CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.hgcc:
include/asm/byteorder.h: No such file or directoryHmm, strange.
Quoted 5 lines
Quoted 5 lines
gcc: no input files
CCarch/ppc/xenomai/hal.oarch/ppc/xenomai/hal.c: In function 'rthal_arch_init':arch/ppc/xenomai/hal.c:353: error: invalid type argument of '->' make[1]: *** [arch/ppc/xenomai/hal.o] Fehler 1
Quoted 6 lines
Quoted 2 lines
That looks like an altivec problem. Does the attached patch for Xenomai help?
It does, but we also need to remain compatible with older kernels (namely 2.6.14 since the ppc64 port is still based on it), so I fixed this by using
cpu_has_feature()instead.
My patch was just a quick hack to see if it fixes the problem and not intended for inclusion. Thanks for the proper fix.
Wolfgang.