Problems linking latency
Hi
I try to compile Xenomai on my Powerbook for an embedded PPC405. The kernel boots okay with the xenomai kernel.
But when I try to compile the xenomai (trunk) I get the following error:
»/mnt/data.ng/hcu/kernel/build-xeno-hcu3/src/testsuite/latency«/bin/sh ../../../libtool --mode=link --tag=CC powerpc-405-linux-gnu-gcc -o
latency latency-latency.o ../../skins/native/libnative.la -lpthread -lm
*** Warning: Linking the executable latency against the loadable module *** libnative.so is not portable!
The Xenomai part of my kernel/.config looks like this CONFIG_XENOMAI=yCONFIG_XENO_OPT_NUCLEUS=y CONFIG_XENO_OPT_PERVASIVE=y CONFIG_XENO_OPT_PIPE=y CONFIG_XENO_OPT_PIPE_NRDEV=32 CONFIG_XENO_OPT_SYS_HEAPSZ=128
# CONFIG_XENO_OPT_ISHIELD is not set CONFIG_XENO_OPT_STATS=y
# CONFIG_XENO_OPT_DEBUG is not set
# CONFIG_XENO_OPT_WATCHDOG is not set
# CONFIG_XENO_OPT_SCALABLE_SCHED is not set
# CONFIG_XENO_HW_FPU is not set CONFIG_XENO_HW_PERIODIC_TIMER=y CONFIG_XENO_HW_TIMER_LATENCY=0 CONFIG_XENO_HW_SCHED_LATENCY=0 CONFIG_XENO_SKIN_NATIVE=m CONFIG_XENO_OPT_NATIVE_REGISTRY=y CONFIG_XENO_OPT_NATIVE_REGISTRY_NRSLOTS=512 CONFIG_XENO_OPT_NATIVE_PIPE=y CONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ=4096 CONFIG_XENO_OPT_NATIVE_SEM=y CONFIG_XENO_OPT_NATIVE_EVENT=y CONFIG_XENO_OPT_NATIVE_MUTEX=y CONFIG_XENO_OPT_NATIVE_COND=y CONFIG_XENO_OPT_NATIVE_QUEUE=y CONFIG_XENO_OPT_NATIVE_HEAP=y CONFIG_XENO_OPT_NATIVE_ALARM=y CONFIG_XENO_OPT_NATIVE_MPS=y CONFIG_XENO_OPT_NATIVE_INTR=y
# CONFIG_XENO_SKIN_POSIX is not set
# CONFIG_XENO_SKIN_PSOS is not set
# CONFIG_XENO_SKIN_UITRON is not set
# CONFIG_XENO_SKIN_VRTX is not set CONFIG_XENO_SKIN_VXWORKS=y
# CONFIG_XENO_SKIN_RTAI is not set
# CONFIG_XENO_SKIN_RTDM is not set CONFIG_XENO_SKIN_UVM=y
What is wrong?
I was also surprised that I could not configure xenomai with CROSS_COMPILE=powerpc-405-linux-gnu- but had do specify CC=powerpc-405-linux-gnu-gcc to be able to use the same compiler, with which I built my kernel.
Best regards for any hints.
Signature · 1 line
Niklaus Giger
Quoted 5 lines · Niklaus Giger
Hi
I try to compile Xenomai on my Powerbook for an embedded PPC405. The kernel boots okay with the xenomai kernel.
Quoted 8 lines
But when I try to compile the xenomai (trunk) I get the following error:
»/mnt/data.ng/hcu/kernel/build-xeno-hcu3/src/testsuite/latency«
/bin/sh../../../libtool --mode=link --tag=CC powerpc-405-linux-gnu-gcc -o latency latency-latency.o ../../skins/native/libnative.la -lpthread -lm*** Warning: Linking the executable latency against the loadable module *** libnative.so is not portable!
Ignore this message, the link is ok anyhow. This will be fixed in later releases.
Quoted 39 lines
The Xenomai part of my
kernel/.configlooks like thisCONFIG_XENOMAI=yCONFIG_XENO_OPT_NUCLEUS=yCONFIG_XENO_OPT_PERVASIVE=yCONFIG_XENO_OPT_PIPE=yCONFIG_XENO_OPT_PIPE_NRDEV=32CONFIG_XENO_OPT_SYS_HEAPSZ=128
#CONFIG_XENO_OPT_ISHIELDis not setCONFIG_XENO_OPT_STATS=y
#CONFIG_XENO_OPT_DEBUGis not set
#CONFIG_XENO_OPT_WATCHDOGis not set
#CONFIG_XENO_OPT_SCALABLE_SCHEDis not set
#CONFIG_XENO_HW_FPUis not setCONFIG_XENO_HW_PERIODIC_TIMER=yCONFIG_XENO_HW_TIMER_LATENCY=0CONFIG_XENO_HW_SCHED_LATENCY=0CONFIG_XENO_SKIN_NATIVE=mCONFIG_XENO_OPT_NATIVE_REGISTRY=yCONFIG_XENO_OPT_NATIVE_REGISTRY_NRSLOTS=512CONFIG_XENO_OPT_NATIVE_PIPE=yCONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ=4096CONFIG_XENO_OPT_NATIVE_SEM=yCONFIG_XENO_OPT_NATIVE_EVENT=yCONFIG_XENO_OPT_NATIVE_MUTEX=yCONFIG_XENO_OPT_NATIVE_COND=yCONFIG_XENO_OPT_NATIVE_QUEUE=yCONFIG_XENO_OPT_NATIVE_HEAP=yCONFIG_XENO_OPT_NATIVE_ALARM=yCONFIG_XENO_OPT_NATIVE_MPS=yCONFIG_XENO_OPT_NATIVE_INTR=y
#CONFIG_XENO_SKIN_POSIXis not set
#CONFIG_XENO_SKIN_PSOSis not set
#CONFIG_XENO_SKIN_UITRONis not set
#CONFIG_XENO_SKIN_VRTXis not setCONFIG_XENO_SKIN_VXWORKS=y
#CONFIG_XENO_SKIN_RTAIis not set
#CONFIG_XENO_SKIN_RTDMis not setCONFIG_XENO_SKIN_UVM=y
Quoted 5 lines
What is wrong?
I was also surprised that I could not configure xenomai with CROSS_COMPILE=powerpc-405-linux-gnu- but had do specify CC=powerpc-405-linux-gnu-gcc to be able to use the same compiler, with which I built my kernel.
v2.1 stops defining its own set of funky rules for building Xenomai, but rather strictly relies on the kernel rules for building kernel support, and on the autoconf rules for building user-space support, so it's perfectly normal that the new configure script does not recognize CROSS_COMPILE since it is a variable defined by Linux's Kbuild system. Just follow the appropriate vanilla set of rules depending on which support you are trying to build.
Quoted 2 lines
Best regards for any hints.
Signature · 1 line
Philippe.