[Rtai] Compile error in sample program, why?
Fabián C. Tommasini
ftommasini at gmail.com
Fri Apr 24 00:21:43 CEST 2009
Hello,
I just start with RTAI and I have some (newbie) problems.
I read "DIAPM RTAI - Beginner's Guide"
(https://www.rtai.org/index.php?module=documents&JAS_DocumentManager_op=downloadFile&JAS_File_id=32)
and I tried to compile the example 1 (scope and rt_process) but there
was a lot of errors in rt_process.c.
I made some changes to makefile (without results):
--------------------- makefile --------------------------
all: scope rt_process.o
LINUX_HOME = /usr/src/linux-headers-2.6.23-rtai-3.6.1
RTAI_HOME = /usr/realtime
INCLUDE = -I$(LINUX_HOME)/include -I$(RTAI_HOME)/include
MODFLAGS = -D__KERNEL__ -DMODULE -O2 -Wall
scope: scope.c
gcc -c -o $@ $<
rt_process.o: rt_process.c
gcc $(MODFLAGS) $(INCLUDE) -o $@ $<
clean:
rm -f rt_process.o scope
---------------------------------------------------------
Is it ok?
Make's output:
gcc -D__KERNEL__ -DMODULE -O2 -Wall
-I/usr/src/linux-headers-2.6.23-rtai-3.6.1/include
-I/usr/realtime/include -o rt_process.o rt_process.c
In file included from
/usr/src/linux-headers-2.6.23-rtai-3.6.1/include/linux/prefetch.h:14,
from
/usr/src/linux-headers-2.6.23-rtai-3.6.1/include/linux/list.h:8,
from
/usr/src/linux-headers-2.6.23-rtai-3.6.1/include/linux/module.h:9,
from rt_process.c:1:
/usr/src/linux-headers-2.6.23-rtai-3.6.1/include/asm/processor.h:78:
error: ‘CONFIG_X86_L1_CACHE_SHIFT’ no se declaró aquí (no en una
función)
......... an a lot of more!!!
Now, what is the problem?
Clarifications: the CPU is amd64, the Linux kernel is 2.6.23 and RTAI
version is 3.6.1
Thanks for your help!!!!
Best regards,
Fabián
Ing. Fabián C. Tommasini
Centro de Investigación y Transferencia en Acústica (CINTRA)
UA del CONICET - UTN, FRC
Maestro M. López esq. Cruz Roja Argentina
(X5016ZAA) Córdoba, Argentina
Tel/Fax: +54 351 4686389
More information about the Rtai
mailing list