Skip to content

Instantly share code, notes, and snippets.

@nmenon

nmenon/error Secret

Created March 22, 2022 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmenon/3ef33a14df77d9c7869f4c87fcfbc990 to your computer and use it in GitHub Desktop.
Save nmenon/3ef33a14df77d9c7869f4c87fcfbc990 to your computer and use it in GitHub Desktop.
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_rootfs(d)
0003:
File: '/workdir/pub-sdk/oe-layersetup/sources/meta-arago/meta-arago-distro/classes/tisdk-bundle.bbclass', lineno: 713, function: do_rootfs
0709: # generate the initial manifest
0710: create_manifest(d)
0711:
0712: # generate rootfs
*** 0713: create_rootfs(d)
0714:}
0715:
0716:fakeroot python do_image () {
0717: from oe.utils import execute_pre_post_process
File: '/workdir/pub-sdk/oe-layersetup/sources/oe-core/meta/lib/oe/rootfs.py', lineno: 977, function: create_rootfs
0973: img_type = d.getVar('IMAGE_PKGTYPE')
0974: if img_type == "rpm":
0975: RpmRootfs(d, manifest_dir, progress_reporter, logcatcher).create()
0976: elif img_type == "ipk":
*** 0977: OpkgRootfs(d, manifest_dir, progress_reporter, logcatcher).create()
0978: elif img_type == "deb":
0979: DpkgRootfs(d, manifest_dir, progress_reporter, logcatcher).create()
0980:
0981: os.environ.clear()
File: '/workdir/pub-sdk/oe-layersetup/sources/oe-core/meta/lib/oe/rootfs.py', lineno: 214, function: create
0210: execute_pre_post_process(self.d, rootfs_post_install_cmds)
0211:
0212: self.pm.run_intercepts()
0213:
*** 0214: execute_pre_post_process(self.d, post_process_cmds)
0215:
0216: if self.progress_reporter:
0217: self.progress_reporter.next_stage()
0218:
File: '/workdir/pub-sdk/oe-layersetup/sources/oe-core/meta/lib/oe/utils.py', lineno: 264, function: execute_pre_post_process
0260: for cmd in cmds.strip().split(';'):
0261: cmd = cmd.strip()
0262: if cmd != '':
0263: bb.note("Executing %s ..." % cmd)
*** 0264: bb.build.exec_func(cmd, d)
0265:
0266:# For each item in items, call the function 'target' with item as the first
0267:# argument, extraargs as the other arguments and handle any exceptions in the
0268:# parent thread
File: '/workdir/pub-sdk/oe-layersetup/sources/bitbake/lib/bb/build.py', lineno: 254, function: exec_func
0250: with bb.utils.fileslocked(lockfiles):
0251: if ispython:
0252: exec_func_python(func, d, runfile, cwd=adir)
0253: else:
*** 0254: exec_func_shell(func, d, runfile, cwd=adir)
0255:
0256: try:
0257: curcwd = os.getcwd()
0258: except:
File: '/workdir/pub-sdk/oe-layersetup/sources/bitbake/lib/bb/build.py', lineno: 455, function: exec_func_shell
0451: with open(fifopath, 'r+b', buffering=0) as fifo:
0452: try:
0453: bb.debug(2, "Executing shell function %s" % func)
0454: with open(os.devnull, 'r+') as stdin, logfile:
*** 0455: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0456: finally:
0457: os.unlink(fifopath)
0458:
0459: bb.debug(2, "Shell function %s finished" % func)
File: '/workdir/pub-sdk/oe-layersetup/sources/bitbake/lib/bb/process.py', lineno: 184, function: run
0180:
0181: if pipe.returncode != 0:
0182: if log:
0183: # Don't duplicate the output in the exception if logging it
*** 0184: raise ExecutionError(cmd, pipe.returncode, None, None)
0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0186: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/workdir/pub-sdk/oe-layersetup/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/tisdk-core-bundle/1.0-r0/temp/run.tisdk_image_build.54331' failed with exit code 2
DEBUG: Python function do_rootfs finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment