I have also tried it with BSP 5.5.0 and tdx-xwayland distro instead of rt. Same error.
Parsing recipes: 100% |############################################################################################################################################################################################################################################| Time: 0:01:03
Parsing of 2748 .bb files complete (0 cached, 2748 parsed). 3911 targets, 238 skipped, 0 masked, 0 errors.
Removing 1 recipes from the verdin_imx8mp sysroot: 100% |##########################################################################################################################################################################################################| Time: 0:00:01
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-tdx-linux"
MACHINE = "verdin-imx8mp"
DISTRO = "tdx-xwayland"
DISTRO_VERSION = "5.5.0-devel-20220125083911+build.0"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta-toradex-nxp = "HEAD:4d9bf383a656759a574b3d82cb8b90b0e2663e50"
meta-freescale = "HEAD:6d2922bee372157454e422df518b6cf0bfcf6700"
meta-freescale-3rdparty = "HEAD:c52f64973cd4043a5e8be1c7e29bb9690eb4c3e5"
meta-toradex-tegra = "HEAD:84b975b3e5fd834f9bec5ea398edf0c0ab911cd1"
meta-toradex-bsp-common = "HEAD:4b876a0ecbe04eb924abf2442249c2cae3231d21"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-initramfs
meta-networking
meta-multimedia
meta-python = "HEAD:7889158dcd187546fc5e99fd81d0779cad3e8d17"
meta-freescale-distro = "HEAD:5d882cdf079b3bde0bd9869ce3ca3db411acbf3b"
meta-toradex-demos = "HEAD:eeaa1fa0f22496a84d42c2b54e4ae23b567b07f2"
meta-qt5 = "HEAD:b4d24d70aca75791902df5cd59a4f4a54aa4a125"
meta-toradex-distro = "HEAD:e835edf3bc368fc6beb64acefa96a349ec6da281"
meta-poky = "HEAD:8a9d89df2c50128130a40119a4827ace761c236c"
meta = "HEAD:44b1970c40e9d73f6e63fb10cdc55837a26f5921"
Initialising tasks: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 364 Found 236 Missed 128 Current 2168 (64% match, 94% complete)
NOTE: Executing Tasks
ERROR: tdx-reference-minimal-image-1.0-r0 do_populate_sdk_ext: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:copy_buildsystem(d)
0003:
File: '/home/mf/yocto-projects/toradexbsp/build/../layers/openembedded-core/meta/classes/populate_sdk_ext.bbclass', lineno: 209, function: copy_buildsystem
0205: workspace_name = 'orig-workspace'
0206: else:
0207: workspace_name = None
0208:
*** 0209: corebase, sdkbblayers = buildsystem.copy_bitbake_and_layers(baseoutpath + '/layers', workspace_name)
0210: conf_bbpath = os.path.join('layers', corebase, 'bitbake')
0211:
0212: for path in os.listdir(baseoutpath + '/layers'):
0213: relpath = os.path.join('layers', path, oe_init_env_script)
File: '/home/mf/yocto-projects/toradexbsp/build/../layers/openembedded-core/meta/lib/oe/copy_buildsystem.py', lineno: 133, function: copy_bitbake_and_layers
0129:
0130: if os.path.exists(os.path.join(layerdestpath, 'conf/layer.conf')):
0131: bb.note("Skipping layer %s, already handled" % layer)
0132: else:
*** 0133: _smart_copy(layer, layerdestpath)
0134:
0135: if workspace:
0136: # Make some adjustments original workspace layer
0137: # Drop sources (recipe tasks will be locked, so we don't need them)
File: '/home/mf/yocto-projects/toradexbsp/build/../layers/openembedded-core/meta/lib/oe/copy_buildsystem.py', lineno: 28, function: _smart_copy
0024: if stat.S_ISDIR(mode):
0025: bb.utils.mkdirhier(dest)
0026: cmd = "tar --exclude='.git' --exclude='__pycache__' --xattrs --xattrs-include='*' -chf - -C %s -p . \
0027: | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dest)
*** 0028: subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
0029: else:
0030: shutil.copyfile(src, dest)
0031: shutil.copymode(src, dest)
0032:
File: '/usr/lib/python3.8/subprocess.py', lineno: 415, function: check_output
0411: else:
0412: empty = b''
0413: kwargs['input'] = empty
0414:
*** 0415: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
0416: **kwargs).stdout
0417:
0418:
0419:class CompletedProcess(object):
File: '/usr/lib/python3.8/subprocess.py', lineno: 516, function: run
0512: # We don't call process.wait() as .__exit__ does that for us.
0513: raise
0514: retcode = process.poll()
0515: if check and retcode:
*** 0516: raise CalledProcessError(retcode, process.args,
0517: output=stdout, stderr=stderr)
0518: return CompletedProcess(process.args, retcode, stdout, stderr)
0519:
0520:
Exception: subprocess.CalledProcessError: Command 'tar --exclude='.git' --exclude='__pycache__' --xattrs --xattrs-include='*' -chf - -C /home/mf/yocto-projects/toradexbsp/layers/meta-freescale -p . | tar --xattrs --xattrs-include='*' -xf - -C /home/mf/yocto-projects/toradexbsp/build/tmp/work/verdin_imx8mp-tdx-linux/tdx-reference-minimal-image/1.0-r0/sdk-ext/image//usr/local/oe-sdk-hardcoded-buildpath/layers/openembedded-core/../meta-freescale' returned non-zero exit status 2.
Subprocess output:
abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
Check logfile: /home/mf/yocto-projects/toradexbsp/build/tmp/work/verdin_imx8mp-tdx-linux/tdx-reference-minimal-image/1.0-r0/pseudo//pseudo.log
Aborted (core dumped)
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
ERROR: Logfile of failure stored in: /home/mf/yocto-projects/toradexbsp/build/tmp/work/verdin_imx8mp-tdx-linux/tdx-reference-minimal-image/1.0-r0/temp/log.do_populate_sdk_ext.1099199
ERROR: Task (/home/mf/yocto-projects/toradexbsp/build/../layers/meta-toradex-demos/recipes-images/images/tdx-reference-minimal-image.bb:do_populate_sdk_ext) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5805 tasks of which 5593 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
Summary: 1 task failed:
/home/mf/yocto-projects/toradexbsp/build/../layers/meta-toradex-demos/recipes-images/images/tdx-reference-minimal-image.bb:do_populate_sdk_ext
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
One more info, if I try to populate sdk ext for core-image-minimal
from poky
using verdin-imx8mp
machine with tdx-xwayland-rt
distro:
clear; DISTRO="tdx-xwayland-rt" bitbake core-image-minimal -c populate_sdk_ext
It populates the sdk successfully.
It seems that the source of the issue is somewhere in tdx-reference-minimal-image
bb content.