Skip to contentSkip to conversation

help-IntelAtom

Xenomai-help sanjay anvekar 2 participants 3 messages Jun 1, 2011

lore
Share & tools
lore
#0 lore raw

Hi,
     I am facing problem running Xenomai test programs and it gives me following error.

Quoted 2 lines

clocktest
/usr/xenomai/bin/clocktest: error while loading shared libraries: /usr/xenomai/lib/libpthread_rt.so.1: ELF file OS ABI invalid

similar error is seen when I try to run latency or any other Xenomai test program.

I am using Xenomai 2.5.6 patched to Kernel 2.6.37. When I do uname and dmesg following are the output

Quoted 1 line

uname -a

Linux (none) 2.6.37-ipipe #2 SMP PREEMPT Mon May 30 15:28:24 IST 2011 i686 unknown

Quoted 1 line

dmesg | grep I-pipe

[    0.000] I-pipe 2.9-0: pipeline enabled.
[    2.330] I-pipe: Domain Xenomai registered.

Quoted 1 line

dmesg | grep 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.
[    2.302] Xenomai: real-time nucleus v2.5.6 (Wormhole Wizards) loaded. [    2.307] Xenomai: SMI-enabled chipset found
[    2.309] Xenomai: SMI workaround enabled
[    2.305] Xenomai: starting native API services.
[    2.306] Xenomai: starting POSIX services.
[    2.302] Xenomai: starting RTDM services.

What I tried-
- Tried setting LD_LIBRARY_PATH=/usr/xenomai/lib/
- Tried rebuilding xenomai with
     --enable-x86-sep --enable-smp --host=i686-linux CFLAGS="-m32 -O2" LDFLAGS="-m32" option and also only --enable-x86-sep --enable-smp options

- Tried building and running 'rtprint' example program and had same error.
- Tried to statically link the 'rtprint' 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/xenomai/lib -Xlinker -rpath -Xlinker /media/New1/Linux/xenomai/install/usr/xenomai/lib -o rtprint rtprint.o -lnative -lxenomai -lpthread_rt -lrtdk /usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [rtprint] Error 1

Please help me to solve this problem.

Thanks & Best regards,
Sanjay

#1 lore raw
Quoted 6 lines · sanjay anvekar

Hi,
I am facing problem running Xenomai test programs and it gives me following error.

Quoted 2 lines

clocktest
/usr/xenomai/bin/clocktest: error while loading shared libraries: /usr/xenomai/lib/libpthread_rt.so.1: ELF file OS ABI invalid

similar error is seen when I try to run latency or any other Xenomai test program.

There is no need to try 100 different things. First try to compile Xenomai and run the tests it contains. If that does not work, no need to go further.

The problem you have seems to be a toolchain problem: the toolchain you use does not seem to correspond to the libraries installed. Where does the libc you use come from? Where does the toolchain you use come from?

Signature · 1 line
                                                                Gilles.
#2 lore raw

Hi Gilles,
     Thank you very much for your quick reply. I tried replacing latest 'lib' files into my 'Initramfs' and Xenomai clocktest worked fine. I will start my RTOS porting now.

Thanks again.

Best Regards,
Sanjay

________________________________
From: Gilles Chanteperdrix <[email protected]>
To: sanjay anvekar <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Wednesday, 1 June 2011 11:42 AM
Subject: Re: [Xenomai-help] help-IntelAtom

Quoted 6 lines · sanjay anvekar

Hi,
      I am facing problem running Xenomai test programs and it gives me following error.

Quoted 2 lines

clocktest
/usr/xenomai/bin/clocktest: error while loading shared libraries: /usr/xenomai/lib/libpthread_rt.so.1: ELF file OS ABI invalid

similar error is seen when I try to run latency or any other Xenomai test program.

There is no need to try 100 different things. First try to compile Xenomai and run the tests it contains. If that does not work, no need to go further.

The problem you have seems to be a toolchain problem: the toolchain you use does not seem to correspond to the libraries installed. Where does the libc you use come from? Where does the toolchain you use come from?

Signature · 1 line
                                                                Gilles.