[Xenomai-help] Newbie Question : Compile vxWorks test programm
Gilles Chanteperdrix wrote : > > libvxworks is generated only when UVM are enabled. You need > to enable building the UVM skin as a kernel module using > menuconfig, and build user-space libraries for the UVM skin > using the configure option --enable-uvm. > Dear Gilles thank you for your support. Unfortunatelly libvxworks is not build, even when I act as you suggested. This is what I did : - make menuconfig with kernel ==> .config entries as follows : { # # Real-time sub-system # CONFIG_XENOMAI=y CONFIG_XENO_OPT_NUCLEUS=y # # Nucleus options # 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 is not set # CONFIG_XENO_OPT_DEBUG is not set # CONFIG_XENO_OPT_WATCHDOG is not set # # Scalability options # # CONFIG_XENO_OPT_SCALABLE_SCHED is not set # # LTT tracepoints filtering # # CONFIG_XENO_OPT_FILTER_EVIRQ is not set # CONFIG_XENO_OPT_FILTER_EVTHR is not set # CONFIG_XENO_OPT_FILTER_EVSYS is not set # CONFIG_XENO_OPT_FILTER_EVALL is not set # # Interfaces # CONFIG_XENO_SKIN_NATIVE=y # # Native interface options # 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=m CONFIG_XENO_SKIN_RTDM=y CONFIG_XENO_SKIN_UVM=m CONFIG_XENO_SKIN_PSOS=m CONFIG_XENO_SKIN_VXWORKS=m # CONFIG_XENO_SKIN_VRTX is not set # CONFIG_XENO_SKIN_UITRON is not set CONFIG_XENO_SKIN_RTAI=m # # RTAI interface options # CONFIG_XENO_OPT_RTAI_FIFO=y CONFIG_XENO_OPT_RTAI_SEM=y CONFIG_XENO_OPT_RTAI_SHM=y # # Real-time drivers # # CONFIG_XENO_DRIVERS_16550A is not set CONFIG_XENO_DRIVERS_TIMERBENCH=y # # Machine # CONFIG_XENO_HW_FPU=y # CONFIG_XENO_HW_PERIODIC_TIMER is not set CONFIG_XENO_HW_TIMER_LATENCY=0 CONFIG_XENO_HW_SCHED_LATENCY=0 } -- configure within xenomai-directory ./configure --enable-uvm --prefix=`pwd` --host=ppc-linux ==> attached config.log -- make ARCH=ppc CROSS_COMPILE=ppc_82xx- -- make install-nodev ==> no vxworks-Library could you please have a look on the config.log, whether you can find an obvious mistake. Thank you very(!) much for your help in advance Roderik config.log Description: config.log
AW: [Xenomai-help] Newbie Question : Compile vxWorks test programm
Just when you posted your recomendation for xenomai-2.1-rc3 I found the answer ! Nothing wrong with my configuration, just the src/skins/vxworks/Makefile.am from release xenomai-2.1-rc2 is wrong (does not create the symbolic links to ksrc-sources). Taking the same file from xenomai-2.1-rc3 and everything is fine ! Nevertheless : Thank you for your help !!! > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von > [EMAIL PROTECTED] > Gesendet: Donnerstag, 23. Februar 2006 12:02 > An: xenomai-help@gna.org > Betreff: [Xenomai-help] Newbie Question : Compile vxWorks > test programm > > Gilles Chanteperdrix wrote : > > > > libvxworks is generated only when UVM are enabled. You need > to enable > > building the UVM skin as a kernel module using menuconfig, > and build > > user-space libraries for the UVM skin using the configure option > > --enable-uvm. > > > > Dear Gilles thank you for your support. > Unfortunatelly libvxworks is not build, even when I act as > you suggested. > This is what I did : > > - make menuconfig with kernel > ==> .config entries as follows : > > { > > # > # Real-time sub-system > # > CONFIG_XENOMAI=y > CONFIG_XENO_OPT_NUCLEUS=y > > # > # Nucleus options > # > 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 is not set > # CONFIG_XENO_OPT_DEBUG is not set > # CONFIG_XENO_OPT_WATCHDOG is not set > > # > # Scalability options > # > # CONFIG_XENO_OPT_SCALABLE_SCHED is not set > > # > # LTT tracepoints filtering > # > # CONFIG_XENO_OPT_FILTER_EVIRQ is not set # > CONFIG_XENO_OPT_FILTER_EVTHR is not set # > CONFIG_XENO_OPT_FILTER_EVSYS is not set # > CONFIG_XENO_OPT_FILTER_EVALL is not set > > # > # Interfaces > # > CONFIG_XENO_SKIN_NATIVE=y > > # > # Native interface options > # > 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=m > CONFIG_XENO_SKIN_RTDM=y > CONFIG_XENO_SKIN_UVM=m > CONFIG_XENO_SKIN_PSOS=m > CONFIG_XENO_SKIN_VXWORKS=m > # CONFIG_XENO_SKIN_VRTX is not set > # CONFIG_XENO_SKIN_UITRON is not set > CONFIG_XENO_SKIN_RTAI=m > > # > # RTAI interface options > # > CONFIG_XENO_OPT_RTAI_FIFO=y > CONFIG_XENO_OPT_RTAI_SEM=y > CONFIG_XENO_OPT_RTAI_SHM=y > > # > # Real-time drivers > # > # CONFIG_XENO_DRIVERS_16550A is not set > CONFIG_XENO_DRIVERS_TIMERBENCH=y > > # > # Machine > # > CONFIG_XENO_HW_FPU=y > # CONFIG_XENO_HW_PERIODIC_TIMER is not set > CONFIG_XENO_HW_TIMER_LATENCY=0 CONFIG_XENO_HW_SCHED_LATENCY=0 > > } > > -- configure within xenomai-directory > ./configure --enable-uvm --prefix=`pwd` --host=ppc-linux ==> > attached config.log > > -- make ARCH=ppc CROSS_COMPILE=ppc_82xx- > > -- make install-nodev > > ==> no vxworks-Library > > could you please have a look on the config.log, whether you > can find an obvious mistake. > > Thank you very(!) much for your help in advance Roderik > ___ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help
RE: [Xenomai-help] Newbie Question : Compile vxWorks test programm
[EMAIL PROTECTED] wrote: > thank you for the hint to the vxworks-skin-examples > (ksrc/skins/vxworks/demos/) > Unfortunately a new problem occured with these examples : > Executing the Makefile, I get the following Error-Message : > > > ppc-linux-gcc -o satch satch.c -I. -I~/xenomai-2.1-rc2/_install/include -O2 > -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -Wall -pipe -D__XENO_UVM__ > -u__xeno_skin_init -L~/xenomai-2.1-rc2/_install/lib -luvm -lnucleus > -lpthread -lvxworks > /opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/../../../../ppc-linux/bin/ld: > cannot find -lvxworks > collect2: ld returned 1 exit status > make: *** [satch] Fehler 1 > - > > As far as I understand, gcc is looking for library called vxworks. > Unfortunately such a library is not generated by the Xenomai build process > (I could not find it anywhere in the install-directory, nor in the > Xenomai-directory, nor in the kernel-directory, although I configured the > vxWorks-skin to be generated as a module in the kernel configuration (make > menuconfig)). Having a look in the Xenomai/src/skin/vxworks-directory, there > are no source files at all, in contrast to all other skins. Is this > intentional, or are the sources missing ? > Could you give me a hint, where I can find the vxworks library or how I can > generate it. Of course I could have a look in the makefile sources, but as I > am not an expert in Makefiles and autoconfiguration, this would take quite a > long time. Therefore I would appreciate your help very much, even if my > question should be silly. > libvxworks is generated only when UVM are enabled. You need to enable building the UVM skin as a kernel module using menuconfig, and build user-space libraries for the UVM skin using the configure option --enable-uvm. -- Gilles Chanteperdrix.
RE: [Xenomai-help] Newbie Question : Compile vxWorks test programm
[EMAIL PROTECTED] wrote: > thank you for the hint to the vxworks-skin-examples > (ksrc/skins/vxworks/demos/) > Unfortunately a new problem occured with these examples : > Executing the Makefile, I get the following Error-Message : > > > ppc-linux-gcc -o satch satch.c -I. -I~/xenomai-2.1-rc2/_install/include -O2 > -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -Wall -pipe -D__XENO_UVM__ > -u__xeno_skin_init -L~/xenomai-2.1-rc2/_install/lib -luvm -lnucleus > -lpthread -lvxworks > /opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/../../../../ppc-linux/bin/ld: > cannot find -lvxworks > collect2: ld returned 1 exit status > make: *** [satch] Fehler 1 > - > > As far as I understand, gcc is looking for library called vxworks. > Unfortunately such a library is not generated by the Xenomai build process > (I could not find it anywhere in the install-directory, nor in the > Xenomai-directory, nor in the kernel-directory, although I configured the > vxWorks-skin to be generated as a module in the kernel configuration (make > menuconfig)). Having a look in the Xenomai/src/skin/vxworks-directory, there > are no source files at all, in contrast to all other skins. Is this > intentional, or are the sources missing ? > Could you give me a hint, where I can find the vxworks library or how I can > generate it. Of course I could have a look in the makefile sources, but as I > am not an expert in Makefiles and autoconfiguration, this would take quite a > long time. Therefore I would appreciate your help very much, even if my > question should be silly. > libvxworks is generated only when UVM are enabled. You need to enable building the UVM skin as a kernel module using menuconfig, and build user-space libraries for the UVM skin using the configure option --enable-uvm. -- Gilles Chanteperdrix. ___ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help
RE: [Xenomai-help] Newbie Question : Compile vxWorks test programm
thank you for the hint to the vxworks-skin-examples (ksrc/skins/vxworks/demos/) Unfortunately a new problem occured with these examples : Executing the Makefile, I get the following Error-Message : ppc-linux-gcc -o satch satch.c -I. -I~/xenomai-2.1-rc2/_install/include -O2 -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -Wall -pipe -D__XENO_UVM__ -u__xeno_skin_init -L~/xenomai-2.1-rc2/_install/lib -luvm -lnucleus -lpthread -lvxworks /opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/../../../../ppc-linux/bin/ld: cannot find -lvxworks collect2: ld returned 1 exit status make: *** [satch] Fehler 1 - As far as I understand, gcc is looking for library called vxworks. Unfortunately such a library is not generated by the Xenomai build process (I could not find it anywhere in the install-directory, nor in the Xenomai-directory, nor in the kernel-directory, although I configured the vxWorks-skin to be generated as a module in the kernel configuration (make menuconfig)). Having a look in the Xenomai/src/skin/vxworks-directory, there are no source files at all, in contrast to all other skins. Is this intentional, or are the sources missing ? Could you give me a hint, where I can find the vxworks library or how I can generate it. Of course I could have a look in the makefile sources, but as I am not an expert in Makefiles and autoconfiguration, this would take quite a long time. Therefore I would appreciate your help very much, even if my question should be silly. Thank you in advance Roderik > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Philippe Gerum > Gesendet: Freitag, 17. Februar 2006 14:54 > An: Wildenburg, Roderik RAEK3 MRA > Cc: Xenomai-help@gna.org > Betreff: Re: [Xenomai-help] Newbie Question : Compile test programm > > [EMAIL PROTECTED] wrote: > > Dear Gurus, > > > > I simply try to compile a straightforward Xenomai example > for the vxWorks-skin like this : > > > > -- > > #include > > #include > > #include > > #include > > > > int testtask (int a1, int a2,int a3,int a4,int a5,int a6,int a7,int > > a8,int a9,int a10) { > >for(;;) > >{ > > printf("Hello World\n"); > > taskDelay(sysClkRateGet()*1); > >} > > } > > > > main(int argc, char **argv) > > { > >int taskid; > > > >taskid=taskSpawn( "vxTestTask", 0, 0, 1000, testtask, > 0,0,0,0,0,0,0,0,0,0); > >taskDelay(sysClkRateGet()*20); > > > > } > > > > -- > > > > Not very useful, but good enough as an example. > > > > When I try to (cross-)compile (for PowerPC) this code with > the following statement : > > > > > >>ppc-linux-gcc -I ~/xenomai/_install/include test.c > > > > > > (_install/include is the directory of the installed (make > install) Xenomai header files.) I get the following errormessage (and > much more): > > > > In file included from > ~/xenomai/_install/include/nucleus/xenomai.h:23, > > from test.c:2: > > ~/xenomai/_install/include/xenomai/nucleus/pod.h:125: parse > error before "xnthread_t" > > ~/xenomai/_install/include/xenomai/nucleus/pod.h:125: warning: no > > semicolon at end of struct or union > > ~/xenomai/_install/include/xenomai/nucleus/pod.h:127: warning: data > > definition has no type or storage class > > > > > > I tried to find a simple example code for vxworks-skin, but > I wasn´t succesfull (is there such a code at all and where ?). > > Could you please give me a hint, what I is wrong with my > code, or where I can find some Xenomai examples (vxWorks-skin). > > > > Try ksrc/skins/vxworks/demos/ > > > Thank you in advance > > Roderik > > > > > > ___ > > Xenomai-help mailing list > > Xenomai-help@gna.org > > https://mail.gna.org/listinfo/xenomai-help > > > > > -- > > Philippe. > > ___ > Xenomai-help mailing list > Xenomai-help@gna.org > https://mail.gna.org/listinfo/xenomai-help > ___ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help