It isn't uncommon for something to go wrong with the .conf files when one is doing a lot of builds. On a couple occasions I've ended up with a config without a MACHINE defined. The message back from bitbake could be a lot more helpful / parsable: Pseudo is not present but is required, building this first before the main build ERROR: Execution of event handler 'check_sanity_eventhandler' failed Traceback (most recent call last): File "/home/dvhart/source/poky.git/bitbake/lib/bb/data_smart.py", line 60, in VariableParse.var_sub(match=<_sre.SRE_Match object at 0x1795238>): raise Exception("variable %s references itself!" % self.varname) > var = self.d.getVar(key, 1) if var is not None: File "/home/dvhart/source/poky.git/bitbake/lib/bb/data_smart.py", line 271, in DataSmart.getVar(var='MACHINE_ARCH', expand=1, noweakdefault=False): def getVar(self, var, expand=False, noweakdefault=False): > return self.getVarFlag(var, "content", expand, noweakdefault) File "/home/dvhart/source/poky.git/bitbake/lib/bb/data_smart.py", line 318, in DataSmart.getVarFlag(var='MACHINE_ARCH', flag='content', expand=1, noweakdefault=False): if expand and value: > value = self.expand(value, None) return value File "/home/dvhart/source/poky.git/bitbake/lib/bb/data_smart.py", line 144, in DataSmart.expand(s="${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}", varname=None): def expand(self, s, varname): > return self.expandWithRefs(s, varname).value File "/home/dvhart/source/poky.git/bitbake/lib/bb/data_smart.py", line 134, in DataSmart.expandWithRefs(s="${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}", varname=None): except Exception as exc: > raise ExpansionError(varname, s, exc) ExpansionError: Failure expanding variable None, expression was ${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')} which triggered exception AttributeError: 'NoneType' object has no attribute 'replace' ERROR: Failure expanding variable None, expression was ${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')} which triggered exception AttributeError: 'NoneType' object has no attribute 'replace' ERROR: Command execution failed: Exited with 1
Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a8d5225c3c05b6f6c48e7db5cfb81786ae52b89b
Just tested locally, fix verified.