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)
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.
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.
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.
Fixed in master finally with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=419daaaf0a2c773cadd67671fdb6234c598cd252