[Rtai] Problem in compiling RTAI for ARM

Torsten Koschorrek devel at koschorrek.com
Wed Dec 9 23:02:00 CET 2009


付言华 wrote:
> Hi all,
>        I have a problem in compiling RTAI for RM.
>        I used the default config with right linux source tree, and compiled
> with the command:
>        $make ARCH=arm CROSS_COMPILE=arm-linux-              // I use
> arm-linux-gcc-3.4.1
> 

I tested the way you tried to compile RTAI and I got the same errors!

Using kconfig (via 'make ARCH=arm CROSS_COMPILE=arm-linux-') leads to 
the shown errors. I configure RTAI using the following command:

 >
 > CROSS_COMPILE=arm-linux- ./configure --host=arm-linux 
--with-linux-dir=/mnt/stuff/devel/arm/linux-2.6.20.13/ 
--prefix=/mnt/stuff/devel/arm/rtai-workdir/install/ 
--enable-lxrt-use-linux-syscall
 > make
 >

It's a BUG you are pointing at and I'll investigate. In the meantime try 
'CROSS_COMPILE...' and after that a simple 'make'. Please report if this 
is a solution so far.


Torsten


>        Then there are erros  at the end:
> 
> 
>  cc -DHAVE_CONFIG_H -I. -I../../.. -g
> -I/usr/work/rtai/linux-2.6.20.13/include -Wall -Wstrict-prototypes -pipe
> -D__IN_RTAI__ -D_GNU_SOURCE -fno-inline -I../../../base/include
> -I../../include -MT services.lo -MD -MP -MF .deps/services.Tpo -c services.c
> -fPIC -DPIC -o .libs/services.o
> In file included from ../../../base/include/asm/rtai.h:42,
>                  from ../../../base/include/rtai.h:25,
>                  from ../../../base/include/rtai_sched.h:22,
>                  from ../../../base/include/rtai_lxrt.h:69,
>                  from services.c:27:
> ../../../base/include/asm/rtai_hal.h: In function `__rtai_generic_ulldiv':
> ../../../base/include/asm/rtai_hal.h:156: invalid register name `r4' for
> register variable
> ../../../base/include/asm/rtai_hal.h:156: invalid register name `r0' for
> register variable
> ../../../base/include/asm/rtai_hal.h:156: invalid register name `r2' for
> register variable
> ../../../base/include/asm/rtai_hal.h:156: invalid register name `r1' for
> register variable
> ../../../base/include/asm/rtai_hal.h:156: unknown register name `lr' in
> `asm'
> ../../../base/include/asm/rtai_hal.h:156: unknown register name `ip' in
> `asm'
> In file included from ../../../base/include/rtai_lxrt.h:576,
>                  from services.c:27:
> ../../../base/include/asm/rtai_lxrt.h:148:2: warning: #warning "RTAI_DO_SWI
> is not working yet. Please configure RTAI with
> --enable-lxrt-use-linux-syscall."
> In file included from ../../../base/include/rtai_lxrt.h:576,
>                  from services.c:27:
> ../../../base/include/asm/rtai_lxrt.h: In function `_rtai_lxrt':
> ../../../base/include/asm/rtai_lxrt.h:149: invalid register name `r0' for
> register variable
> ../../../base/include/asm/rtai_lxrt.h:149: invalid register name `r1' for
> register variable
> In file included from ../../../base/include/rtai_usi.h:26,
>                  from ../../../base/include/rtai_tasklets.h:293,
>                  from ../../../base/include/rtai_schedcore.h:39,
>                  from services.c:29:
> ../../../base/include/asm/rtai_srq.h:60:2: warning: #warning "RTAI_DO_SWI is
> not working yet. Please configure RTAI with
> --enable-lxrt-use-linux-syscall."
> In file included from ../../../base/include/rtai_usi.h:26,
>                  from ../../../base/include/rtai_tasklets.h:293,
>                  from ../../../base/include/rtai_schedcore.h:39,
>                  from services.c:29:
> ../../../base/include/asm/rtai_srq.h: In function `rtai_srq':
> ../../../base/include/asm/rtai_srq.h:61: invalid register name `r0' for
> register variable
> ../../../base/include/asm/rtai_srq.h:61: invalid register name `r1' for
> register variable
> make[4]: *** [services.lo] Error 1
> make[4]: Leaving directory `/usr/work/rtai/rtai-3.7.1/base/sched/liblxrt'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/work/rtai/rtai-3.7.1/base/sched'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/work/rtai/rtai-3.7.1/base'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/work/rtai/rtai-3.7.1'
> make: *** [all] Error 2
> 
>     Who can tell me how to solve this problem? Thank you very much.
> 
> 
> 
> Best regards,
> 
> Yanhua Fu
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Rtai mailing list
> Rtai at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai



More information about the Rtai mailing list