Bug 9433

Summary: archiver.bbclass: do_deploy_archives_setscene failures
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mikko Ylinen <mikko.ylinen>
Component: deploymentAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: richard.purdie
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mikko Ylinen 2016-04-11 18:09:10 UTC
After 81db27c208468dc460e9d8f0063ad24b2b37dc97 we started seeing 

do_deploy_archives_setscene: Error executing a python function in exec_python_func() autogenerated:
07:50:58 
07:50:58 The stack trace of python calls that resulted in this exception/failure was:
07:50:58 File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
07:50:58      0001:
07:50:58  *** 0002:do_deploy_archives_setscene(d)
07:50:58      0003:
07:50:58 File: '/var/lib/jenkins/ostro-worker-11-slot-1-YZTV5/ostro-os/meta/classes/archiver.bbclass', lineno: 369, function: do_deploy_archives_setscene
07:50:58      0365:do_deploy_archives () {
07:50:58      0366:    echo "Deploying source archive files ..."
07:50:58      0367:}
07:50:58      0368:python do_deploy_archives_setscene () {
07:50:58  *** 0369:    sstate_setscene(d)
07:50:58      0370:}
07:50:58      0371:do_deploy_archives[sstate-inputdirs] = "${ARCHIVER_TOPDIR}"
07:50:58      0372:do_deploy_archives[sstate-outputdirs] = "${DEPLOY_DIR_SRC}"
07:50:58      0373:addtask do_deploy_archives_setscene
07:50:58 File: '/var/lib/jenkins/ostro-worker-11-slot-1-YZTV5/ostro-os/meta/classes/sstate.bbclass', lineno: 648, function: sstate_setscene
07:50:58      0644:            break
07:50:58      0645:
07:50:58      0646:def sstate_setscene(d):
07:50:58      0647:    shared_state = sstate_state_fromvars(d)
07:50:58  *** 0648:    accelerate = sstate_installpkg(shared_state, d)
07:50:58      0649:    if not accelerate:
07:50:58      0650:        raise bb.build.FuncFailed("No suitable staging package found")
07:50:58      0651:
07:50:58      0652:python sstate_task_prefunc () {
07:50:58 File: '/var/lib/jenkins/ostro-worker-11-slot-1-YZTV5/ostro-os/meta/classes/sstate.bbclass', lineno: 319, function: sstate_installpkg
07:50:58      0315:        bb.build.exec_func(f, d, (sstateinst,))
07:50:58      0316:
07:50:58      0317:    for state in ss['dirs']:
07:50:58      0318:        prepdir(state[1])
07:50:58  *** 0319:        os.rename(sstateinst + state[0], state[1])
07:50:58      0320:    sstate_install(ss, d)
07:50:58      0321:
07:50:58      0322:    for plain in ss['plaindirs']:
07:50:58      0323:        workdir = d.getVar('WORKDIR', True)
07:50:58 Exception: OSError: [Errno 2] No such file or directory


Richard fixed this for all ASSUME_PROVIDED recipes in 2279c6d20c2a33283ce9a8d1ef91a8acdad0a20e but now the errors show up with all gcc:

gcc-cross-x86_64-5.3.0-r0
gcc-runtime-5.3.0-r0
gcc-5.3.0-r0
libgcc-5.3.0-r0
libgcc-initial-5.3.0-r0 
gcc-cross-initial-x86_64-5.3.0-r0