Hello

I modified ipipe.h file

#include <linux/percpu.h>
DECLARE_PER_CPU(struct pt_regs, __ipipe_tick_regs);


I am not sure than it is right way ;-)

Evgeny

-----Original Message-----
From: "Alex Joni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>,"Enhanced Machine Controller \(EMC\)" 
<emc-users@lists.sourceforge.net>
Date: Fri, 3 Oct 2008 12:11:45 +0300
Subject: Re: [Emc-users] EMC2.2.6 compiling help

> 
> Hello there,
> 
> I had to use this small patch to fix a similar issue as you describe:
> http://wiki.linuxcnc.org/uploads/ipipe.patch.txt
> 
> Regards,
> Alex
> 
> ----- Original Message ----- 
> From: sivaraj sg
> To: emc-users@lists.sourceforge.net
> Sent: Friday, October 03, 2008 11:59 AM
> Subject: [Emc-users] EMC2.2.6 compiling help
> 
> 
> Hello,
> I could compile realtime kernel on Mepis-7.0 with Kernel-2.6.24/RTAI-3.6.1.
> All latency test is working fine as per the link 
> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Debian_Lenny_Compile_RTAI.
> But while compiling emc2.2.6 I end up with error as below.
> Please let me know what I am missing.
> Rgds
> Sivaraj
> 
> 
> make -C /usr/src/linux SUBDIRS=`pwd` CC=gcc V=0 -o 
> /usr/src/linux/Module.symvers modules
> make[1]: Entering directory `/usr/src/linux-2.6.24'
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/abs.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/and2.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/components/at_pid.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/biquad.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/blend.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/components/blocks.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/components/boss_plc.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/charge_pump.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/clarke2.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/clarke3.o
>   CC [M]  /usr/local/emc2-2.2.6/src/objects/hal/components/clarkeinv.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/classicladder/module_hal.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/classicladder/arithm_eval.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/classicladder/arrays.o
>   CC [M]  /usr/local/emc2-2.2.6/src/hal/classicladder/calc.o
> In file included from /usr/realtime/include/asm/rtai_vectors.h:40,
>                  from /usr/realtime/include/asm/rtai_hal.h:57,
>                  from /usr/realtime/include/asm/rtai.h:20,
>                  from /usr/realtime/include/rtai.h:25,
>                  from /usr/local/emc2-2.2.6/src/hal/classicladder/calc.c:26:
> include/asm/ipipe.h:34: error: expected declaration specifiers or '...' 
> before '__ipipe_tick_regs'
> include/asm/ipipe.h:34: warning: 'struct pt_regs' declared inside parameter 
> list
> include/asm/ipipe.h:34: warning: its scope is only this definition or 
> declaration, which is probably not what you want
> include/asm/ipipe.h:34: warning: data definition has no type or storage 
> class
> include/asm/ipipe.h:34: warning: type defaults to 'int' in declaration of 
> 'DECLARE_PER_CPU'
> In file included from include/asm/ipipe.h:37,
>                  from /usr/realtime/include/asm/rtai_vectors.h:40,
>                  from /usr/realtime/include/asm/rtai_hal.h:57,
>                  from /usr/realtime/include/asm/rtai.h:20,
>                  from /usr/realtime/include/rtai.h:25,
>                  from /usr/local/emc2-2.2.6/src/hal/classicladder/calc.c:26:
> include/asm/ipipe_32.h: In function '__ipipe_call_root_xirq_handler':
> include/asm/ipipe_32.h:62: error: 'per_cpu____ipipe_tick_regs' undeclared 
> (first use in this function)
> include/asm/ipipe_32.h:62: error: (Each undeclared identifier is reported 
> only once
> include/asm/ipipe_32.h:62: error: for each function it appears in.)
> make[2]: *** [/usr/local/emc2-2.2.6/src/hal/classicladder/calc.o] Error 1
> make[1]: *** [_module_/usr/local/emc2-2.2.6/src] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.24'
> make: *** [modules] Error 2
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to