[yocto] Error while building Toolchain for IMX
Mohammed Abdul Mubeen
mohammedabdul.m at infosys.com
Fri Oct 18 07:29:33 PDT 2019
Hi Team,
I have tried building a customized toolchain for IMX based board using Yocto warrior release.
I am stuck with the below error, and I am unable to understand how to get to the root cause.
NOTE: Installing globbed packages...
ERROR: 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_populate_sdk(d)
0003:
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/classes/populate_sdk_base.bbclass', lineno: 153, function: do_populate_sdk
0149:
0150: populate_sdk(d)
0151:
0152:fakeroot python do_populate_sdk() {
*** 0153: populate_sdk_common(d)
0154:}
0155:SSTATETASKS += "do_populate_sdk"
0156:SSTATE_SKIP_CREATION_task-populate-sdk = '1'
0157:do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}"
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/classes/populate_sdk_base.bbclass', lineno: 150, function: populate_sdk_common
0146: manifest_type=Manifest.MANIFEST_TYPE_SDK_HOST)
0147: create_manifest(d, manifest_dir=d.getVar('SDK_DIR'),
0148: manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
0149:
*** 0150: populate_sdk(d)
0151:
0152:fakeroot python do_populate_sdk() {
0153: populate_sdk_common(d)
0154:}
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/lib/oe/sdk.py', lineno: 417, function: populate_sdk
0413: env_bkp = os.environ.copy()
0414:
0415: img_type = d.getVar('IMAGE_PKGTYPE')
0416: if img_type == "rpm":
*** 0417: RpmSdk(d, manifest_dir).populate()
0418: elif img_type == "ipk":
0419: OpkgSdk(d, manifest_dir).populate()
0420: elif img_type == "deb":
0421: DpkgSdk(d, manifest_dir).populate()
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/lib/oe/sdk.py', lineno: 42, function: populate
0038: def populate(self):
0039: self.mkdirhier(self.sdk_output)
0040:
0041: # call backend dependent implementation
*** 0042: self._populate()
0043:
0044: # Don't ship any libGL in the SDK
0045: self.remove(os.path.join(self.sdk_output, self.sdk_native_path,
0046: self.d.getVar('libdir_nativesdk').strip('/'),
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/lib/oe/sdk.py', lineno: 182, function: _populate
0178: self.target_pm.remove_packaging_data()
0179:
0180: bb.note("Installing NATIVESDK packages")
0181: self._populate_sysroot(self.host_pm, self.host_manifest)
*** 0182: self.install_locales(self.host_pm)
0183:
0184: self.host_pm.run_intercepts(populate_sdk='host')
0185:
0186: execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND"))
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/lib/oe/sdk.py', lineno: 108, function: install_locales
0104: # Generate a locale archive of them
0105: target_arch = self.d.getVar('SDK_ARCH')
0106: rootfs = oe.path.join(self.sdk_host_sysroot, self.sdk_native_path)
0107: localedir = oe.path.join(rootfs, self.d.getVar("libdir_nativesdk"), "locale")
*** 0108: generate_locale_archive(self.d, rootfs, target_arch, localedir)
0109: # And now delete the binary locales
0110: pkgs = fnmatch.filter(pm.list_installed(), "nativesdk-glibc-binary-localedata-*.utf-8")
0111: pm.remove(pkgs)
0112: else:
File: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/sources/poky/meta/lib/oe/package_manager.py', lineno: 134, function: generate_locale_archive
0130: # Need to set this so cross-localedef knows where the archive is
0131: env = dict(os.environ)
0132: env["LOCALEARCHIVE"] = oe.path.join(localedir, "locale-archive")
0133:
*** 0134: for name in os.listdir(localedir):
0135: path = os.path.join(localedir, name)
0136: if os.path.isdir(path):
0137: cmd = ["cross-localedef", "--verbose"]
0138: cmd += arch_options
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/build/tmp/work/imx6solopd1600_prod-poky-linux-gnueabi/clifford-sdk/1.0-r0/sdk/image/opt/pico/1.0/sysroots/i686-picodigital-linux/usr/lib/locale'
ERROR: [Errno 2] No such file or directory: '/home/rama/sri_clifford-1-5-jalan/meta-picodigital/build/tmp/work/imx6solopd1600_prod-poky-linux-gnueabi/clifford-sdk/1.0-r0/sdk/image/opt/pico/1.0/sysroots/i686-picodigital-linux/usr/lib/locale'
DEBUG: Python function do_populate_sdk finished
ERROR: Function failed: do_populate_sdk
Will be thankful if anybosy could point what I am missing here.
Thanks,
Mubeen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191018/e38bc0d2/attachment-0001.html>
More information about the yocto
mailing list