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.

SK-TDA4VM: Yocto compilation error - linux-ti-staging

Part Number: SK-TDA4VM

HI  all

There was a problem with the recent development, when yocto is compiled by the company server, error in do_package task of linux-ti-staging package.


This is an error that has not been encountered before, even if it is a version that can be compiled successfully before.

After that, I execute bitbake linux Ti staging - C cleanall and bitbake Linux Ti staging, but still report an error.

From the error log, you can see that the cp folder does not exist when the shell command is executed.

ERROR: linux-ti-staging-5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32 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: <module>
0001:
*** 0002:do_package(d)
0003:
File: '/home/user/work/tda4/linux-sdk/yocto-build/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/user/work/tda4/linux-sdk/yocto-build/sources/bitbake/lib/bb/build.py', lineno: 254, function: exec_func
0250: with bb.utils.fileslocked(lockfiles):
0251: if ispython:
0252: exec_func_python(func, d, runfile, cwd=adir)
0253: else:
*** 0254: exec_func_shell(func, d, runfile, cwd=adir)
0255:
0256: try:
0257: curcwd = os.getcwd()
0258: except:
File: '/home/user/work/tda4/linux-sdk/yocto-build/sources/bitbake/lib/bb/build.py', lineno: 458, function: exec_func_shell
0454: bb.debug(2, "Executing shell function %s" % func)
0455: bb.debug(2, "zlwtest Executing shell cmd %s" % cmd)
0456: bb.debug(2, "zlwtest Executing shell function open %s" % os.devnull)
0457: with open(os.devnull, 'r+') as stdin, logfile:
*** 0458: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0459: finally:
0460: os.unlink(fifopath)
0461:
0462: bb.debug(2, "Shell function %s finished" % func)
File: '/home/user/work/tda4/linux-sdk/yocto-build/sources/bitbake/lib/bb/process.py', lineno: 184, function: run
0180:
0181: if pipe.returncode != 0:
0182: if log:
0183: # Don't duplicate the output in the exception if logging it
*** 0184: raise ExecutionError(cmd, pipe.returncode, None, None)
0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0186: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/run.populate_srcipk_package.62406' failed with exit code 1

ERROR: Logfile of failure stored in: /home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/log.do_package.62406
ERROR: Task (/home/user/work/tda4/linux-sdk/yocto-build/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb:do_package) failed with exit code '1'

and  /home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/temp/run.populate_srcipk_package.62406 file ,err is populate_srcipk_package task.

populate_srcipk_package() {
install -d /home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/packages-split/linux-ti-staging-src/board-support/linux-5.10.65+gitAUTOINC+dcc6bedb2c-g
cp -Prf --preserve=mode,timestamps --no-preserve=ownership \
/home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/srcipk-staging/board-support/linux-5.10.65+gitAUTOINC+dcc6bedb2c-g/. \
/home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/packages-split/linux-ti-staging-src/board-support/linux-5.10.65+gitAUTOINC+dcc6bedb2c-g
}

populate_srcipk_package

The tasks that were compiled normally before are

populate_srcipk_package() {
install -d /home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/packages-split/linux-ti-staging-src/board-support/linux-5.10.65+gitAUTOINC+dcc6bedb2c-gdcc6bedb2c
cp -Prf --preserve=mode,timestamps --no-preserve=ownership \
/home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/srcipk-staging/board-support/linux-5.10.65+gitAUTOINC+dcc6bedb2c-gdcc6bedb2c/. \
/home/user/work/tda4/linux-sdk/yocto-build/build/arago-tmp-external-arm/work/j7_evm-linux/linux-ti-staging/5.10.65+gitAUTOINC+dcc6bedb2c-r0b.arago5_psdkla_32/packages-split/linux-ti-staging-src/board-support/linux-5.10.65+gitAUTOINC+dcc6bedb2c-gdcc6bedb2c
}

populate_srcipk_package

Through comparison, we can see that the wrong CP instruction folder is incorrect, like it is truncated.

Later, I also returned the version to the original version 8.1 and 8.0, and found that this error was reported in the compilation.

lease check whether there is this error in yocto. You can execute bitbake linux-ti-staging -c cleanall and bitbake linux-ti-staging, or if you know the reason for this problem, please answer it.

Thank you