You are not logged in.

#1 2011-10-05 05:18:45

cc7gir
Member
Registered: 2011-10-02
Posts: 3

RTAI linux installation problems

Hey everyone,

I am trying to install RTAI, but I'm having some problems.
(https://www.rtai.org/)

There were no good packages in the AUR that worked for me, so I decided to try it manually.
I installed ABS, took the PKCONFIG from kernel26-lts and modified it to download and path kernel-2.6.32.11 with rtai.
That worked and the kernel works fine on my maching now.

The problem I have is building the RTAI package itself.

../../../../base/include/rtai_lxrt.h:1245:9: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_get_timer_cpu’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:1239:2: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_set_runnable_on_cpuid’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:1233:2: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_set_runnable_on_cpus’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:1221:9: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_get_cpu_time_ns’ which is not static [enabled by default]
^
|| This goes on for a while.....
V
../../../../base/include/rtai_lxrt.h:675:4: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_thread_create’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:674:17: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_thread_create’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:648:20: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_task_init_schmod’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:629:9: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_get_name’ which is not static [enabled by default]
../../../../base/include/rtai_lxrt.h:615:9: warning: ‘rtai_lxrt’ is static but used in inline function ‘rt_get_adr’ which is not static [enabled by default]

make[5]: *** [calibrate-calibrate.o] Error 1
make[5]: Leaving directory `/home/joost/rtai-3.8.1/base/arch/i386/calibration'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/joost/rtai-3.8.1/base/arch/i386'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/joost/rtai-3.8.1/base/arch'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/joost/rtai-3.8.1/base'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joost/rtai-3.8.1'
make: *** [all] Error 2
[joost@ARCH-LTS rtai-3.8.1]$ 

I have no idea what or where the error is.
If anyone can point me in the right direction, I'd be greatfull.

Also its my Birthday :D


EDIT
make -v : GNU Make 3.82
gcc -v : 4.6.1 20110819 (prerelease)

I also have gcc-4.3 installed but that gives me the same error.

Last edited by cc7gir (2011-10-05 05:20:18)

Offline

#2 2011-10-13 16:50:14

Lukas0907
Member
Registered: 2008-02-18
Posts: 4

Re: RTAI linux installation problems

The warnings result in an impromper configuration during the compilation of the RTAI libraries, i.e. it's headers, itself.

You must compile RTAI with ./configure --with-lxrt-inline=static and the warnings should be gone. Another possibility is, if you don't can't or want to recompile RTAI, to set CONFIG_RTAI_LXRT_INLINE=1 during compilation of YOUR program.

Offline

#3 2012-01-15 18:43:31

varona
Member
Registered: 2012-01-15
Posts: 5

Re: RTAI linux installation problems

I am installing RTAI3-8 on Arch Linux too.
I have downloaded kernel linux-2.6.23.tar.bz2 and patched it to hal-linux-2.6.23-i386-1.12-03.patch in RTAI patch folder.
Then for configure the kernel i get following error:
#make menuconfig
Makefile>416> *** mixed implicit and normal rules. Stop.
have you faced the same problem? what is the solution? do I need to install any package or...?

Offline

Board footer

Powered by FluxBB