All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] help-IntelAtom
@ 2011-06-01  5:35 sanjay anvekar
  2011-06-01  6:12 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: sanjay anvekar @ 2011-06-01  5:35 UTC (permalink / raw)
  To: xenomai@xenomai.org

[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]

Hi,
     I am facing problem running Xenomai test programs and it gives me following error.
>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

>uname -a

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

>dmesg | grep I-pipe

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

>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

[-- Attachment #2: Type: text/html, Size: 3121 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] help-IntelAtom
  2011-06-01  5:35 [Xenomai-help] help-IntelAtom sanjay anvekar
@ 2011-06-01  6:12 ` Gilles Chanteperdrix
  2011-06-01  7:04   ` sanjay anvekar
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2011-06-01  6:12 UTC (permalink / raw)
  To: sanjay anvekar; +Cc: xenomai@xenomai.org

On 06/01/2011 07:35 AM, sanjay anvekar wrote:
> Hi,
>      I am facing problem running Xenomai test programs and it gives me following error.
>> 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?

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] help-IntelAtom
  2011-06-01  6:12 ` Gilles Chanteperdrix
@ 2011-06-01  7:04   ` sanjay anvekar
  0 siblings, 0 replies; 3+ messages in thread
From: sanjay anvekar @ 2011-06-01  7:04 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

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 <gilles.chanteperdrix@xenomai.org>
To: sanjay anvekar <sanjayanvekar@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Sent: Wednesday, 1 June 2011 11:42 AM
Subject: Re: [Xenomai-help] help-IntelAtom

On 06/01/2011 07:35 AM, sanjay anvekar wrote:
> Hi,
>      I am facing problem running Xenomai test programs and it gives me following error.
>> 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?

-- 
                                                                Gilles.

[-- Attachment #2: Type: text/html, Size: 2390 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-01  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01  5:35 [Xenomai-help] help-IntelAtom sanjay anvekar
2011-06-01  6:12 ` Gilles Chanteperdrix
2011-06-01  7:04   ` sanjay anvekar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.