hi all
What can I do if an error occurs when executing the following command?
devtool create-workspace
devtool modify linux-imx
devtool 构建 linux-imx
ERROR: /home/ubuntu/nxp8ulp/sources/meta-imx/meta-bsp/recipes-kernel/linux/linux-imx_6.1.bb: Error executing a python function in <code>: | ETA: --:--:--
The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 17, function: <module>
0013:__anon_157__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_kernel_bbclass(d)
0014:__anon_27__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_kernel_uimage_bbclass(d)
0015:__anon_40__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_image_artifact_names_bbclass(d)
0016:__anon_13__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_kernel_devicetree_bbclass(d)
*** 0017:__anon_146__home_ubuntu_nxp8ulp_sources_poky_meta_classes_externalsrc_bbclass(d)
File: '/home/ubuntu/nxp8ulp/sources/poky/meta/classes/externalsrc.bbclass', lineno: 67, function: __anon_146__home_ubuntu_nxp8ulp_sources_poky_meta_classes_externalsrc_bbclass
0063: else:
0064: d.setVar('B', '${WORKDIR}/${BPN}-${PV}')
0065:
0066: local_srcuri = []
*** 0067: fetch = bb.fetch2.Fetch((d.getVar('SRC_URI') or '').split(), d)
0068: for url in fetch.urls:
0069: url_data = fetch.ud[url]
0070: parm = url_data.parm
0071: if url_data.type in ['file', 'npmsw', 'crate'] or parm.get('type') in ['kmeta', 'git-dependency']:
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1687, function: __init__
1683:
1684: for url in urls:
1685: if url not in self.ud:
1686: try:
*** 1687: self.ud[url] = FetchData(url, d, localonly)
1688: except NonLocalMethod:
1689: if localonly:
1690: self.ud[url] = None
1691: pass
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1319, function: __init__
1315: logger.warning('Consider updating %s recipe to use "protocol" not "proto" in SRC_URI.', d.getVar('PN'))
1316: self.parm["protocol"] = self.parm.get("proto", None)
1317:
1318: if hasattr(self.method, "urldata_init"):
*** 1319: self.method.urldata_init(self, d)
1320:
1321: for checksum_id in CHECKSUM_LIST:
1322: configure_checksum(checksum_id)
1323:
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/git.py', lineno: 253, function: urldata_init
0249: write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0"
0250: ud.write_tarballs = write_tarballs != "0" or ud.rebaseable
0251: ud.write_shallow_tarballs = (d.getVar("BB_GENERATE_SHALLOW_TARBALLS") or write_tarballs) != "0"
0252:
*** 0253: ud.setup_revisions(d)
0254:
0255: for name in ud.names:
0256: # Ensure any revision that doesn't look like a SHA-1 is translated into one
0257: if not sha1_re.match(ud.revisions[name] or ''):
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1354, function: setup_revisions
1350:
1351: def setup_revisions(self, d):
1352: self.revisions = {}
1353: for name in self.names:
*** 1354: self.revisions[name] = srcrev_internal_helper(self, d, name)
1355:
1356: # add compatibility code for non name specified case
1357: if len(self.names) == 1:
1358: self.revision = self.revisions[self.names[0]]
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1221, function: srcrev_internal_helper
1217: if srcrev == "INVALID" or not srcrev:
1218: raise FetchError("Please set a valid SRCREV for url %s (possible key names are %s, or use a ;rev=X URL parameter)" % (str(attempts), ud.url), ud.url)
1219: if srcrev == "AUTOINC":
1220: d.setVar("__BBAUTOREV_ACTED_UPON", True)
*** 1221: srcrev = ud.method.latest_revision(ud, d, name)
1222:
1223: return srcrev
1224:
1225:def get_checksum_file_list(d):
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1631, function: latest_revision
1627: key = self.generate_revision_key(ud, d, name)
1628: try:
1629: return revs[key]
1630: except KeyError:
*** 1631: revs[key] = rev = self._latest_revision(ud, d, name)
1632: return rev
1633:
1634: def sortable_revision(self, ud, d, name):
1635: latest_rev = self._build_revision(ud, d, name)
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/git.py', lineno: 741, function: _latest_revision
0737: """
0738: Compute the HEAD revision for the url
0739: """
0740: if not d.getVar("__BBSRCREV_SEEN"):
*** 0741: raise bb.fetch2.FetchError("Recipe uses a floating tag/branch '%s' for repo '%s' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE)." % (ud.unresolvedrev[name], ud.host+ud.path))
0742:
0743: # Ensure we mark as not cached
0744: bb.fetch2.mark_recipe_nocache(d)
0745:
Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating tag/branch 'maaxboard_lf-6.1.22-2.0.0' for repo 'github.com/Avnet/linux-imx.git' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).
ERROR: /home/ubuntu/nxp8ulp/sources/meta-freescale/recipes-kernel/linux/linux-imx_6.1.bb: Error executing a python function in <code>:
The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 17, function: <module>
0013:__anon_157__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_kernel_bbclass(d)
0014:__anon_27__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_kernel_uimage_bbclass(d)
0015:__anon_40__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_image_artifact_names_bbclass(d)
0016:__anon_13__home_ubuntu_nxp8ulp_sources_poky_meta_classes_recipe_kernel_devicetree_bbclass(d)
*** 0017:__anon_146__home_ubuntu_nxp8ulp_sources_poky_meta_classes_externalsrc_bbclass(d)
File: '/home/ubuntu/nxp8ulp/sources/poky/meta/classes/externalsrc.bbclass', lineno: 67, function: __anon_146__home_ubuntu_nxp8ulp_sources_poky_meta_classes_externalsrc_bbclass
0063: else:
0064: d.setVar('B', '${WORKDIR}/${BPN}-${PV}')
0065:
0066: local_srcuri = []
*** 0067: fetch = bb.fetch2.Fetch((d.getVar('SRC_URI') or '').split(), d)
0068: for url in fetch.urls:
0069: url_data = fetch.ud[url]
0070: parm = url_data.parm
0071: if url_data.type in ['file', 'npmsw', 'crate'] or parm.get('type') in ['kmeta', 'git-dependency']:
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1687, function: __init__
1683:
1684: for url in urls:
1685: if url not in self.ud:
1686: try:
*** 1687: self.ud[url] = FetchData(url, d, localonly)
1688: except NonLocalMethod:
1689: if localonly:
1690: self.ud[url] = None
1691: pass
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1319, function: __init__
1315: logger.warning('Consider updating %s recipe to use "protocol" not "proto" in SRC_URI.', d.getVar('PN'))
1316: self.parm["protocol"] = self.parm.get("proto", None)
1317:
1318: if hasattr(self.method, "urldata_init"):
*** 1319: self.method.urldata_init(self, d)
1320:
1321: for checksum_id in CHECKSUM_LIST:
1322: configure_checksum(checksum_id)
1323:
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/git.py', lineno: 253, function: urldata_init
0249: write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0"
0250: ud.write_tarballs = write_tarballs != "0" or ud.rebaseable
0251: ud.write_shallow_tarballs = (d.getVar("BB_GENERATE_SHALLOW_TARBALLS") or write_tarballs) != "0"
0252:
*** 0253: ud.setup_revisions(d)
0254:
0255: for name in ud.names:
0256: # Ensure any revision that doesn't look like a SHA-1 is translated into one
0257: if not sha1_re.match(ud.revisions[name] or ''):
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1354, function: setup_revisions
1350:
1351: def setup_revisions(self, d):
1352: self.revisions = {}
1353: for name in self.names:
*** 1354: self.revisions[name] = srcrev_internal_helper(self, d, name)
1355:
1356: # add compatibility code for non name specified case
1357: if len(self.names) == 1:
1358: self.revision = self.revisions[self.names[0]]
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1221, function: srcrev_internal_helper
1217: if srcrev == "INVALID" or not srcrev:
1218: raise FetchError("Please set a valid SRCREV for url %s (possible key names are %s, or use a ;rev=X URL parameter)" % (str(attempts), ud.url), ud.url)
1219: if srcrev == "AUTOINC":
1220: d.setVar("__BBAUTOREV_ACTED_UPON", True)
*** 1221: srcrev = ud.method.latest_revision(ud, d, name)
1222:
1223: return srcrev
1224:
1225:def get_checksum_file_list(d):
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1631, function: latest_revision
1627: key = self.generate_revision_key(ud, d, name)
1628: try:
1629: return revs[key]
1630: except KeyError:
*** 1631: revs[key] = rev = self._latest_revision(ud, d, name)
1632: return rev
1633:
1634: def sortable_revision(self, ud, d, name):
1635: latest_rev = self._build_revision(ud, d, name)
File: '/home/ubuntu/nxp8ulp/sources/poky/bitbake/lib/bb/fetch2/git.py', lineno: 741, function: _latest_revision
0737: """
0738: Compute the HEAD revision for the url
0739: """
0740: if not d.getVar("__BBSRCREV_SEEN"):
*** 0741: raise bb.fetch2.FetchError("Recipe uses a floating tag/branch '%s' for repo '%s' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE)." % (ud.unresolvedrev[name], ud.host+ud.path))
0742:
0743: # Ensure we mark as not cached
0744: bb.fetch2.mark_recipe_nocache(d)
0745:
Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating tag/branch 'maaxboard_lf-6.1.22-2.0.0' for repo 'github.com/Avnet/linux-imx.git' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).
ERROR: Parsing halted due to errors, see error messages above
摘要:有 3 条 ERROR 消息,返回非零退出代码。
错误:无法启动 bitbake 环境