If the user specifies TMPDIR as a path containing parent directory reference (..) e.g. TMPDIR = "${TOPDIR}/../build-${DISTRO}" then the build will fail at do_unpack of expat with: gzip: /lib/i386-linux-gnu/libz.so.1: version `ZLIB_1.2.5.1' not found (required by gzip) It appears something is going wrong with the RPATH relocation: $ objdump -x ./tmp/sysroots/x86_64-linux/usr/bin/pigz-native/gzip | grep RPATH RPATH $ORIGIN/usr/lib:$ORIGIN/lib This was reproduced easily on two different systems running Ubuntu 12.04.
This will fix the chrpath, but there may be other issues lurking. We may also want to add a sanity check.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8669fec353b2f0dbe2bcef4543e6b5fd922a2665