This error has been catch with a Python recipe which include some runtime dependencies on other packages. The do_populate_sysroot does not include dependencies on the runtime dependencies so those are not installed at all, leaving the tool in a non-working state. Adding: do_populate_sysroot[rdeptask] = "do_populate_sysroot" To the recipe workaround the problem.
To elaborate, if you have a recipe foo which does: RDEPENDS_${PN} = " \ python3-requests \ " BBCLASSEXTEND = "native" and you "bitbake foo-native -g", depends.dot shows foo-native has an RDEPENDS on python3-requests-native but task-depends.dot doesn't show a dependency from the do_populate_sysroot task. If we add the line: do_populate_sysroot[rdeptask] = "do_populate_sysroot" then the python3-requests-native:do_populate_sysroot dependency shows up correctly. Sadly adding this line to native.bbclass results in circular dependency errors however :(
Unfortunately this creates a lot of issues when trying to fix it properly. I would like to do that but its going to take a lot of time which we don't have right now and we have workarounds for the immediate issues. Reprioritising accordingly.
Finally found time to fix this http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=eea86c4f0a960d0094571a78dc0cf9d46d162a22 (was easier once the dependency look code in bitbake was fixed)