[poky] state broken
Khem Raj
raj.khem at gmail.com
Thu Aug 30 21:18:44 PDT 2012
Hello
I am getting following errors today
ERROR: Error executing a python function in /work/yocto/poky/meta/recipes-devtools/m4/m4-native_1.4.16.bb:
IOError: [Errno 2] No such file or directory: '/work/yocto/poky/build/tmp/sstate-control/master.list'
ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR: File "sstate_task_postfunc", line 10, in <module>
ERROR:
ERROR: File "sstate_task_postfunc", line 4, in sstate_task_postfunc
ERROR:
ERROR: File "sstate.bbclass", line 38, in sstate_install
ERROR:
ERROR: The code that was being executed was:
ERROR: 0006: bb.build.exec_func(intercept, d)
ERROR: 0007: sstate_package(shared_state, d)
ERROR: 0008:
ERROR: 0009:
ERROR: *** 0010:sstate_task_postfunc(d)
ERROR: 0011:
ERROR: [From file: 'sstate_task_postfunc', lineno: 10, function: <module>]
ERROR: 0001:
ERROR: 0002:def sstate_task_postfunc(d):
ERROR: 0003: shared_state = sstate_state_fromvars(d)
ERROR: *** 0004: sstate_install(shared_state, d)
ERROR: 0005: for intercept in shared_state['interceptfuncs']:
ERROR: 0006: bb.build.exec_func(intercept, d)
ERROR: 0007: sstate_package(shared_state, d)
ERROR: 0008:
ERROR: [From file: 'sstate_task_postfunc', lineno: 4, function: sstate_task_postfunc]
ERROR: 0034: # Check the file list for conflicts against the master manifest
ERROR: 0035: mastermanifest = d.getVar("SSTATE_MASTERMANIFEST", True)
ERROR: 0036: whitelist = d.getVar("SSTATE_DUPWHITELIST", True)
ERROR: 0037: lock = bb.utils.lockfile(mastermanifest + ".lock")
ERROR: *** 0038: fileslist = [line.strip() for line in open(mastermanifest)]
ERROR: 0039: bb.utils.unlockfile(lock)
ERROR: 0040: match = []
ERROR: 0041: for f in sharedfiles:
ERROR: 0042: if f in fileslist:
ERROR: [From file: 'sstate.bbclass', lineno: 38, function: sstate_install]
ERROR: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /work/yocto/poky/build/tmp/work/x86_64-linux/m4-native-1.4.16-r4/temp/log.do_populate_sysroot.5238
ERROR: Task 59 (/work/yocto/poky/meta/recipes-devtools/m4/m4-native_1.4.16.bb, do_populate_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 39 tasks of which 35 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/work/yocto/poky/meta/recipes-devtools/m4/m4-native_1.4.16.bb, do_populate_sysroot
Summary: There were 36 ERROR messages shown, returning a non-zero exit code.
I tracked it down to
commit 59260f952f8687ac67a17035307c6c0792728f1b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sat Aug 25 15:48:14 2012 +0000
sstate.bbclass: Detect overwriting files in sstate controlled directories
We have a potential problem where two sstate packages try and touch the same
file. This adds code which will print a warning whenever this happens.
The implementation does but by maintaining a master file list and comparing
file accesses against this. There are a number of places we have duplicate
accesses which are harmless, mostly in the deploy directory so these
are whitelisted.
For now the code prints warnings, this could be strengthened in future to
become error messages. Whilst working on this code on and off over the past
few months various issues were uncovered, some serious.
[YOCTO #238]
(From OE-Core rev: 1f1b6f93d6b7aa8c9bd9bb5b1826997812e36932)
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Anyone else seeing it ?
-Khem
More information about the poky
mailing list