From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <528683.58306.qm@domain.hid> Date: Tue, 31 May 2011 22:35:08 -0700 (PDT) From: sanjay anvekar MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2079389687-1306906508=:58306" Subject: [Xenomai-help] help-IntelAtom Reply-To: sanjay anvekar List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xenomai@xenomai.org" --0-2079389687-1306906508=:58306 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=A0=A0=A0=A0 I am facing problem running Xenomai test programs and it= gives me following error.=0A>clocktest=0A>/usr/xenomai/bin/clocktest: erro= r while loading shared libraries: /usr/xenomai/lib/libpthread_rt.so.1: ELF = file OS ABI invalid=0A=0Asimilar error is seen when I try to run latency or= any other Xenomai test program.=0A=0A=0AI am using Xenomai 2.5.6 patched t= o Kernel 2.6.37. When I do uname and dmesg following are the output=0A=0A>u= name -a=0A=0ALinux (none) 2.6.37-ipipe #2 SMP PREEMPT Mon May 30 15:28:24 I= ST 2011 i686 unknown=0A=0A>dmesg | grep I-pipe=0A=0A[=A0=A0=A0 0.000] I-pip= e 2.9-0: pipeline enabled.=0A[=A0=A0=A0 2.330] I-pipe: Domain Xenomai regis= tered.=0A=0A>dmesg | grep Xenomai=0A[=A0=A0=A0 2.330] I-pipe: Domain Xenoma= i registered.=0A[=A0=A0=A0 2.336] Xenomai: hal/i36 started.=0A[=A0=A0=A0 2.= 339] Xenomai: scheduling class idle registered.=0A[=A0=A0=A0 2.330] Xenomai= : scheduling class rt registered.=0A[=A0=A0=A0 2.302] Xenomai: real-time nu= cleus v2.5.6 (Wormhole Wizards) loaded.=0A[=A0=A0=A0 2.307] Xenomai: SMI-en= abled chipset found=0A[=A0=A0=A0 2.309] Xenomai: SMI workaround enabled=0A[= =A0=A0=A0 2.305] Xenomai: starting native API services.=0A[=A0=A0=A0 2.306]= Xenomai: starting POSIX services.=0A[=A0=A0=A0 2.302] Xenomai: starting RT= DM services.=0A=0AWhat I tried-=0A- Tried setting LD_LIBRARY_PATH=3D/usr/xe= nomai/lib/=0A- Tried rebuilding xenomai with=0A=A0=A0=A0=A0 --enable-x86-se= p --enable-smp --host=3Di686-linux CFLAGS=3D"-m32 -O2" LDFLAGS=3D"-m32" opt= ion=0A=A0=A0=A0 and also only --enable-x86-sep --enable-smp options=0A=0A- = Tried building and running 'rtprint' example program and had same error.=0A= - Tried to statically link the 'rtprint' example program and got following = error=0A=0Agcc -static -I/media/New1/Linux/xenomai/install/usr/xenomai/incl= ude -D_GNU_SOURCE -Wall -pipe -D__XENO__ -L/media/New1/Linux/xenomai/instal= l/usr/xenomai/lib -Xlinker -rpath -Xlinker /media/New1/Linux/xenomai/instal= l/usr/xenomai/lib -o rtprint rtprint.o -lnative -lxenomai -lpthread_rt -lrt= dk=0A/usr/bin/ld: cannot find -lc=0Acollect2: ld returned 1 exit status=0Am= ake: *** [rtprint] Error 1=0A=0APlease help me to solve this problem.=0A=0A= Thanks & Best regards,=0ASanjay=0A --0-2079389687-1306906508=:58306 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
     I am facing problem running Xenomai test progr= ams and it gives me following error.
>clocktest>/usr/xenomai/bin/clocktest: error while loading shared libraries: /us= r/xenomai/lib/libpthread_rt.so.1: ELF file OS ABI invalid
=
similar error is seen when I try to run l= atency or any other Xenomai test program.

I am using Xenomai 2.5.6 patched to Kernel 2.6.37. Wh= en I do uname and dmesg following are the output
>uname -a
Linux (none) 2.6.37-ipipe #2 = SMP PREEMPT Mon May 30 15:28:24 IST 2011 i686 unknown

<= /span>
>dmesg | grep I-pipe
[    0.000] I-pipe 2.9-0:= pipeline enabled.
[    2.330] I-pipe: Domain Xenomai reg= istered.

>dmesg | gre= p Xenomai
[    2.330] I-pipe: Domain = Xenomai registered.
[    2.336] Xenomai: hal/i36 started.=
[    2.339] Xenomai: scheduling class idle registered.[    2.330] Xenomai: scheduling class rt registered.
[&= nbsp;   2.302] Xenomai: real-time nucleus v2.5.6 (Wormhole Wizard= s) loaded.
[    2.307] Xenomai: SMI-enabled chipset found=
[    2.309] Xenomai: SMI workaround enabled
[ &n= bsp;  2.305] Xenomai: starting native API services.
[  &n= bsp; 2.306] Xenomai: starting POSIX services.
[    2.302]= Xenomai: starting RTDM services.

What I tried-=
- Tried setting LD_LIBRARY_PATH=3D/usr/xenomai/lib/=
- Tried rebuilding xenomai with
     --enable-x86-sep --enable-smp --host=3Di686-li= nux CFLAGS=3D"-m32 -O2" LDFLAGS=3D"-m32" option
&nbs= p;   and also only --enable-x86-sep --enable-smp options
- Tried building and running 'rtprint' example program a= nd had same error.
- Tried to statically link the 'r= tprint' example program and got following error

= gcc -static -I/media/New1/Linux/xenomai/install/usr/xenomai/include -D_GNU_= SOURCE -Wall -pipe -D__XENO__ -L/media/New1/Linux/xenomai/install/usr/xenom= ai/lib -Xlinker -rpath -Xlinker /media/New1/Linux/xenomai/install/usr/xenom= ai/lib -o rtprint rtprint.o -lnative -lxenomai -lpthread_rt -lrtdk
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit sta= tus
make: *** [rtprint] Error 1

=
Please help me to solve this problem.

Thanks = & Best regards,
Sanjay
--0-2079389687-1306906508=:58306--