Bug 2976

Summary: AttributeError: 'CoreRecipeInfo' object has no attribute 'task_deps'
Product: [Build System, Metadata & Runtime] BitBake Reporter: Martin Jansa <Martin.Jansa>
Component: bitbakeAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, poky.bs.watcher, poky.watcher, sgw, sstncr
Version: unspecified   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Martin Jansa 2012-08-21 07:31:30 UTC
This error is shown when someone tries to bitbake -b foo.bb with MACHINE
set to something incompatible with foo.bb:COMPATIBLE_MACHINE

OE om-gta04@shr ~/shr-core $ grep COMPATIBLE /OE/shr-core/meta-smartphone/meta-openmoko/recipes-kernel/linux/linux-gta04_git.bb
COMPATIBLE_MACHINE = "om-gta04"

OE om-gta04@shr ~/shr-core $ export MACHINE=om-gta02
OE om-gta02@shr ~/shr-core $ bitbake -b meta-smartphone/meta-openmoko/recipes-kernel/linux/linux-gta04_git.bb -c cleansstate
WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.
ERROR: Command execution failed: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 87, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 203, in buildFile
    command.cooker.buildFile(bfile, task)
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 1060, in buildFile
    self.status.add_from_recipeinfo(fn, info_array)
  File "/usr/lib64/python2.7/site-packages/bb/cache.py", line 712, in add_from_recipeinfo
    info.add_cacheData(self, fn)
  File "/usr/lib64/python2.7/site-packages/bb/cache.py", line 186, in add_cacheData
    cachedata.task_deps[fn] = self.task_deps
AttributeError: 'CoreRecipeInfo' object has no attribute 'task_deps'


Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Better error message would be nice.
Comment 1 Paul Eggleton 2012-09-06 13:34:19 UTC
Fix merged to master in Poky rev fddc16989ddb181800eb6ec383b431e00d79f286 (bitbake rev a324df40243fa55ccc89fd5970d46f25330d0a0d).
Comment 2 Stefan Stanacar 2012-10-02 09:09:50 UTC
Verified in 95c0e7827835e73f5d1ed4be9b2ba74b37b62004