Yocto image build fails at do_rootfs

I am following this guide:

to build a yocto image for my Colibri iMX6DL (+Viola carrier board).

Close to the end of the build I get the following error

ERROR: angstrom-lxde-image-2.8b5-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:license_create_manifest(d)
     0003:
File: '/opt/yocto/poky/build/../layers/openembedded-core/meta/classes/license.bbclass', lineno: 57, function: license_create_manifest
     0053:            pkg_dic[pkg_name]["LICENSE"] = pkg_dic[pkg_name][pkg_lic_name]
     0054:
     0055:    rootfs_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY'),
     0056:                        d.getVar('IMAGE_NAME'), 'license.manifest')
 *** 0057:    write_license_files(d, rootfs_license_manifest, pkg_dic)
     0058:}
     0059:
     0060:def write_license_files(d, license_manifest, pkg_dic):
     0061:    import re
File: '/opt/yocto/poky/build/../layers/openembedded-core/meta/classes/license.bbclass', lineno: 126, function: write_license_files
     0122:        bb.utils.mkdirhier(rootfs_license_dir)
     0123:        rootfs_license_manifest = os.path.join(rootfs_license_dir,
     0124:                os.path.split(license_manifest)[1])
     0125:        if not os.path.exists(rootfs_license_manifest):
 *** 0126:            os.link(license_manifest, rootfs_license_manifest)
     0127:
     0128:        if copy_lic_dirs == "1":
     0129:            for pkg in sorted(pkg_dic):
     0130:                pkg_rootfs_license_dir = os.path.join(rootfs_license_dir, pkg)
Exception: OSError: [Errno 18] Invalid cross-device link: '/opt/yocto/poky/build/../deploy/licenses/colibri_imx6ull/Colibri-iMX6ULL_LXDE-Image/license.manifest' -> '/opt/yocto/poky/build/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/angstrom-lxde-image/2.8b5-r0/Colibri-iMX6ULL_LXDE-Image_2.8.5/rootfs/usr/share/common-licenses/license.manifest'

ERROR: angstrom-lxde-image-2.8b5-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /opt/yocto/poky/build/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/angstrom-lxde-image/2.8b5-r0/temp/log.do_rootfs.30301
ERROR: Task (/opt/yocto/poky/build/../layers/meta-toradex-demos/recipes-images/images/angstrom-lxde-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7703 tasks of which 7702 didn't need to be rerun and 1 failed.

See attached file for a more detailed log

How can I resolve this error?

Hi

‘Exception: OSError: [Errno 18] Invalid cross-device link’: What is the output of:

df -P '/opt/yocto/poky/build/../deploy/licenses/colibri_imx6ull/Colibri-iMX6ULL_LXDE-Image/license.manifest' | awk 'END{print $NF}'
df -P '/opt/yocto/poky/build/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/angstrom-lxde-image/2.8b5-r0/Colibri-iMX6ULL_LXDE-Image_2.8.5/rootfs/usr/share/common-licenses/' | awk 'END{print $NF}'

Max

Did not manage to reproduce the error, so this can be closed.

Thanks for you Input.