If you install the SDK (or buildtools, in my tests) to a path which has the default path as a substring, the relocation ends up garbling the path in the environment setup script due to replacing the default path twice. For example, if the current SDK version is 1.7, when prompted for the installation path by the SDK installer script, specify /opt/poky/1.7-test. If you then examine the environment setup script you will see something like this: $ cat /opt/poky/1.7bing/environment-setup-x86_64-pokysdk-linux export PATH=/opt/poky/1.7-test-test/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH ... This appears to be a recent regression as I have tested both the 1.7 release buildtools installer and the latest version build on the autobuilder, and only the latter suffers from this issue.
Obviously that example should have been: $ cat /opt/poky/1.7-test/environment-setup-x86_64-pokysdk-linux export PATH=/opt/poky/1.7-test-test/sysroots/x86_64-pokysdk-linux/usr/bin:$PATH ... (copy/paste failure)
Note that this affects dizzy as well and thus we will need to backport the fix assuming it is practical.
Merged at, http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1c5be7705ef32f3430fa4551b571e91192207d13
*** Bug 7343 has been marked as a duplicate of this bug. ***