From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <50958A57.8010902@xenomai.org> Date: Sat, 03 Nov 2012 22:19:19 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <9d3ef55df641c8657ce09c6f6e023e4a.squirrel@www.xenomai.org> <2b4941d6b09c5560d4074bc644ded41d.squirrel@www.xenomai.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] rt_task_create fails when running over ssh List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Nechypurenko Cc: xenomai@xenomai.org On 11/03/2012 07:42 PM, Andrey Nechypurenko wrote: > On 3 November 2012 15:09, Gilles Chanteperdrix > wrote: >> >> Andrey Nechypurenko wrote: >>>> Ok, but there is no code in xenomai which accesses or relies on the >>>> console >>>> could you try to run the latency test from the ssh console to see if you >>>> get the same issue? >>> >>> xeno-test works just fine. So I assume that it is related to how I am >>> compiling the example. I've tried trivial-periodic.c using the >>> following command to compile: >>> >>> ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- CFLAGS=" >>> -march=armv7-a -fno-tree-vectorize -mthumb-interwork >>> -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 " LOCALVERSION="" >>> arm-angstrom-linux-gnueabi-gcc >>> -I/home/bbcross/rootfs/usr/include/xenomai/ -D_GNU_SOURCE -D_REENTRANT >>> -D__XENO__ -L/home/bbcross/rootfs/usr/lib -lxenomai -lnative >>> trivial-periodic.c -o trivial-periodic >> > >> Could you try to run the latency test without xeno-test ? > > Seams like it does not work in the similar way: > > # latency -t 0 > == Sampling period: 1000 us > == Test mode: periodic user-mode task > == All results in microseconds > latency: failed to create latency task, code -1 > warming up... > > and then it exits. -t 1 and -t 2 works fine. > >> It should be -lnative -lxenomai > > Changing to -lnative -lxenomai does not help > >> please use the xeno-config to obtain the flags, do not hardcode them. > > I am cross-compiling and I did not figured out yet how to convince > xeno-config to pick right include and library directories. It generats > -I/usr/include and -L/usr/lib which is not where actual libraries for > cross-compilation are. Use the DESTDIR environment variable (you can look inside xeno-config to see how it works, it should be pretty obvious). -- Gilles.