Re building Linux Image Error

I had sucessfully build an image using Toradex Notes and Community help,But When I set up QT Environment every thing was fine,During Example creation I got qtquick error-Saying There is no command So I rebuild the image With Modifying the local.conf with the following command

 IMAGE_INSTALL_append = " qtquickcontrols"

But during Buid I Got errors so I cleand u every thing and initiated again but errors again strucked regarding kernal.So I cleaned up everyting including previous Builds,ipk and SDk with Sstate cache and tmp files,Re initiated the compiler with bit bake ,So it took a lot of time re compiling everything again but I got error at 98% which were during compiling of U-boot/ Linux-Toradex 3.1 and v4l2 Utils.
So I used cleansstate command and re run the task,Which Suceeded and Hence OPencv Got build ,I did same with U-boot and Linux-toradex but error persists,So I ran bitbake -c clean But nothing happned ,After that I re ran bitbake -cleanall but same condition persists,My recent Output is below

Initialising tasks: 100% |######################################################################################| Time: 0:01:57
NOTE: Executing SetScene Tasks
ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 do_deploy_setscene: 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_deploy_setscene(d)
     0003:
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/deploy.bbclass', lineno: 7, function: do_deploy_setscene
     0003:do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
     0004:do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
     0005:
     0006:python do_deploy_setscene () {
 *** 0007:    sstate_setscene(d)
     0008:}
     0009:addtask do_deploy_setscene
     0010:do_deploy[dirs] = "${DEPLOYDIR} ${B}"
     0011:do_deploy[stamp-extra-info] = "${MACHINE}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 681, function: sstate_setscene
     0677:            break
     0678:
     0679:def sstate_setscene(d):
     0680:    shared_state = sstate_state_fromvars(d)
 *** 0681:    accelerate = sstate_installpkg(shared_state, d)
     0682:    if not accelerate:
     0683:        bb.fatal("No suitable staging package found")
     0684:
     0685:python sstate_task_prefunc () {
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg
     0324:    for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
     0325:        # All hooks should run in the SSTATE_INSTDIR
     0326:        bb.build.exec_func(f, d, (sstateinst,))
     0327:
 *** 0328:    return sstate_installpkgdir(ss, d)
     0329:
     0330:def sstate_installpkgdir(ss, d):
     0331:    import oe.path
     0332:    import subprocess
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

WARNING: Logfile for failed setscene task is /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/temp/log.do_deploy_setscene.9898
WARNING: Setscene task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-bsp/u-boot/u-boot-toradex_git.bb:do_deploy_setscene) failed with exit code '1' - real task will be run instead
NOTE: Executing RunQueue Tasks

Keyboard Interrupt, closing down...


Second Keyboard Interrupt, stopping...


Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Execution was interrupted, returning a non-zero exit code.

Local.conf

include conf/machine/include/${MACHINE}.inc
IMAGE_INSTALL_append = " opencv"
IMAGE_INSTALL_append = " x11vnc"
IMAGES_BROWSER_forcevariable = ""
TOOLCHAIN_HOST_TASK_append = " nativesdk-cmake"
#IMAGE_INSTALL_append = " qtquickcontrols"

hi t20

it seems that you succeeded to do a complete oe build. So what is not working?

Oe-Build Fails during Linux-Toradex Build and U-Boot Built. (I mean If I execute the command Bitbake -k angstrom-lxde-image
I get the following errors

 Initialising tasks: 100% |######################################################################################| Time: 0:01:57
 NOTE: Executing SetScene Tasks
 ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 do_deploy_setscene: 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_deploy_setscene(d)
      0003:
 File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/deploy.bbclass', lineno: 7, function: do_deploy_setscene
      0003:do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
      0004:do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
      0005:
      0006:python do_deploy_setscene () {
  *** 0007:    sstate_setscene(d)
      0008:}
      0009:addtask do_deploy_setscene
      0010:do_deploy[dirs] = "${DEPLOYDIR} ${B}"
      0011:do_deploy[stamp-extra-info] = "${MACHINE}"
 File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 681, function: sstate_setscene
      0677:            break
      0678:
      0679:def sstate_setscene(d):
      0680:    shared_state = sstate_state_fromvars(d)
  *** 0681:    accelerate = sstate_installpkg(shared_state, d)
      0682:    if not accelerate:
      0683:        bb.fatal("No suitable staging package found")
      0684:
      0685:python sstate_task_prefunc () {
 File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg
      0324:    for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
      0325:        # All hooks should run in the SSTATE_INSTDIR
      0326:        bb.build.exec_func(f, d, (sstateinst,))
      0327:
  *** 0328:    return sstate_installpkgdir(ss, d)
      0329:
      0330:def sstate_installpkgdir(ss, d):
      0331:    import oe.path
      0332:    import subprocess
 File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
      0347:
      0348:    for state in ss['dirs']:
      0349:        prepdir(state[1])
      0350:        os.rename(sstateinst + state[0], state[1])
  *** 0351:    sstate_install(ss, d)
      0352:
      0353:    for plain in ss['plaindirs']:
      0354:        workdir = d.getVar('WORKDIR')
      0355:        src = sstateinst + "/" + plain.replace(workdir, '')
 File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
      0276:
      0277:    # Run the actual file install
      0278:    for state in ss['dirs']:
      0279:        if os.path.exists(state[1]):
  *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
      0281:
      0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
      0283:        # All hooks should run in the SSTATE_INSTDIR
      0284:        bb.build.exec_func(postinst, d, (sstateinst,))
 File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
      0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
      0099:        # Need to copy directories only with tar first since cp will error if two
      0100:        # writers try and create a directory at the same time
      0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
  *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
      0103:        source = ''
      0104:        if os.path.isdir(src):
      0105:            if len(glob.glob('%s/.??*' % src)) > 0:
      0106:                source = './.??* '
 File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
      0332:        # empty string. That is maintained here for backwards compatibility.
      0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
      0334:
      0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  *** 0336:               **kwargs).stdout
      0337:
      0338:
      0339:class CompletedProcess(object):
      0340:    """A process that has finished running.
 File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
      0414:            raise
      0415:        retcode = process.poll()
      0416:        if check and retcode:
      0417:            raise CalledProcessError(retcode, process.args,
  *** 0418:                                     output=stdout, stderr=stderr)
      0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
      0420:
      0421:
      0422:def list2cmdline(seq):
 Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

I just tried to build the kernel with OE and it is working. Could you provide the logfile of the error (log.do_deploy_setscene.9898)? Thanks.

abc@ubuntu:~/oe-core/build$ bitbake -k angstrom-qt5-x11-image
Loading cache: 100% |############################################| Time: 0:00:37
Loaded 3479 entries from dependency cache.
WARNING: No recipes available for:
  /home/abc/oe-core/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
  /home/abc/oe-core/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
  /home/abc/oe-core/build/../layers/meta-jetson-tk1/recipes-graphics/mesa/mesa_11.1.1.bbappend
  /home/abc/oe-core/build/../layers/meta-angstrom/recipes-tweaks/opkg/opkg_0.3.4.bbappend
  /home/abc/oe-core/build/../layers/meta-toradex-demos/recipes-support/icu/icu_57%.bbappend
  /home/abc/oe-core/build/../layers/meta-toradex-demos/recipes-support/opencv/opencv_2.4.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-17.10"
TARGET_SYS           = "arm-angstrom-linux-gnueabi"
MACHINE              = "colibri-t20"
DISTRO               = "angstrom"
DISTRO_VERSION       = "v2017.12"
TUNE_FEATURES        = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU           = "hard"
meta-angstrom        = "HEAD:2a246b9f26126a662caef79a99845ff8379145b9"
meta-toradex-nxp     = "HEAD:53fdf58e0a31c94ef446fe7c9e20585dad763099"
meta-freescale       = "HEAD:bf7fd9cfe0788fe2f819a4ae2cc7db8327fe161a"
meta-freescale-3rdparty = "HEAD:37c79046d13d10ab16561dddc764c0164ee5deaa"
meta-toradex-tegra   = "HEAD:4931a667e17a72819331265ca8b3b0f176ef6293"
meta-jetson-tk1      = "HEAD:e8b87fe8da7c6fcffa37ab245f50082953cc1ee1"
meta-toradex-bsp-common = "HEAD:eb87aec937ab520da8162c89e69d33faf9bc29a2"
meta-snappy          = "HEAD:a0432dcff49e35af9175c5bdd57d6b5871062ecf"
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-initramfs       
meta-networking      
meta-multimedia      
meta-python          = "HEAD:6e3fc5b8d904d06e3aa77e9ec9968ab37a798188"
meta-lxde            = "HEAD:dbcbbfd9539a9a017bb6c9b7fd67c3ca22c4cacf"
meta-browser         = "HEAD:8cc24caa56f254e09ccb2311b59d054d1f016014"
meta-qt4             = "HEAD:f313dbee2ac3d5fcc9801407947d3cb6cfb90b5d"
meta-qt5             = "HEAD:d87335a50a9dd35d890786edbd79b8953fdaa11a"
meta-freescale-distro = "HEAD:3f958b6a9a4c4120f241e431fec8e5ba616fcc73"
meta-toradex-demos   = "HEAD:51cb154f4219a918590994bcbe0e14f9545120cc"
meta                 = "HEAD:39fc1150e74173fc6d73c464c141dba0b7ac2930"

Initialising tasks: 100% |#######################################| Time: 0:02:10
NOTE: Executing SetScene Tasks
ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 do_deploy_setscene: 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_deploy_setscene(d)
     0003:
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/deploy.bbclass', lineno: 7, function: do_deploy_setscene
     0003:do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
     0004:do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
     0005:
     0006:python do_deploy_setscene () {
 *** 0007:    sstate_setscene(d)
     0008:}
     0009:addtask do_deploy_setscene
     0010:do_deploy[dirs] = "${DEPLOYDIR} ${B}"
     0011:do_deploy[stamp-extra-info] = "${MACHINE}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 681, function: sstate_setscene
     0677:            break
     0678:
     0679:def sstate_setscene(d):
     0680:    shared_state = sstate_state_fromvars(d)
 *** 0681:    accelerate = sstate_installpkg(shared_state, d)
     0682:    if not accelerate:
     0683:        bb.fatal("No suitable staging package found")
     0684:
     0685:python sstate_task_prefunc () {
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg
     0324:    for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
     0325:        # All hooks should run in the SSTATE_INSTDIR
     0326:        bb.build.exec_func(f, d, (sstateinst,))
     0327:
 *** 0328:    return sstate_installpkgdir(ss, d)
     0329:
     0330:def sstate_installpkgdir(ss, d):
     0331:    import oe.path
     0332:    import subprocess
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

WARNING: Logfile for failed setscene task is /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/temp/log.do_deploy_setscene.1831
WARNING: Setscene task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-bsp/u-boot/u-boot-toradex_git.bb:do_deploy_setscene) failed with exit code '1' - real task will be run instead
ERROR: linux-toradex-3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1 do_deploy_setscene: 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_deploy_setscene(d)
     0003:
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/deploy.bbclass', lineno: 7, function: do_deploy_setscene
     0003:do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
     0004:do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
     0005:
     0006:python do_deploy_setscene () {
 *** 0007:    sstate_setscene(d)
     0008:}
     0009:addtask do_deploy_setscene
     0010:do_deploy[dirs] = "${DEPLOYDIR} ${B}"
     0011:do_deploy[stamp-extra-info] = "${MACHINE}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 681, function: sstate_setscene
     0677:            break
     0678:
     0679:def sstate_setscene(d):
     0680:    shared_state = sstate_state_fromvars(d)
 *** 0681:    accelerate = sstate_installpkg(shared_state, d)
     0682:    if not accelerate:
     0683:        bb.fatal("No suitable staging package found")
     0684:
     0685:python sstate_task_prefunc () {
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg
     0324:    for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
     0325:        # All hooks should run in the SSTATE_INSTDIR
     0326:        bb.build.exec_func(f, d, (sstateinst,))
     0327:
 *** 0328:    return sstate_installpkgdir(ss, d)
     0329:
     0330:def sstate_installpkgdir(ss, d):
     0331:    import oe.path
     0332:    import subprocess
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/deploy-linux-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/deploy-linux-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

WARNING: Logfile for failed setscene task is /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/temp/log.do_deploy_setscene.1830
WARNING: Setscene task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-kernel/linux/linux-toradex_git.bb:do_deploy_setscene) failed with exit code '1' - real task will be run instead
NOTE: Executing RunQueue Tasks
ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 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/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 706, function: sstate_task_postfunc
     0702:
     0703:    sstateinst = d.getVar("SSTATE_INSTDIR")
     0704:    d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
     0705:
 *** 0706:    sstate_installpkgdir(shared_state, d)
     0707:
     0708:    bb.utils.remove(d.getVar("SSTATE_BUILDDIR"), recurse=True)
     0709:}
     0710:sstate_task_postfunc[dirs] = "${WORKDIR}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 do_deploy: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/temp/log.do_deploy.42508
ERROR: Task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-bsp/u-boot/u-boot-toradex_git.bb:do_deploy) failed with exit code '1'

I have deleted the Temp files ,ipk build files,SDk files from Deploy folders and re initiated the whole process the above output are from the terminal.
I am attaching the log files that U-boot specifies 42508 do_deploy.42508
log.do_deploy_setscene.1831

 [Executing SetScene Tasks
ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 do_deploy_setscene: 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_deploy_setscene(d)
     0003:
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/deploy.bbclass', lineno: 7, function: do_deploy_setscene
     0003:do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
     0004:do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
     0005:
     0006:python do_deploy_setscene () {
 *** 0007:    sstate_setscene(d)
     0008:}
     0009:addtask do_deploy_setscene
     0010:do_deploy[dirs] = "${DEPLOYDIR} ${B}"
     0011:do_deploy[stamp-extra-info] = "${MACHINE}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 681, function: sstate_setscene
     0677:            break
     0678:
     0679:def sstate_setscene(d):
     0680:    shared_state = sstate_state_fromvars(d)
 *** 0681:    accelerate = sstate_installpkg(shared_state, d)
     0682:    if not accelerate:
     0683:        bb.fatal("No suitable staging package found")
     0684:
     0685:python sstate_task_prefunc () {
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg
     0324:    for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
     0325:        # All hooks should run in the SSTATE_INSTDIR
     0326:        bb.build.exec_func(f, d, (sstateinst,))
     0327:
 *** 0328:    return sstate_installpkgdir(ss, d)
     0329:
     0330:def sstate_installpkgdir(ss, d):
     0331:    import oe.path
     0332:    import subprocess
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

WARNING: Logfile for failed setscene task is /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/temp/log.do_deploy_setscene.47960
WARNING: Setscene task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-bsp/u-boot/u-boot-toradex_git.bb:do_deploy_setscene) failed with exit code '1' - real task will be run instead
ERROR: linux-toradex-3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1 do_deploy_setscene: 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_deploy_setscene(d)
     0003:
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/deploy.bbclass', lineno: 7, function: do_deploy_setscene
     0003:do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
     0004:do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
     0005:
     0006:python do_deploy_setscene () {
 *** 0007:    sstate_setscene(d)
     0008:}
     0009:addtask do_deploy_setscene
     0010:do_deploy[dirs] = "${DEPLOYDIR} ${B}"
     0011:do_deploy[stamp-extra-info] = "${MACHINE}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 681, function: sstate_setscene
     0677:            break
     0678:
     0679:def sstate_setscene(d):
     0680:    shared_state = sstate_state_fromvars(d)
 *** 0681:    accelerate = sstate_installpkg(shared_state, d)
     0682:    if not accelerate:
     0683:        bb.fatal("No suitable staging package found")
     0684:
     0685:python sstate_task_prefunc () {
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 328, function: sstate_installpkg
     0324:    for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
     0325:        # All hooks should run in the SSTATE_INSTDIR
     0326:        bb.build.exec_func(f, d, (sstateinst,))
     0327:
 *** 0328:    return sstate_installpkgdir(ss, d)
     0329:
     0330:def sstate_installpkgdir(ss, d):
     0331:    import oe.path
     0332:    import subprocess
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/deploy-linux-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/deploy-linux-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

WARNING: Logfile for failed setscene task is /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/temp/log.do_deploy_setscene.47959
WARNING: Setscene task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-kernel/linux/linux-toradex_git.bb:do_deploy_setscene) failed with exit code '1' - real task will be run instead
NOTE: Executing RunQueue Tasks
ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 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/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 706, function: sstate_task_postfunc
     0702:
     0703:    sstateinst = d.getVar("SSTATE_INSTDIR")
     0704:    d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
     0705:
 *** 0706:    sstate_installpkgdir(shared_state, d)
     0707:
     0708:    bb.utils.remove(d.getVar("SSTATE_BUILDDIR"), recurse=True)
     0709:}
     0710:sstate_task_postfunc[dirs] = "${WORKDIR}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/deploy-u-boot-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

ERROR: u-boot-toradex-2016.11+gitAUTOINC+30a1208727-2.8.1 do_deploy: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/u-boot-toradex/2016.11+gitAUTOINC+30a1208727-2.8.1/temp/log.do_deploy.48169
ERROR: Task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-bsp/u-boot/u-boot-toradex_git.bb:do_deploy) failed with exit code '1'
ERROR: linux-toradex-3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1 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/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 706, function: sstate_task_postfunc
     0702:
     0703:    sstateinst = d.getVar("SSTATE_INSTDIR")
     0704:    d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
     0705:
 *** 0706:    sstate_installpkgdir(shared_state, d)
     0707:
     0708:    bb.utils.remove(d.getVar("SSTATE_BUILDDIR"), recurse=True)
     0709:}
     0710:sstate_task_postfunc[dirs] = "${WORKDIR}"
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 351, function: sstate_installpkgdir
     0347:
     0348:    for state in ss['dirs']:
     0349:        prepdir(state[1])
     0350:        os.rename(sstateinst + state[0], state[1])
 *** 0351:    sstate_install(ss, d)
     0352:
     0353:    for plain in ss['plaindirs']:
     0354:        workdir = d.getVar('WORKDIR')
     0355:        src = sstateinst + "/" + plain.replace(workdir, '')
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/sstate.bbclass', lineno: 280, function: sstate_install
     0276:
     0277:    # Run the actual file install
     0278:    for state in ss['dirs']:
     0279:        if os.path.exists(state[1]):
 *** 0280:            oe.path.copyhardlinktree(state[1], state[2])
     0281:
     0282:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0283:        # All hooks should run in the SSTATE_INSTDIR
     0284:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/path.py', lineno: 102, function: copyhardlinktree
     0098:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0099:        # Need to copy directories only with tar first since cp will error if two
     0100:        # writers try and create a directory at the same time
     0101:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
 *** 0102:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0103:        source = ''
     0104:        if os.path.isdir(src):
     0105:            if len(glob.glob('%s/.??*' % src)) > 0:
     0106:                source = './.??* '
File: '/usr/lib/python3.6/subprocess.py', lineno: 336, function: check_output
     0332:        # empty string. That is maintained here for backwards compatibility.
     0333:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0334:
     0335:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0336:               **kwargs).stdout
     0337:
     0338:
     0339:class CompletedProcess(object):
     0340:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 418, function: run
     0414:            raise
     0415:        retcode = process.poll()
     0416:        if check and retcode:
     0417:            raise CalledProcessError(retcode, process.args,
 *** 0418:                                     output=stdout, stderr=stderr)
     0419:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0420:
     0421:
     0422:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/deploy-linux-toradex; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/deploy-linux-toradex -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C /home/abc/oe-core/deploy/images/colibri-t20' returned non-zero exit status 2.

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: Exiting with failure status due to previous errors

ERROR: linux-toradex-3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1 do_deploy: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/linux-toradex/3.1.10+gitrAUTOINC+8e1745b5e5-2.8.1/temp/log.do_deploy.72729
ERROR: Task (/home/abc/oe-core/build/../layers/meta-toradex-tegra/recipes-kernel/linux/linux-toradex_git.bb:do_deploy) failed with exit code '1'
WARNING: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: The license listed SGI was not in the licenses collected for recipe tdx-nv-binaries
WARNING: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: The license listed Khronos was not in the licenses collected for recipe tdx-nv-binaries
WARNING: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: The license listed SGI was not in the licenses collected for recipe tdx-nv-binaries
WARNING: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: The license listed Khronos was not in the licenses collected for recipe tdx-nv-binaries
WARNING: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: The license listed SGI was not in the licenses collected for recipe tdx-nv-binaries
WARNING: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: The license listed Khronos was not in the licenses collected for recipe tdx-nv-binaries
ERROR: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: 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:write_image_test_data(d)
     0003:
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/classes/rootfs-postcommands.bbclass', lineno: 303, function: write_image_test_data
     0299:    testdata_link = "%s/%s.testdata.json" % (d.getVar('DEPLOY_DIR_IMAGE'), d.getVar('IMAGE_LINK_NAME'))
     0300:
     0301:    bb.utils.mkdirhier(os.path.dirname(testdata))
     0302:    searchString = "%s/"%(d.getVar("TOPDIR")).replace("//","/")
 *** 0303:    export2json(d, testdata,searchString=searchString,replaceString="")
     0304:
     0305:    if testdata_link != testdata:
     0306:        if os.path.lexists(testdata_link):
     0307:           os.remove(testdata_link)
File: '/home/abc/oe-core/build/../layers/openembedded-core/meta/lib/oe/data.py', lineno: 46, function: export2json
     0042:            data2export[key] = ''
     0043:        except AttributeError:
     0044:            pass
     0045:
 *** 0046:    with open(json_file, "w") as f:
     0047:        json.dump(data2export, f, skipkeys=True, indent=4, sort_keys=True)
Exception: PermissionError: [Errno 13] Permission denied: '/home/abc/oe-core/build/../deploy/images/colibri-t20/Colibri-T20_Qt5-X11-Image.testdata.json'

ERROR: angstrom-qt5-x11-image-2.8b1-r0 do_rootfs: Function failed: write_image_test_data
ERROR: Logfile of failure stored in: /home/abc/oe-core/build/tmp-glibc/work/colibri_t20-angstrom-linux-gnueabi/angstrom-qt5-x11-image/2.8b1-r0/temp/log.do_rootfs.72730
ERROR: Task (/home/abc/oe-core/build/../layers/meta-toradex-demos/recipes-images/images/angstrom-qt5-x11-image.bb:do_rootfs) failed with exit code '1']

log.do_rootfs.72730

Linux Toradex do_deploy

hi,
I tried the compilation in OE 2.8 branch and it compiled without errors. I am not able to reproduce your issue.

the command should be bitbake -k angstrom-qt-x11-image.