[yocto] libgcc_s not present in Yocto image

Nathan Sowatskey nathan at nathan.to
Fri Feb 5 09:47:20 PST 2016


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 .deb file was supplied to me. I don’t know what that was built on though.

Then:

which testprog 
/usr/bin/testprog
/usr/bin/testprog 
-sh: /usr/bin/testprog: No such file or directory

Then I:

readelf -a /usr/bin/testprog | grep Shared
 0x0000000000000001 (NEEDED)             Shared library: [libsnmp.so.30]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Network.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5SerialPort.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Core.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

Followed by:

find /usr/lib -name libQt5Network.so.5
/usr/lib/libQt5Network.so.5

So, I have that lib.

find /usr/lib -name libgcc_s.so.1     
root at qemux86-64:~# 

I don’t have that lib.

With ldd I get:

ldd /usr/bin/testprog 
/usr/bin/ldd: line 117: /usr/bin/testprog: No such file or directory

So, that’s where I am at this stage.

Regards

Nathan

> On 5 Feb 2016, at 16:50, Burton, Ross <ross.burton at intel.com> wrote:
> 
> 
> On 5 February 2016 at 15:24, Nathan Sowatskey <nathan at nathan.to> 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 contains /lib/libgcc_s.so.1, so it should be installed in your image already:
> 
> How are you determining that it isn't in your image, and that your application doesn't work?
> 
> Ross




More information about the yocto mailing list