Failed to export extensible sdk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to export extensible sdk

Jump to solution
1,325 Views
thinhpham
Contributor I

Hi all,

The populate_sdk works well but populate_sdk_ext doesn't, I'm still stuck here after many tries with clean state, reset devtool and clean build. Could you please help me?

bitbake imx-image-multimedia -c populate_sdk_ext
WARNING: Host distribution "ubuntu-20.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |###########################################################################################################################################| Time: 0:00:33
Parsing of 3218 .bb files complete (0 cached, 3218 parsed). 4641 targets, 464 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-20.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mqevk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "5.4-zeus"
TUNE_FEATURES = "aarch64 cortexa53 crc crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-nxp-demo-experience
meta-browser
meta-rust
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
workspace = "master:70654c0dd9691a6474d19e3fe37ccb893e564102"

Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:05
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Excluding local workspace layer /home/techvico/Work/imx-yocto-bsp/build-wayland/workspace from extensible SDK
ERROR: imx-image-multimedia-1.0-r0 do_populate_sdk_ext: 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_ext(d)
0003:
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/meta/classes/populate_sdk_ext.bbclass', lineno: 691, function: do_populate_sdk_ext
0687: # ESDKs have a libc from the buildtools so ensure we don't ship linguas twice
0688: d.delVar('SDKIMAGE_LINGUAS')
0689: if d.getVar("SDK_INCLUDE_NATIVESDK") == '1':
0690: generate_nativesdk_lockedsigs(d)
*** 0691: populate_sdk_common(d)
0692:}
0693:
0694:def generate_nativesdk_lockedsigs(d):
0695: import oe.copy_buildsystem
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/meta/classes/populate_sdk_base.bbclass', lineno: 166, function: populate_sdk_common
0162: manifest_type=Manifest.MANIFEST_TYPE_SDK_HOST)
0163: create_manifest(d, manifest_dir=d.getVar('SDK_DIR'),
0164: manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
0165:
*** 0166: populate_sdk(d)
0167:
0168:fakeroot python do_populate_sdk() {
0169: populate_sdk_common(d)
0170:}
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/meta/lib/oe/sdk.py', lineno: 417, function: populate_sdk
0413: RpmSdk(d, manifest_dir).populate()
0414: elif img_type == "ipk":
0415: OpkgSdk(d, manifest_dir).populate()
0416: elif img_type == "deb":
*** 0417: DpkgSdk(d, manifest_dir).populate()
0418:
0419: os.environ.clear()
0420: os.environ.update(env_bkp)
0421:
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/meta/lib/oe/sdk.py', lineno: 60, function: populate
0056: self.sysconfdir, "ld.so.cache")
0057: self.mkdirhier(os.path.dirname(link_name))
0058: os.symlink("/etc/ld.so.cache", link_name)
0059:
*** 0060: execute_pre_post_process(self.d, self.d.getVar('SDK_POSTPROCESS_COMMAND'))
0061:
0062: def movefile(self, sourcefile, destdir):
0063: try:
0064: # FIXME: this check of movefile's return code to None should be
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/meta/lib/oe/utils.py', lineno: 260, function: execute_pre_post_process
0256: for cmd in cmds.strip().split(';'):
0257: cmd = cmd.strip()
0258: if cmd != '':
0259: bb.note("Executing %s ..." % cmd)
*** 0260: bb.build.exec_func(cmd, d)
0261:
0262:# For each item in items, call the function 'target' with item as the first
0263:# argument, extraargs as the other arguments and handle any exceptions in the
0264:# parent thread
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/bitbake/lib/bb/build.py', lineno: 250, function: exec_func
0246: with bb.utils.fileslocked(lockfiles):
0247: if ispython:
0248: exec_func_python(func, d, runfile, cwd=adir)
0249: else:
*** 0250: exec_func_shell(func, d, runfile, cwd=adir)
0251:
0252: try:
0253: curcwd = os.getcwd()
0254: except:
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/bitbake/lib/bb/build.py', lineno: 451, function: exec_func_shell
0447: with open(fifopath, 'r+b', buffering=0) as fifo:
0448: try:
0449: bb.debug(2, "Executing shell function %s" % func)
0450: with open(os.devnull, 'r+') as stdin, logfile:
*** 0451: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0452: finally:
0453: os.unlink(fifopath)
0454:
0455: bb.debug(2, "Shell function %s finished" % func)
File: '/home/techvico/Work/imx-yocto-bsp/sources/poky/bitbake/lib/bb/process.py', lineno: 182, function: run
0178: if not stderr is None:
0179: stderr = stderr.decode("utf-8")
0180:
0181: if pipe.returncode != 0:
*** 0182: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0183: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/home/techvico/Work/imx-yocto-bsp/build-wayland/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/temp/run.archive_sdk.317087' failed with exit code 137:
tar: ./bitbake.sock: socket ignored
Killed
WARNING: exit code 137 from a shell command.


ERROR: Logfile of failure stored in: /home/techvico/Work/imx-yocto-bsp/build-wayland/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/temp/log.do_populate_sdk_ext.317087
ERROR: Task (/home/techvico/Work/imx-yocto-bsp/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb:do_populate_sdk_ext) failed with exit code '1'

0 Kudos
1 Solution
1,304 Views
jimmychan
NXP TechSupport
NXP TechSupport

Have you try to use Ubuntu 18.04?

View solution in original post

0 Kudos
1 Reply
1,305 Views
jimmychan
NXP TechSupport
NXP TechSupport

Have you try to use Ubuntu 18.04?

0 Kudos