For the moment I use an Intel Core I5 as host and target .

Since I think I have to compile a  64bits kernel .

Do you know where is located CONFIG_CC_STACKPROTECTOR in the configuration menu 
?

Gregory

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperd...@xenomai.org] 
Envoyé : mercredi 28 décembre 2011 12:58
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'

On 12/28/2011 12:44 PM, Gregory Gosse wrote:
> Now I use:
> 
> - xenomai 2.6.0   2011-11-05
> 
> - kernel 2.6.38.8
> 
> - patch adeos-ipipe-2.6.38.8-x86-2.10-01.patch
> 
>  
> 
> The following command works well:
> 
> scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.38.8 
> --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.3
> 8.8-x86-2.10-01.patch --arch=x86
> 
> Then I enter the configuration menu with
> 
> Make menuconfig
> 
>  
> 
> I apply the changes suggested in 'hard real time linux using xenomai on intel 
> Multi-Core processors'
> 
> Save and exit
> 
>  
> 
> When I try to compile the kernel with 'Make'  , the compilation finishes on:
> 
> CC      kernel/xenomai/nucleus/pod.o
> In file included from 
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch.h:2:0,
>                  from 
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod_32.h:27,
>                  from 
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:2,
>                  from kernel/xenomai/nucleus/pod.c:47:
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:30:2: 
> attention : #warning "Buffer overflow detection not supported in 32bit 
> mode" [-Wcpp]
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:31:2: 
> erreur: #error "Disable CONFIG_CC_STACKPROTECTOR in your kernel configuration"
> make[3]: *** [kernel/xenomai/nucleus/pod.o] Erreur 1
> make[2]: *** [kernel/xenomai/nucleus] Erreur 2
> make[1]: *** [kernel/xenomai] Erreur 2
> make: *** [kernel] Erreur 2

Then do as the message says, disable "CONFIG_CC_STACKPROTECTOR" in the kernel 
configuration. But are you sure you want to compile a 32 bits kernel, not a 64 
bits one?

-- 
                                                                Gilles.


_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to