Bug 6299 - sstate relocation failing
Summary: sstate relocation failing
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium normal
Target Milestone: 1.7 M2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-08 16:25 UTC by Ross Burton
Modified: 2014-07-25 16:18 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2014-05-08 16:25:20 UTC
The sstate relocation magic appears to be failing.  If I do a build with TMPDIR=foo and then set TMPDIR=bar, I get this as bitbake creates the sysroot from sstate:

NOTE: Executing RunQueue Tasks
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-mpfr-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-gmp-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-libmpc-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-qemux86-64-libgcc-initial.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-qemux86-64-eglibc-initial.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-gperf-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-kconfig-frontends-native.populate_sysroot not found
WARNING: /data/poky-master/tmp/sstate-control/manifest-x86_64-unifdef-native.populate_sysroot not found

Then whenever the compiler is executed:

configure:3132: checking whether the C compiler works
configure:3154: x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/data/poky-master/tmp/sysroots/qemux86-64  -O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
/data/poky-master/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.8.2/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

(those paths are in BAR)
Comment 1 Richard Purdie 2014-05-11 12:51:55 UTC
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=bc19e915fbbb932f7ad7bb8a0b7fb3227f94562f should fix most of this. I suspect there are still WARNINGS but the failures should be resolved.
Comment 2 Ross Burton 2014-05-23 16:58:28 UTC
If I switch TMPDIR and bitbake -C configure glib-2.0 I get these warnings:

WARNING: /data/poky-master/tmp2/sstate-control/manifest-x86_64-util-macros-native.populate_sysroot not found
WARNING: /data/poky-master/tmp2/sstate-control/manifest-x86_64-xproto-native.populate_sysroot not found
WARNING: /data/poky-master/tmp2/sstate-control/manifest-x86_64-xcb-proto-native.populate_sysroot not found

Much fewer than before so that's a vast improvement.
Comment 3 Richard Purdie 2014-06-03 11:05:30 UTC
Lowering this to a medium as we now get harmless warnings rather than failures.

There is a patch out to address those warnings but it may prove too invasive. Moving the target to M2 to give us more time to explore the different options for fixing the remaining warnings.
Comment 4 Richard Purdie 2014-07-25 16:18:16 UTC
Fixed in master finally with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=419daaaf0a2c773cadd67671fdb6234c598cd252