We do use native skin.
The reason I'm trying to compile xenosim simulator is because I found that this 
is the only way to test xenomai app with valgrind. Although I'm having an issue 
with the compilation during 'make install' (I posted this question as well):

make[1]: Leaving directory `/usr/src/xenomai-2.5.1/xenosim-2.4.7/Build_/vm'
Making install in adapter
make[1]: Entering directory 
`/usr/src/xenomai-2.5.1/xenosim-2.4.7/Build_/adapter'
g++ -DHAVE_CONFIG_H -I. -I/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter 
-I../include -D__XENO_SIM__ -fno-exceptions 
-I/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/.. 
-I/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../../include    -O2 -MT 
adapter.o -MD -MP -MF .deps/adapter.Tpo -c -o adapter.o 
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/adapter.cc
In file included from 
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../../include/nucleus/sched.h:31,
                 from 
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../../include/nucleus/pod.h:34,
                 from 
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/adapter.cc:23:
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../../include/nucleus/thread.h: In 
function âxnthread* xnthread_lookup(xnhandle_t)â:
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../../include/nucleus/thread.h:431:
 error: invalid conversion from âvoid*â to âxnthread*â
In file included from 
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../vm/manager.h:38,
                 from 
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/adapter.cc:25:
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../vm/thread.h: At global scope:
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/../vm/thread.h:52: warning: 
âtypedefâ was ignored in this declaration
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/adapter.cc: In function âconst 
char* mvm_get_thread_mode(void*)â:
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/adapter.cc:65: error: too few 
arguments to function
/usr/src/xenomai-2.5.1/xenosim-2.4.7/adapter/adapter.cc:67: error: too few 
arguments to function
make[1]: *** [adapter.o] Error 1
make[1]: Leaving directory `/usr/src/xenomai-2.5.1/xenosim-2.4.7/Build_/adapter'
make: *** [install-recursive] Error 1

If you have any suggestion on how to run the xenomai app with valgrind, it 
would be great to know it. I got syscall 555 error by trying to run our app 
with valgrind in a usual way (w/o xenosim).

Any help is much appreciated.


Best Regards,
Vera


-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]] 
Sent: Thursday, May 20, 2010 4:16 AM
To: Vera Snowball
Cc: [email protected]; [email protected]
Subject: Re: [Xenomai-help] xenomai, skins, design and a practical approach

Vera Snowball wrote:
> Sounds good to me. Does it include by any chance a chapter on how to
> work with Xenosim simulator? Looks like it is the only simulator which
> can be used for debugging with valgrind. If you made it work, it would
> be great to know how.

Xenosim requires an old 32 bits installation to be compiled, so, it may
not be straightforward to use it.

If what you want to debug with valgrind is your application and not
Xenomai, you can arrange to compile your application for Linux pthreads,
and you will be able to debug it. If you are using the POSIX skin, it
should be easy. If you are using a legacy skin, such as vxworks, psos,
uitron, etc... we already have support for running them on plain linux
with the xenomai-solo package. Only if you are using the native skin it
will be a little harder.

-- 
                                            Gilles.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to