Skip to content

Instantly share code, notes, and snippets.

@jordemort
Created February 8, 2021 16:33
Show Gist options
  • Save jordemort/fa9330f2369788d57d234b886fe42a5c to your computer and use it in GitHub Desktop.
Save jordemort/fa9330f2369788d57d234b886fe42a5c to your computer and use it in GitHub Desktop.
ERROR: bantha-image-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_rootfs(d)
0003:
File: '/work/build/../layers/poky/meta/classes/image.bbclass', lineno: 245, function: do_rootfs
0241: progress_reporter.next_stage()
0242:
0243: # generate rootfs
0244: d.setVarFlag('REPRODUCIBLE_TIMESTAMP_ROOTFS', 'export', '1')
*** 0245: create_rootfs(d, progress_reporter=progress_reporter, logcatcher=logcatcher)
0246:
0247: progress_reporter.finish()
0248:}
0249:do_rootfs[dirs] = "${TOPDIR}"
File: '/work/build/../layers/poky/meta/lib/oe/rootfs.py', lineno: 975, function: create_rootfs
0971: env_bkp = os.environ.copy()
0972:
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()
File: '/work/build/../layers/poky/meta/lib/oe/rootfs.py', lineno: 366, function: __init__
0362: self.manifest = RpmManifest(d, manifest_dir)
0363:
0364: self.pm = RpmPM(d,
0365: d.getVar('IMAGE_ROOTFS'),
*** 0366: self.d.getVar('TARGET_VENDOR')
0367: )
0368:
0369: self.inc_rpm_image_gen = self.d.getVar('INC_RPM_IMAGE_GEN')
0370: if self.inc_rpm_image_gen != "1":
File: '/work/build/../layers/poky/meta/lib/oe/package_manager.py', lineno: 765, function: __init__
0761: self.primary_arch = self.d.getVar('MACHINE_ARCH')
0762:
0763: if needfeed:
0764: self.rpm_repo_dir = oe.path.join(self.d.getVar('WORKDIR'), rpm_repo_workdir)
*** 0765: create_packages_dir(self.d, oe.path.join(self.rpm_repo_dir, "rpm"), d.getVar("DEPLOY_DIR_RPM"), "package_write_rpm", filterbydependencies)
0766:
0767: self.saved_packaging_data = self.d.expand('${T}/saved_packaging_data/%s' % self.task_name)
0768: if not os.path.exists(self.d.expand('${T}/saved_packaging_data')):
0769: bb.utils.mkdirhier(self.d.expand('${T}/saved_packaging_data'))
File: '/work/build/../layers/poky/meta/lib/oe/package_manager.py', lineno: 672, function: create_packages_dir
0668: pn = d.getVar("PN")
0669: seendirs = set()
0670: multilibs = {}
0671:
*** 0672: bb.utils.remove(subrepo_dir, recurse=True)
0673: bb.utils.mkdirhier(subrepo_dir)
0674:
0675: # Detect bitbake -b usage
0676: nodeps = d.getVar("BB_LIMITEDDEPS") or False
File: '/work/layers/poky/bitbake/lib/bb/utils.py', lineno: 700, function: remove
0696: # shutil.rmtree(name) would be ideal but its too slow
0697: cmd = []
0698: if ionice:
0699: cmd = ['ionice', '-c', '3']
*** 0700: subprocess.check_call(cmd + ['rm', '-rf'] + glob.glob(path))
0701: return
0702: for name in glob.glob(path):
0703: try:
0704: os.unlink(name)
File: '/usr/lib/python3.6/subprocess.py', lineno: 311, function: check_call
0307: if retcode:
0308: cmd = kwargs.get("args")
0309: if cmd is None:
0310: cmd = popenargs[0]
*** 0311: raise CalledProcessError(retcode, cmd)
0312: return 0
0313:
0314:
0315:def check_output(*popenargs, timeout=None, **kwargs):
Exception: subprocess.CalledProcessError: Command '['rm', '-rf', '/work/build/tmp/work/raspberrypi4_64-bantha-linux/bantha-image/1.0-r0/oe-rootfs-repo/rpm']' died with <Signals.SIGABRT: 6>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment