[yocto] SSTATE_MIRRORS problems, libpthread.so.0 not found ...

Jonas Jonsson L jonas.l.jonsson at ericsson.com
Thu Apr 11 06:19:34 PDT 2013


Hi!

I'm building several different Raspberry Pi images that are almost the same, some configuration issues (ip-address, hostnames etc) differs on those different images.  My solution was to simply build a 'clean' image without any tweaking, then use all the packages from the 'clean' image via SSTATE_MIRRORS and build my images with their own peculiarities.  The 'clean' image is basically a 'core-image-minimal' image (rpi-hwup-image for Raspberry Pi).

So in 'clean' I have the sstate-cache, and in the other configurations, I set up
SSTATE_MIRRORS ?= "file://.* file:///home/foobar/clean/sstate-cache/PATH<file:///\\.*%20file:\home\foobar\clean\sstate-cache\PATH>"
in my local.conf ....  It works like a charm with regards to speed and disk-space.

The package that I've built builds clean without any warnings in the 'clean' build.  However, if I don't build my package in the clean image, but in one of my 'configured' images, it fails.  All of a sudden, the linker can't find neither /lib/libpthread.so.0 nor /usr/lib/libpthread_nonshared.a :(

buildfolder/tmp/sysroots/raspberrypi > ls -ll lib/libpthread.so.0 usr/lib/libpthread_nonshared.a lib/libpthread-2.17.so
-rwxr-xr-x 1 foobar bitbakers 960802 Apr 11 12:47 lib/libpthread-2.17.so
lrwxrwxrwx 1 foobar bitbakers     18 Apr 11 12:47 lib/libpthread.so.0 -> libpthread-2.17.so
-rw-r--r-- 1 foobar bitbakers   3376 Apr 11 12:47 usr/lib/libpthread_nonshared.a

What's going on here?  The sysroot (for the GNU tools) points to the correct folder, and the project is a standard autotools project, thus no magic involved.  Is there any particular dependency that I must set up in order to use pthreads?

Any ideas?  By the way, I'm on poky/master (march 7:th), 'git log -n 1' shows '6d9a3ac0515380d0789ee3d316c08212592a6f9a' (if that's interesting...)

Best regards,
Jonas Jonsson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130411/8ade2728/attachment.html>


More information about the yocto mailing list