Bug 2976 - AttributeError: 'CoreRecipeInfo' object has no attribute 'task_deps'
Summary: AttributeError: 'CoreRecipeInfo' object has no attribute 'task_deps'
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M4
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-21 07:31 UTC by Martin Jansa
Modified: 2012-10-02 09:09 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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