AnsweredAssumed Answered

L4.9.11_1.0.0:Issue in Building Linux kernel using bitbake

Question asked by Sri Shan on Mar 27, 2018
Latest reply on Mar 28, 2018 by gusarambula

Dear I.MX community

 

I am facing the below issue while building the kernel alone using the following bitbake commands

 

$ bitbake -c cleansstate linux-imx

$ bitbake <your_image>       or         $ bitbake linux-imx

 

Could you please help me in resolving the below issue as early as possible

 

 

 

te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake -c cleansstate linux-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

 

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ull14x14evk"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.9.11-1.0.0"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp          
meta-sdk          = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser      = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5          = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"

 

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake linux-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

 

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ull14x14evk"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.9.11-1.0.0"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp          
meta-sdk          = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser      = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5          = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"

 

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-imx-4.9.11-r0 do_deploy: 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:sstate_task_postfunc(d)
     0003:
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/classes/sstate.bbclass', lineno: 672, function: sstate_task_postfunc
     0668:
     0669:python sstate_task_postfunc () {
     0670:    shared_state = sstate_state_fromvars(d)
     0671:
 *** 0672:    sstate_install(shared_state, d)
     0673:    for intercept in shared_state['interceptfuncs']:
     0674:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),))
     0675:    omask = os.umask(0o002)
     0676:    if omask != 0o002:
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/classes/sstate.bbclass', lineno: 276, function: sstate_install
     0272:
     0273:    # Run the actual file install
     0274:    for state in ss['dirs']:
     0275:        if os.path.exists(state[1]):
 *** 0276:            oe.path.copyhardlinktree(state[1], state[2])
     0277:
     0278:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split():
     0279:        # All hooks should run in the SSTATE_INSTDIR
     0280:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/lib/oe/path.py', lineno: 81, function: copyhardlinktree
     0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0078:        # Need to copy directories only with tar first since cp will error if two
     0079:        # writers try and create a directory at the same time
     0080:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
 *** 0081:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0082:        source = ''
     0083:        if os.path.isdir(src):
     0084:            import glob
     0085:            if len(glob.glob('%s/.??*' % src)) > 0:
File: '/usr/lib/python3.4/subprocess.py', lineno: 616, function: check_output
     0612:            process.wait()
     0613:            raise
     0614:        retcode = process.poll()
     0615:        if retcode:
 *** 0616:            raise CalledProcessError(retcode, process.args, output=output)
     0617:    return output
     0618:
     0619:
     0620:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.9.11-r0/deploy-linux-imx; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.9.11-r0/deploy-linux-imx -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C /home/te-test/fsl-release-bsp/build-x11/tmp/deploy/images/imx6ull14x14evk' returned non-zero exit status 2

 

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors

 

ERROR: linux-imx-4.9.11-r0 do_deploy: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.9.11-r0/temp/log.do_deploy.19810
ERROR: Task (/home/te-test/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 438 tasks of which 420 didn't need to be rerun and 1 failed.

 

Summary: 1 task failed:
  /home/te-test/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_deploy
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$

 

 

Kindly do the needful as early as possible

Many Thanks in advance

Outcomes