This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM64X: bitbake build errors

Part Number: PROCESSOR-SDK-AM64X

Hello,

Following the steps in https://software-dl.ti.com/processor-sdk-linux/esd/docs/08_00_00_21/linux/Overview_Building_the_SDK.html#build-steps and building tisdk-base-image for am64xx-evm (MACHINE=am64xx-evm ARAGO_RT_ENABLE=1 bitbake tisdk-base-image) on ubuntu 20.04 I get the following errors in meta-ti:

Summary: 3 tasks failed:
mc:k3r5:/home/mhizem/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_package
/home/mhizem/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_package
/home/mhizem/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb:do_package
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

It looks like the error is due to a truncated folder:

Exception: bb.process.ExecutionError: Execution of '/home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/run.populate_srcipk_package.246646' failed with exit code 1:
cp: cannot stat '/home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/srcipk-staging/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g/.': No such file or directory

The actual directory is "u-boot-2021.01+gitAUTOINC+15769936a5-g15769936a5" but do_package is looking for "u-boot-2021.01+gitAUTOINC+15769936a5-g". The same issue is also encountered on the recipes-kernel.

The full error display is here:

"

~/tisdk/build$ MACHINE=am64xx-evm ARAGO_RT_ENABLE=1 bitbake -k tisdk-base-image
NOTE: Started PRServer with DBfile: /home/mhizem/tisdk/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 39331, PID: 10149
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 8224 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-20.04"
TARGET_SYS = "aarch64-linux"
MACHINE = "am64xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2021.09"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta-processor-sdk = "HEAD:9d1705ba257f95702fb010c6ed3aba384b1019ba"
meta-arago-distro
meta-arago-extras = "HEAD:e13e698213f5c4e2617ace97dca2d0ccf84ab0af"
meta-qt5 = "HEAD:b4d24d70aca75791902df5cd59a4f4a54aa4a125"
meta-virtualization = "HEAD:180241e0eee718fc52c7b6b25dbd1d845a8047c4"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems = "HEAD:69f94af4d91215e7d4e225bab54bf3bcfee42f1c"
meta-ti = "HEAD:15613c951051c450fc8726b2576c23c105b79d53"
meta-arm
meta-arm-toolchain = "HEAD:c4f04f3fb66f8f4365b08b553af8206372e90a63"
meta = "HEAD:f61fcb6e176f19f1e768ce63a693f238713c8887"


Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-20.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am64xx-evm-k3r5"
DISTRO = "arago"
DISTRO_VERSION = "2021.09"
TUNE_FEATURES = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:9d1705ba257f95702fb010c6ed3aba384b1019ba"
meta-arago-distro
meta-arago-extras = "HEAD:e13e698213f5c4e2617ace97dca2d0ccf84ab0af"
meta-qt5 = "HEAD:b4d24d70aca75791902df5cd59a4f4a54aa4a125"
meta-virtualization = "HEAD:180241e0eee718fc52c7b6b25dbd1d845a8047c4"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems = "HEAD:69f94af4d91215e7d4e225bab54bf3bcfee42f1c"
meta-ti = "HEAD:15613c951051c450fc8726b2576c23c105b79d53"
meta-arm
meta-arm-toolchain = "HEAD:c4f04f3fb66f8f4365b08b553af8206372e90a63"
meta = "HEAD:f61fcb6e176f19f1e768ce63a693f238713c8887"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 36 Found 3 Missed 33 Current 1365 (8% match, 97% complete)
NOTE: Executing Tasks
ERROR: mc:k3r5:u-boot-ti-staging-1_2021.01+gitAUTOINC+15769936a5-r16 do_package: 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_package(d)
0003:
File: '/home/mhizem/tisdk/sources/oe-core/meta/classes/package.bbclass', lineno: 2315, function: do_package
2311:
2312: cpath = oe.cachedpath.CachedPath()
2313:
2314: for f in (d.getVar('PACKAGESPLITFUNCS') or '').split():
*** 2315: bb.build.exec_func(f, d)
2316:
2317: ###########################################################################
2318: # Process PKGDEST
2319: ###########################################################################
File: '/home/mhizem/tisdk/sources/bitbake/lib/bb/build.py', lineno: 251, function: exec_func
0247: with bb.utils.fileslocked(lockfiles):
0248: if ispython:
0249: exec_func_python(func, d, runfile, cwd=adir)
0250: else:
*** 0251: exec_func_shell(func, d, runfile, cwd=adir)
0252:
0253: try:
0254: curcwd = os.getcwd()
0255: except:
File: '/home/mhizem/tisdk/sources/bitbake/lib/bb/build.py', lineno: 452, function: exec_func_shell
0448: with open(fifopath, 'r+b', buffering=0) as fifo:
0449: try:
0450: bb.debug(2, "Executing shell function %s" % func)
0451: with open(os.devnull, 'r+') as stdin, logfile:
*** 0452: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0453: finally:
0454: os.unlink(fifopath)
0455:
0456: bb.debug(2, "Shell function %s finished" % func)
File: '/home/mhizem/tisdk/sources/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/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm_k3r5-linux-gnueabi/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/run.populate_srcipk_package.10313' failed with exit code 1:
cp: cannot stat '/home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm_k3r5-linux-gnueabi/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/srcipk-staging/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g/.': No such file or directory
WARNING: /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm_k3r5-linux-gnueabi/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/run.populate_srcipk_package.10313:1 exit 1 from 'cp -Prf --preserve=mode,timestamps --no-preserve=ownership /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm_k3r5-linux-gnueabi/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/srcipk-staging/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g/. /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm_k3r5-linux-gnueabi/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/packages-split/u-boot-ti-staging-src/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g'


ERROR: Logfile of failure stored in: /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm_k3r5-linux-gnueabi/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/log.do_package.10313
ERROR: Task (mc:k3r5:/home/mhizem/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_package) failed with exit code '1'
ERROR: u-boot-ti-staging-1_2021.01+gitAUTOINC+15769936a5-r16 do_package: 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_package(d)
0003:
File: '/home/mhizem/tisdk/sources/oe-core/meta/classes/package.bbclass', lineno: 2315, function: do_package
2311:
2312: cpath = oe.cachedpath.CachedPath()
2313:
2314: for f in (d.getVar('PACKAGESPLITFUNCS') or '').split():
*** 2315: bb.build.exec_func(f, d)
2316:
2317: ###########################################################################
2318: # Process PKGDEST
2319: ###########################################################################
File: '/home/mhizem/tisdk/sources/bitbake/lib/bb/build.py', lineno: 251, function: exec_func
0247: with bb.utils.fileslocked(lockfiles):
0248: if ispython:
0249: exec_func_python(func, d, runfile, cwd=adir)
0250: else:
*** 0251: exec_func_shell(func, d, runfile, cwd=adir)
0252:
0253: try:
0254: curcwd = os.getcwd()
0255: except:
File: '/home/mhizem/tisdk/sources/bitbake/lib/bb/build.py', lineno: 452, function: exec_func_shell
0448: with open(fifopath, 'r+b', buffering=0) as fifo:
0449: try:
0450: bb.debug(2, "Executing shell function %s" % func)
0451: with open(os.devnull, 'r+') as stdin, logfile:
*** 0452: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0453: finally:
0454: os.unlink(fifopath)
0455:
0456: bb.debug(2, "Shell function %s finished" % func)
File: '/home/mhizem/tisdk/sources/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/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/run.populate_srcipk_package.10316' failed with exit code 1:
cp: cannot stat '/home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/srcipk-staging/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g/.': No such file or directory
WARNING: /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/run.populate_srcipk_package.10316:1 exit 1 from 'cp -Prf --preserve=mode,timestamps --no-preserve=ownership /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/srcipk-staging/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g/. /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/packages-split/u-boot-ti-staging-src/board-support/u-boot-2021.01+gitAUTOINC+15769936a5-g'


ERROR: Logfile of failure stored in: /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/u-boot-ti-staging/1_2021.01+gitAUTOINC+15769936a5-r16/temp/log.do_package.10316
ERROR: Task (/home/mhizem/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_package) failed with exit code '1'
ERROR: linux-ti-staging-rt-5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0 do_package: 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_package(d)
0003:
File: '/home/mhizem/tisdk/sources/oe-core/meta/classes/package.bbclass', lineno: 2315, function: do_package
2311:
2312: cpath = oe.cachedpath.CachedPath()
2313:
2314: for f in (d.getVar('PACKAGESPLITFUNCS') or '').split():
*** 2315: bb.build.exec_func(f, d)
2316:
2317: ###########################################################################
2318: # Process PKGDEST
2319: ###########################################################################
File: '/home/mhizem/tisdk/sources/bitbake/lib/bb/build.py', lineno: 251, function: exec_func
0247: with bb.utils.fileslocked(lockfiles):
0248: if ispython:
0249: exec_func_python(func, d, runfile, cwd=adir)
0250: else:
*** 0251: exec_func_shell(func, d, runfile, cwd=adir)
0252:
0253: try:
0254: curcwd = os.getcwd()
0255: except:
File: '/home/mhizem/tisdk/sources/bitbake/lib/bb/build.py', lineno: 452, function: exec_func_shell
0448: with open(fifopath, 'r+b', buffering=0) as fifo:
0449: try:
0450: bb.debug(2, "Executing shell function %s" % func)
0451: with open(os.devnull, 'r+') as stdin, logfile:
*** 0452: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0453: finally:
0454: os.unlink(fifopath)
0455:
0456: bb.debug(2, "Shell function %s finished" % func)
File: '/home/mhizem/tisdk/sources/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/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging-rt/5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0/temp/run.populate_srcipk_package.10286' failed with exit code 1:
cp: cannot stat '/home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging-rt/5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0/srcipk-staging/board-support/linux-rt-5.10.65+gitAUTOINC+541ec9a699-g/.': No such file or directory
WARNING: /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging-rt/5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0/temp/run.populate_srcipk_package.10286:1 exit 1 from 'cp -Prf --preserve=mode,timestamps --no-preserve=ownership /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging-rt/5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0/srcipk-staging/board-support/linux-rt-5.10.65+gitAUTOINC+541ec9a699-g/. /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging-rt/5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0/packages-split/linux-ti-staging-rt-src/board-support/linux-rt-5.10.65+gitAUTOINC+541ec9a699-g'


ERROR: Logfile of failure stored in: /home/mhizem/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/linux-ti-staging-rt/5.10.65+gitAUTOINC+541ec9a699-r0b.arago1.tisdk0/temp/log.do_package.10286
ERROR: Task (/home/mhizem/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4344 tasks of which 4341 didn't need to be rerun and 3 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds

Summary: 3 tasks failed:
mc:k3r5:/home/mhizem/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_package
/home/mhizem/tisdk/sources/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb:do_package
/home/mhizem/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb:do_package
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

"

Could you please let me know how to fix these recipies.

Thank you