Bug 1516 - Missing rdepends of native binaries when using sstate packages
Summary: Missing rdepends of native binaries when using sstate packages
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
: 1515 (view as bug list)
Depends on:
Blocks: 1391
  Show dependency tree
 
Reported: 2011-09-22 13:49 UTC by Darren Hart
Modified: 2012-01-27 02:27 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
rpm-natice log.do_configure (59.02 KB, text/plain)
2011-09-23 09:38 UTC, Darren Hart
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Hart 2011-09-22 13:49:27 UTC
OE Build Configuration:
BB_VERSION        = "1.13.3"
TARGET_ARCH       = "powerpc"
TARGET_OS         = "linux"
MACHINE           = "qemuppc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.0+snapshot-20110922"
TUNE_FEATURES     = "m32 fpu-hard ppc603e"
TARGET_FPU        = ""
meta              
meta-yocto        = "master:ff8f0ea563ba3e9d6f8b8e770cfbf4dca8ad5288"
meta-kernel-dev   = "master:5193f2986c82d4c9a3b5e3cffb96877406664151"


Experiencing what appears to be another missing dependency and possibly host contamination.


$ bitbake core-image-minimal

...

ERROR: Function 'BUILDSPEC' failed (see /build/poky/qemuppc/tmp/work/qemuppc-poky-linux/sysvinit-inittab-2.88dsf-r6/temp/log.do_package_write_rpm.24163 for further information)
ERROR: Logfile of failure stored in: /build/poky/qemuppc/tmp/work/qemuppc-poky-linux/sysvinit-inittab-2.88dsf-r6/temp/log.do_package_write_rpm.24163
Log data follows:
| NOTE: Creating RPM package for sysvinit-inittab-dbg
| NOTE: Creating RPM package for sysvinit-inittab
| NOTE: Creating RPM package for sysvinit-inittab
| NOTE: Not creating empty RPM package for sysvinit-inittab-doc
| NOTE: Creating EMPTY RPM Package for sysvinit-inittab-dev
| NOTE: Not creating empty RPM package for sysvinit-inittab-staticdev
| NOTE: Not creating empty RPM package for sysvinit-inittab-locale
| ERROR: Function 'BUILDSPEC' failed (see /build/poky/qemuppc/tmp/work/qemuppc-poky-linux/sysvinit-inittab-2.88dsf-r6/temp/log.do_package_write_rpm.24163 for further information)
| /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/rpmbuild.real: error while loading shared libraries: libpcreposix.so.0: cannot open shared object file: No such file or directory
NOTE: package sysvinit-inittab-2.88dsf-r6: task do_package_write_rpm: Failed
NOTE: package initscripts-1.0-r127: task do_package_write_rpm: Started
NOTE: package base-files-3.0.14-r69: task do_package_write_rpm: Started
NOTE: package linux-yocto-rt-3.0.4+git9+0dcdf7bb40a8e1fb18fd27d442fa5ace8cff4941_1+0936e13cc65d816f1759e2322c5e3fc82a5037f3-r1: task do_validate_branches: Started
NOTE: package eglibc-initial-2.13-r15+svnr14157: task do_package_write_rpm: Succeeded
NOTE: Running noexec task 1056 of 1486 (ID: 1161, /home/dvhart/source/poky.git/meta/recipes-core/eglibc/eglibc-initial_2.13.bb, do_package_write)
ERROR: Task 1100 (/home/dvhart/source/poky.git/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, do_package_write_rpm) failed with exit code '1'


$ ldd /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/rpmbuild.real
        linux-vdso.so.1 =>  (0x00007fff32bec000)
        librpmbuild-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmbuild-5.4.so (0x00007f33545f4000)
        librpm-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpm-5.4.so (0x00007f3354379000)
        librpmdb-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmdb-5.4.so (0x00007f33540f7000)
        librpmio-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmio-5.4.so (0x00007f3353daa000)
        librpmmisc-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmmisc-5.4.so (0x00007f3353b69000)
        libm.so.6 => /lib/libm.so.6 (0x00007f33538db000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f33536d7000)
        libacl.so.1 => /lib/libacl.so.1 (0x00007f33534cf000)
        libattr.so.1 => /lib/libattr.so.1 (0x00007f33532c9000)
        libpcreposix.so.0 => not found
        libdb-5.1.so => not found
        libmagic.so.1 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libmagic.so.1 (0x00007f33530aa000)
        libbz2.so.0 => not found
        libz.so.1 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libz.so.1 (0x00007f3352e93000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f3352c75000)
        librt.so.1 => /lib/librt.so.1 (0x00007f3352a6d000)
        libelf.so.1 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libelf.so.1 (0x00007f3352858000)
        libpopt.so.0 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libpopt.so.0 (0x00007f335264b000)
        libssl.so.0.9.8 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libssl.so.0.9.8 (0x00007f33523f7000)
        libcrypto.so.0.9.8 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libcrypto.so.0.9.8 (0x00007f3352065000)
        libpcre.so.0 => not found
        libc.so.6 => /lib/libc.so.6 (0x00007f3351ce1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f335482b000)
        libpcreposix.so.0 => not found
        libdb-5.1.so => not found
        libbz2.so.0 => not found
        libpcre.so.0 => not found
        libpcreposix.so.0 => not found
        libdb-5.1.so => not found
        libbz2.so.0 => not found
        libpcre.so.0 => not found
        libpcreposix.so.0 => not found
        libdb-5.1.so => not found
        libbz2.so.0 => not found
        libpcre.so.0 => not found
        libpcreposix.so.0 => not found
        libdb-5.1.so => not found
        libbz2.so.0 => not found
        libpcre.so.0 => not found
        libpcreposix.so.0 => not found
        libdb-5.1.so => not found
        libbz2.so.0 => not found
        libpcre.so.0 => not found
Comment 1 Saul Wold 2011-09-22 16:50:29 UTC
This seems to be a host contamination issue, as I can build this fine with my machine, can you attach the configure logs your rpm-native
Comment 2 Dongxiao Xu 2011-09-23 06:20:54 UTC
Thie should be a duplication of bug 1326
Rerun bitbake the error will disappear, right?
Comment 3 Dongxiao Xu 2011-09-23 07:54:26 UTC
seems the errors are different with 1326, ignore my previous post.
Comment 4 Darren Hart 2011-09-23 09:38:47 UTC
Created attachment 252 [details]
rpm-natice log.do_configure

I had to rebuild as sstate was used last time. The new log.do_configure is attached. The current ldd:

$ ldd /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/rpmbuild.real
        linux-vdso.so.1 =>  (0x00007fffc47ff000)
        librpmbuild-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmbuild-5.4.so (0x00007f5c50b03000)
        librpm-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpm-5.4.so (0x00007f5c50889000)
        librpmdb-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmdb-5.4.so (0x00007f5c50607000)
        librpmio-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmio-5.4.so (0x00007f5c502c1000)
        librpmmisc-5.4.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/librpmmisc-5.4.so (0x00007f5c50080000)
        libm.so.6 => /lib/libm.so.6 (0x00007f5c4fdf1000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f5c4fbed000)
        libacl.so.1 => /lib/libacl.so.1 (0x00007f5c4f9e5000)
        libattr.so.1 => /lib/libattr.so.1 (0x00007f5c4f7df000)
        libpcreposix.so.0 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libpcreposix.so.0 (0x00007f5c4f5dc000)
        libdb-5.1.so => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libdb-5.1.so (0x00007f5c4f2e2000)
        libmagic.so.1 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libmagic.so.1 (0x00007f5c4f0c3000)
        libz.so.1 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libz.so.1 (0x00007f5c4eeac000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f5c4ec8f000)
        librt.so.1 => /lib/librt.so.1 (0x00007f5c4ea86000)
        libelf.so.1 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libelf.so.1 (0x00007f5c4e871000)
        libpopt.so.0 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libpopt.so.0 (0x00007f5c4e665000)
        libssl.so.0.9.8 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libssl.so.0.9.8 (0x00007f5c4e410000)
        libcrypto.so.0.9.8 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libcrypto.so.0.9.8 (0x00007f5c4e07e000)
        libpcre.so.0 => /build/poky/qemuppc/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libpcre.so.0 (0x00007f5c4de58000)
        libc.so.6 => /lib/libc.so.6 (0x00007f5c4dad4000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f5c50d3a000)

This appears to be much more sane. It is pulling in the HOST glibc libraries, but everything else is from sysroots. I believe this is correct behavior.
Comment 5 Saul Wold 2011-09-23 11:27:02 UTC
This issue does seem to be related to sstate since a fresh build does work, it's possible some libraries were upgraded and this invalidated the configuration.
Comment 6 Saul Wold 2011-09-23 11:27:59 UTC
*** Bug 1515 has been marked as a duplicate of this bug. ***
Comment 7 Richard Purdie 2012-01-27 02:27:17 UTC
I don't think the issues reported in this bug and in 1515 are host library issues. I think they are sstate dependency issues where sstate has been installed but didn't pull in all the relevant dependencies.

Looking at the code at the time these bugs were filed, we had real problems in this area. We made significant code changes which have likely stopped these problems from happening, e.g.:

http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib/bb/runqueue.py?id=97a40ff05ed7c374502759e0d462f5dc21f71f6d

http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib?id=54217ee467f239f244a8697c5e12c0fa8212f4c2

http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib?id=319ea222ee5e6bf01386f344ec9f9b8b49f639eb

http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib/bb/runqueue.py?id=d43175e747d6982cf3ca1a463eafc960b67966e2

I'm therefore marking this bug as resolved and changing the bug subject to accurately reflect the reported problem. I agree we need to detect host glibc changes and I've filed http://bugzilla.yoctoproject.org/show_bug.cgi?id=1938 for this.
Comment 8 Richard Purdie 2012-01-27 02:27:50 UTC
Resolve as discussed in previous comment.