Re: [yocto] libgcc_s not present in Yocto image

2016-02-06 Thread Nathan Sowatskey
Thanks :-) /lib/ld-linux-x86-64.so.2 /usr/bin/testprog Illegal instruction /lib/ld-linux-x86-64.so.2 --list /usr/bin/testprog linux-vdso.so.1 (0x7ffec29ee000) libsnmp.so.30 => /usr/lib/libsnmp.so.30 (0x7fab23671000) libQt5Network.so.5 =>

Re: [yocto] libgcc_s not present in Yocto image

2016-02-06 Thread Khem Raj
On Sat, Feb 6, 2016 at 9:07 AM, Nathan Sowatskey wrote: > /lib/ld-linux-x86-64.so.2 /usr/bin/testprog > Illegal instruction thats your problem. It seems to be compiled for a newer architecture than whats emulated on qemu -- ___ yocto

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
Hi Khem Thanks for trying to help :-) I read what you have suggested below as trying to execute “ld.so” and passing my program as an argument. I can’t find a file called “ld.so” on either my Yocto image, or even the Ubuntu box that I am using to build it (which I use as a comparative

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Burton, Ross
On 5 February 2016 at 15:24, Nathan Sowatskey wrote: > I suspect that my test program, which was supplied to me as a .deb > package, was compiled on Ubuntu, and so links to libgcc_s.so.1. I can’t see > any obvious way to get libgcc_s.so.1 on Yocto. I already have: > libgcc

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
-- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Richard Purdie
On Fri, 2016-02-05 at 15:50 +, Burton, Ross wrote: > > On 5 February 2016 at 15:24, Nathan Sowatskey > wrote: > > I suspect that my test program, which was supplied to me as a .deb > > package, was compiled on Ubuntu, and so links to libgcc_s.so.1. I > > can’t see any

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Khem Raj
by ld.so I mean dynamic linker shared lib not literally ld.so file it should be in /lib/ld*.so On Fri, Feb 5, 2016 at 11:36 PM, Nathan Sowatskey wrote: > Hi Khem > > Thanks for trying to help :-) > > I read what you have suggested below as trying to execute “ld.so” and passing

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
Hi Khem Thanks for trying to help :-) I read what you have suggested below as trying to execute “ld.so” and passing my program as an argument. I can’t find a file called “ld.so” on either my Yocto image, or even the Ubuntu box that I am using to build it (which I use as a comparative

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Fred Ollinger
ubject: Re: [yocto] libgcc_s not present in Yocto image Thanks Fred. I am using qemux86_64 on Intel i7 chips with OSX. The target is likewise Intel. I am assuming that is quite generic, but … Regards Nathan > On 5 Feb 2016, at 19:06, Fred Ollinger <fred.ollin...@seescan.com> wrot

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
Thanks Khem. Please see below: readelf -a /usr/bin/testprog ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
ebruary 5, 2016 9:47 AM > To: Burton, Ross > Cc: yocto@yoctoproject.org; Fred Ollinger > Subject: Re: [yocto] libgcc_s not present in Yocto image > > Hi Ross > > Many thanks for following up. Fred also offered some helpful suggestions in a > different thread. > > The p

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Fred Ollinger
tskey <nat...@nathan.to> > Sent: Friday, February 5, 2016 10:09 AM > To: Fred Ollinger > Cc: Burton, Ross; yocto@yoctoproject.org > Subject: Re: [yocto] libgcc_s not present in Yocto image > > Thanks Fred. > > I am using qemux86_64 on Intel i7 chips with OSX. The

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Khem Raj
On Fri, Feb 5, 2016 at 10:23 AM, Nathan Sowatskey wrote: > Hi Kem > > The testprog was given to me as a .deb package by a third party to test. I > did not compile it and I don’t know what they did either. OK, paste the out of readelf -a on this binary its mosly looking for

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Burton, Ross
On 5 February 2016 at 17:47, Nathan Sowatskey wrote: > find /usr/lib -name libgcc_s.so.1 > root@qemux86-64:~# > > I don’t have that lib. > As I said, libgcc_s.so.1 is in /lib, not /usr/lib. > With ldd I get: > > ldd /usr/bin/testprog > /usr/bin/ldd: line 117:

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Fred Ollinger
My guess is that the executable is not compiled for his hardware. Frederick From: Burton, Ross <ross.bur...@intel.com> Sent: Friday, February 5, 2016 9:56 AM To: Nathan Sowatskey Cc: yocto@yoctoproject.org; Fred Ollinger Subject: Re: [yocto] libgcc_s not p

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
iday, February 5, 2016 10:09 AM > To: Fred Ollinger > Cc: Burton, Ross; yocto@yoctoproject.org > Subject: Re: [yocto] libgcc_s not present in Yocto image > > Thanks Fred. > > I am using qemux86_64 on Intel i7 chips with OSX. The target is likewise > Intel. > > I am a

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
ompiled for his hardware. > > > Frederick > > > From: Burton, Ross <ross.bur...@intel.com> > Sent: Friday, February 5, 2016 9:56 AM > To: Nathan Sowatskey > Cc: yocto@yoctoproject.org; Fred Ollinger > Subject: Re: [yocto] libgcc_s no

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
nt: Friday, February 5, 2016 10:12 AM > To: Fred Ollinger > Cc: Burton, Ross; yocto@yoctoproject.org > Subject: Re: [yocto] libgcc_s not present in Yocto image > > file /usr/bin/testprog > /usr/bin/testprog: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), > dynamically lin

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
Hi Ross Many thanks for following up. Fred also offered some helpful suggestions in a different thread. The program in question was supplied to me by a third party for testing, so I shall obscure the name here and call it testprog. It was installed by: dpkg -i ./testprog.deb Where the

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Khem Raj
n the edge of my seat.) >> >> From: Nathan Sowatskey <nat...@nathan.to> >> Sent: Friday, February 5, 2016 10:09 AM >> To: Fred Ollinger >> Cc: Burton, Ross; yocto@yoctoproject.org >> Subject: Re: [yocto] libgc

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Fred Ollinger
What are results of: $ file testprog Frederick From: Nathan Sowatskey <nat...@nathan.to> Sent: Friday, February 5, 2016 9:47 AM To: Burton, Ross Cc: yocto@yoctoproject.org; Fred Ollinger Subject: Re: [yocto] libgcc_s not present in Yocto image H

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
Sitting on the edge of my seat.) >>> >>> From: Nathan Sowatskey <nat...@nathan.to> >>> Sent: Friday, February 5, 2016 10:09 AM >>> To: Fred Ollinger >>> Cc: Burton, Ross; yocto@yoctoproject.org >>> Subj

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Nathan Sowatskey
Thank you Burton and Tanu. The upshot here seems to be that there is a platform dependency on whether one links to libgcc_s.a or libgcc_s.so.1: "libgcc.a or libgcc_s.so.1 on some platforms”. I suspect that my test program, which was supplied to me as a .deb package, was compiled on Ubuntu, and

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Burton, Ross
On 5 February 2016 at 18:12, Nathan Sowatskey wrote: > interpreter /lib64/ld-linux-x86-64.so.2 Does the loader hunt around for this, as this is certainly not present in a default OE image? Ross -- ___ yocto mailing list

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Khem Raj
On Fri, Feb 5, 2016 at 11:53 AM, Burton, Ross wrote: > > On 5 February 2016 at 18:12, Nathan Sowatskey wrote: >> >> interpreter /lib64/ld-linux-x86-64.so.2 > > > Does the loader hunt around for this, as this is certainly not present in a > default OE

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Khem Raj
On Fri, Feb 5, 2016 at 12:46 PM, Burton, Ross wrote: > > On 5 February 2016 at 19:56, Khem Raj wrote: >> >> >> interpreter /lib64/ld-linux-x86-64.so.2 >> > >> > >> > Does the loader hunt around for this, as this is certainly not present >> > in a >> >

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Burton, Ross
On 5 February 2016 at 19:56, Khem Raj wrote: > >> interpreter /lib64/ld-linux-x86-64.so.2 > > > > > > Does the loader hunt around for this, as this is certainly not present > in a > > default OE image? > > no it wont. infact thats the loader. Yeah, what I meant is would the

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Tanu Kaskinen
On Fri, 2016-02-05 at 12:40 +0100, Nathan Sowatskey wrote: > Hi > > I am working with a test program which has a dependency on libgcc_s.  > > On Ubuntu that is available, for example from a 14.04 Ubuntu desktop build: > > find /usr/lib -name "*gcc*” > ... >

Re: [yocto] libgcc_s not present in Yocto image

2016-02-05 Thread Burton, Ross
On 5 February 2016 at 11:40, Nathan Sowatskey wrote: > Is there a way to get the libgcc_s library on a Yocto image? Is that even > the right thing to do? > It's fairly likely that your binary is actually linking to libgcc_s.so.1 (which by default is in /lib, part of libgcc).