Error at compilation of examples
Hi all,
I got errors in headers while trying to compile basical programs (sigcpu.c and a posix thread one). I use ELDK 4.1 cross-compiler for ARM architecture and 2.6.19 kernel. So here is error i got:
$> arm-linux-gcc -I/opt/eldk/arm/usr/include/ -I/opt/eldk/arm/include/ -D_GNU_SOURCE -D_REENTRANT -L/opt/eldk/arm/lib/ -lpthread -lnative -Xlinker -rpath -Xlinker /opt/eldk/arm/lib/ -o t_posix ./test_thread.c
In file included from /opt/eldk/arm/include/nucleus/queue.h:24,
from /opt/eldk/arm/include/nucleus/timer.h:23,
from /opt/eldk/arm/include/nucleus/thread.h:23,
from /opt/eldk/arm/include/posix/pthread.h:149,
from ./test_thread.c:1:/opt/eldk/arm/include/nucleus/types.h:75: error: parse error before 'xnflags_t'/opt/eldk/arm/include/nucleus/types.h:75: warning: data definition has no type or storage class
Is there something i missed in xenomai's configuration ?
That's parameters i put:
configure --prefix=/ --build=i686-linux-gnu --host=arm-linux --enable-arm-arch=4 --disable-dox-doc --disable-dbx --disable-dbx-network --disable-x86-tsc
Thanks,
Benoit
Review
Quoted 10 lines · Benoît CAMUS
Hi all,
I got errors in headers while trying to compile basical programs (
sigcpu.cand a posix thread one). I use ELDK 4.1 cross-compiler for ARM architecture and 2.6.19 kernel. So here is error i got:$> arm-linux-gcc -I/opt/eldk/arm/usr/include/ -I/opt/eldk/arm/include/
(quoted diff) +0
-2-D_GNU_SOURCE -D_REENTRANT -L/opt/eldk/arm/lib/ -lpthread -lnative -Xlinker -rpath -Xlinker /opt/eldk/arm/lib/ -o t_posix ./test_thread.c
The most simple way to compile an example for Xenomai posix skin is to use the xeno-config script as installed by Xenomai. If you have run Xenomai installation with DESTDIR set, pass the same DESTDIR in xeno-config environment. Examples usually come with Makefiles that do so.
What version of Xenomai are you using ?
Signature · 1 line
Gilles Chanteperdrix
Quoted 6 lines
The most simple way to compile an example for Xenomai posix skin is to use the xeno-config script as installed by Xenomai. If you have run Xenomai installation with DESTDIR set, pass the same DESTDIR in xeno-config environment. Examples usually come with Makefiles that do so.
What version of Xenomai are you using ?
I'm using xenomai last version (2.3.1),
and have the same error using makefile with XENO parameter
Benoit