Hi all,
I am new in building images with Yocto project. I just followed the instructions on: https://developer-archives.toradex.com/knowledge-base/board-support-package/openembedded-core to build the reference multimedia image but failed with the following errors:
quan_shen@quan-shen:~/oe-core/build$ bitbake tdx-reference-multimedia-image
Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:00
Loaded 3920 entries from dependency cache.
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-imx8mm”
DISTRO = “tdx-xwayland”
DISTRO_VERSION = “5.7.2-devel-20230606092219+build.0”
TUNE_FEATURES = “aarch64”
TARGET_FPU = “”
meta-toradex-nxp = “HEAD:b288744310a77181db0fde2bee5d86e7d890f28b”
meta-freescale = “HEAD:f66fdef1c2dc735690a7ec7dd44a534d69ea3918”
meta-freescale-3rdparty = “HEAD:4c0a166fa2809f74c93bd4c56d9a0f7ccb7818c8”
meta-toradex-tegra = “HEAD:43b5af1d01a9c166e41e0ec3c93efc57c5c130b9”
meta-toradex-bsp-common = “HEAD:f88e4c50e64ca144a7a15bd50c92a13d325f6780”
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-initramfs
meta-networking
meta-multimedia
meta-python = “HEAD:7007d14c2558f86a49c2e2acb6154432c2ba4092”
meta-freescale-distro = “HEAD:5d882cdf079b3bde0bd9869ce3ca3db411acbf3b”
meta-toradex-demos = “HEAD:a5ab14682a0b863f36987ee6f8f3f2ec8b637250”
meta-qt5 = “HEAD:5ef3a0ffd3324937252790266e2b2e64d33ef34f”
meta-toradex-distro = “HEAD:e9a1072abf323fe3e91c7aead182130417c2226d”
meta-poky = “HEAD:8485f6da8c49c7a8cd1d768facf3ff3b746f3b49”
meta = “HEAD:4045bf02bbc6e87a05ba689a63c675e49c940772”
Initialising tasks: 100% |##################################################################################################################################################################| Time: 0:00:07
Sstate summary: Wanted 732 Found 322 Missed 410 Current 2596 (43% match, 87% complete)
NOTE: Executing Tasks
ERROR: mozjs-60.9.0-r0 do_compile: oe_runmake failed
ERROR: mozjs-60.9.0-r0 do_compile: Execution of ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/temp/run.do_compile.158297’ failed with exit code 1
ERROR: Logfile of failure stored in: /home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/temp/log.do_compile.158297
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files [‘endian-little’, ‘bit-64’, ‘arm-common’, ‘arm-64’, ‘common-linux’, ‘common-glibc’, ‘aarch64-linux’, ‘common’]
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16 BUILD_OPT=1 OS_LDFLAGS=-Wl,-latomic -Wl,-O1 -Wl,–hash-style=gnu -Wl,–as-needed -fstack-protector-strong -Wl,-z,relro,-z,now
| make[1]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make recurse_pre-export
| make[2]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| /home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -m mozbuild.action.process_install_manifest --track install_dist_include.track dist/include _build_manifests/install/dist_include
| /home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -m mozbuild.action.process_install_manifest --track install_dist_public.track dist/public _build_manifests/install/dist_public
| /home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -m mozbuild.action.process_install_manifest --track install_dist_private.track dist/private _build_manifests/install/dist_private
| /home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -m mozbuild.action.process_install_manifest --track install__tests.track _tests _build_manifests/install/_tests
| /home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -m mozbuild.action.process_install_manifest --track install_dist_bin.track dist/bin _build_manifests/install/dist_bin
| Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
| Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
| Elapsed: 0.00s; From dist/bin: Kept 1 existing; Added/updated 0; Removed 0 files and 0 directories.
| Elapsed: 0.02s; From dist/include: Kept 344 existing; Added/updated 0; Removed 0 files and 0 directories.
| Elapsed: 0.04s; From _tests: Kept 312 existing; Added/updated 0; Removed 0 files and 0 directories.
| make[2]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[1]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[1]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make recurse_export
| make[2]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config’
| backend.mk:2160: warning: overriding recipe for target ‘…/dist/system_wrappers/pixman.h’
| backend.mk:1278: warning: ignoring old recipe for target ‘…/dist/system_wrappers/pixman.h’
| make[3]: Nothing to be done for ‘host’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config’
| backend.mk:2160: warning: overriding recipe for target ‘…/dist/system_wrappers/pixman.h’
| backend.mk:1278: warning: ignoring old recipe for target ‘…/dist/system_wrappers/pixman.h’
| make[3]: Nothing to be done for ‘export’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/memory/build’
| make[3]: Nothing to be done for ‘export’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/memory/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mozglue/build’
| make[3]: Nothing to be done for ‘export’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mozglue/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src’
| make[3]: Nothing to be done for ‘export’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src/build’
| make[3]: Nothing to be done for ‘export’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src/shell’
| make[3]: Nothing to be done for ‘export’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src/shell’
| make[2]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[1]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[1]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make recurse_compile
| make[2]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src/editline’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src/editline’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/nspr’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/nspr’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/zlib’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/zlib’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/memory/build’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/memory/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/icu/data’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/icu/data’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/memory/mozalloc’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/memory/mozalloc’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mfbt’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mfbt’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config’
| backend.mk:2160: warning: overriding recipe for target ‘…/dist/system_wrappers/pixman.h’
| backend.mk:1278: warning: ignoring old recipe for target ‘…/dist/system_wrappers/pixman.h’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mozglue/misc’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mozglue/misc’
| make[3]: Nothing to be done for ‘host’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mozglue/build’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/mozglue/build’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/modules/fdlibm/src’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/modules/fdlibm/src’
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src’
| .deps/Unified_cpp_js_src19.o.pp:1342: *** missing separator. Stop.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/js/src’
| make[2]: *** [/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/firefox-60.9.0/config/recurse.mk:73: js/src/target] Error 2
| make[2]: *** Waiting for unfinished jobs…
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/icu/i18n’
| .deps/number_compact.o.pp:941: *** missing separator. Stop.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/icu/i18n’
| make[2]: *** [/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/firefox-60.9.0/config/recurse.mk:73: config/external/icu/i18n/target] Error 2
| make[3]: Entering directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/icu/common’
| make[3]: Nothing to be done for ‘target’.
| make[3]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build/config/external/icu/common’
| make[2]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make[1]: *** [/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/firefox-60.9.0/config/recurse.mk:33: compile] Error 2
| make[1]: Leaving directory ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/build’
| make: *** [/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/firefox-60.9.0/config/rules.mk:442: default] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-tdx-linux/mozjs/60.9.0-r0/temp/run.do_compile.158297’ failed with exit code 1
ERROR: Task (/home/quan_shen/oe-core/build/…/layers/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb:do_compile) failed with exit code ‘1’
ERROR: gtk+3-3.24.14-r0 do_package: 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:
0001:
*** 0002:sstate_task_postfunc(d)
0003:
File: ‘/home/quan_shen/oe-core/build/…/layers/openembedded-core/meta/classes/sstate.bbclass’, lineno: 797, function: sstate_task_postfunc
0793:
0794: omask = os.umask(0o002)
0795: if omask != 0o002:
0796: bb.note(“Using umask 0o002 (not %0o) for sstate packaging” % omask)
*** 0797: sstate_package(shared_state, d)
0798: os.umask(omask)
0799:
0800: sstateinst = d.getVar(“SSTATE_INSTDIR”)
0801: d.setVar(‘SSTATE_FIXMEDIR’, shared_state[‘fixmedir’])
File: ‘/home/quan_shen/oe-core/build/…/layers/openembedded-core/meta/classes/sstate.bbclass’, lineno: 659, function: sstate_package
0655:
0656: sstatebuild = d.expand(“${WORKDIR}/sstate-build-%s/” % ss[‘task’])
0657: sde = int(d.getVar(“SOURCE_DATE_EPOCH”) or time.time())
0658: d.setVar(“SSTATE_CURRTASK”, ss[‘task’])
*** 0659: bb.utils.remove(sstatebuild, recurse=True)
0660: bb.utils.mkdirhier(sstatebuild)
0661: for state in ss[‘dirs’]:
0662: if not os.path.exists(state[1]):
0663: continue
File: ‘/home/quan_shen/oe-core/layers/openembedded-core/bitbake/lib/bb/utils.py’, lineno: 710, function: remove
0706: # shutil.rmtree(name) would be ideal but its too slow
0707: cmd =
0708: if ionice:
0709: cmd = [‘ionice’, ‘-c’, ‘3’]
*** 0710: subprocess.check_call(cmd + [‘rm’, ‘-rf’] + glob.glob(path))
0711: return
0712: for name in glob.glob(path):
0713: try:
0714: os.unlink(name)
File: ‘/usr/lib/python3.8/subprocess.py’, lineno: 364, function: check_call
0360: if retcode:
0361: cmd = kwargs.get(“args”)
0362: if cmd is None:
0363: cmd = popenargs[0]
*** 0364: raise CalledProcessError(retcode, cmd)
0365: return 0
0366:
0367:
0368:def check_output(*popenargs, timeout=None, **kwargs):
Exception: subprocess.CalledProcessError: Command ‘[‘rm’, ‘-rf’, ‘/home/quan_shen/oe-core/build/tmp/work/aarch64-mx8mm-tdx-linux/gtk+3/3.24.14-r0/sstate-build-package/’]’ died with <Signals.SIGABRT: 6>.
ERROR: Logfile of failure stored in: /home/quan_shen/oe-core/build/tmp/work/aarch64-mx8mm-tdx-linux/gtk+3/3.24.14-r0/temp/log.do_package.158574
ERROR: Task (/home/quan_shen/oe-core/build/…/layers/openembedded-core/meta/recipes-gnome/gtk+/gtk+3_3.24.14.bb:do_package) failed with exit code ‘1’
Could anyone please give any advice or hint? Thanks!