Wind River Support Network


LIN5-22171 : sstate problems when using multilib lib32

Created: Dec 5, 2016    Updated: Dec 19, 2017
Resolved Date: Jan 19, 2017
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Build & Config


For 64 bit packages is the STAGING_KERNEL_DIR varible sstate'd as "${STAGING_DIR_HOST}/usr/src/kernel" but for some reason it is expanded to an absolute path for 32 bit packages. (Possible due to commit 11941fe067394124f49ef7dba4eba78e612b83f0 in oe-core)

"Variable STAGING_KERNEL_DIR value changed from /wrlinux5/wrl5_2/bitbake_build/tmp/sysroots/qemux86-64/usr/src/kernel to /wrlinux5/wrl5_1/bitbake_build/tmp/sysroots/qemux86-64/usr/src/kernel"

Steps to Reproduce

1. Create a sstate dir for the first project. (e.g. sstate-cache_1)

2. # Create a working directory that will use one sstate directory
mkdir wrl5_1 && cd wrl5_1
<WRL installation>/wrlinux-5/wrlinux/configure
      --enable-board=qemux86-64 --enable-rootfs=glibc-small
      --enable-kernel=standard --enable-reconfig
      --with-sstate-dir=../sstate-cache5_1 --enable-buildhist=no
      --with-package=schedtool,lib32-schedtool --with-rcpl-version=auto

3. make

4. Create another sstate dir for second project that will make an overlay to the first populated sstate dir with "lndir" command.
mkdir sstate-cache_2
lndir $PWD/sstate-cache_1 sstate-cache_2

5. # Create a second working directory using the second sstate dir
mkdir wrl5_2 && cd wrl5_2
<WRL installation>/wrlinux-5/wrlinux/configure
      --enable-board=qemux86-64 --enable-rootfs=glibc-small
      --enable-kernel=standard --enable-reconfig
      --with-sstate-dir=../sstate-cache5_2 --enable-buildhist=no
      --with-package=schedtool,lib32-schedtool --with-rcpl-version=auto

6. make

7. List all packages that was rebuilt:
find <path_to_sstate-cache_2-dir>/sstate-cache_2 -type f

8. Find the reason why lib32-schedtool was rebuilt:
SIGINFO1=$(find ../sstate-cache5_1 -type f -name "*lib32 schedtool*_package.tgz.siginfo")

SIGINFO2=$(find ../sstate-cache5_2 -type f -name "*lib32-schedtool*_package.tgz.siginfo")

<project_path>/bitbake/bin/bitbake-diffsigs $SIGINFO2 $SIGINFO1

Please observe the output.

Other Downloads

Live chat