If I run a build from a directory that isn't the build directory: $ cd poky $ . oe-init-build-env $ cd .. $ bitbake m4 NOTE: Retrying server connection... (Traceback (most recent call last): File "/home/ross/Yocto/poky/bitbake/lib/bb/main.py", line 427, in setup_bitbake topdir, lock = lockBitbake() File "/home/ross/Yocto/poky/bitbake/lib/bb/main.py", line 494, in lockBitbake lockfile = topdir + "/bitbake.lock" TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' ) [ repeated ] ERROR: Unable to connect to bitbake server, or start one
Right, I've seen this as well. Once upon a time you used to be able to run bitbake anywhere after having set up the environment, but that got broken some time ago (though this particular behaviour is fairly new).
Patches for both issues on the lists (Oe-Core and Bitbake)
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ba2cfcc6ddc06e45beb50fe1f2fc18755e155ffa http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5dacc5516718efdf0a470e074a5c05b1ecf8cc15