Bug 5067 - bitbake make-3.81 prints stack trace of python calls
Summary: bitbake make-3.81 prints stack trace of python calls
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M5
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard: 24 March 2014: Set Documentation flag...
Depends on:
Blocks:
 
Reported: 2013-08-29 05:37 UTC by Robert Yang
Modified: 2014-03-24 20:16 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2013-08-29 05:37:25 UTC
$ bitbake make-3.81

The stack trace of python calls that resulted in this exception/failure was:
File: 'sstate_task_prefunc', lineno: 7, function: <module>
     0003:    shared_state = sstate_state_fromvars(d)
     0004:    sstate_clean(shared_state, d)
     0005:
     0006:
 *** 0007:sstate_task_prefunc(d)
     0008:
File: 'sstate_task_prefunc', lineno: 4, function: sstate_task_prefunc
     0001:
     0002:def sstate_task_prefunc(d):
     0003:    shared_state = sstate_state_fromvars(d)
 *** 0004:    sstate_clean(shared_state, d)
     0005:
     0006:
     0007:sstate_task_prefunc(d)
     0008:
File: 'sstate.bbclass', lineno: 17, function: sstate_clean
     0013:            locks.append(bb.utils.lockfile(lock))
     0014:        for lock in ss['lockfiles']:
     0015:            locks.append(bb.utils.lockfile(lock))
     0016:
 *** 0017:        sstate_clean_manifest(manifest, d)
     0018:
     0019:        for lock in locks:
     0020:            bb.utils.unlockfile(lock)
     0021:
File: 'sstate.bbclass', lineno: 4, function: sstate_clean_manifest
     0001:def sstate_clean_manifest(manifest, d): 
     0002:    import oe.path
     0003:
 *** 0004:    mfile = open(manifest)
     0005:    entries = mfile.readlines()
     0006:    mfile.close()
     0007:
     0008:    for entry in entries:
Exception: IOError: [Errno 2] No such file or directory: '/buildarea/lyang1/image/tmp/sstate-control/manifest-i586-make.package'

DEBUG: Python function sstate_task_prefunc finished
ERROR: Function failed: sstate_task_prefunc

This because the make-3.81 and make-3.82 are being built at the same time, the manifest may have been removed by make-3.82, but make-3.81 still opens it, so the error happens. I will send a patch for it.
Comment 1 Robert Yang 2013-09-22 03:22:33 UTC
We Stop providing ${P} and ${PF} by default now, which means that we don't support bitbake make-3.81 any more.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=493e8b46fdad9a4a0363ab9e614de122d4ea140d
Comment 2 Scott Rifenbark 2014-03-24 20:16:51 UTC
Hi, 

Correct me if I am wrong but I don't think this affects the documentation now.  I am setting the documentation flag to "No."

Scott