AnsweredAssumed Answered

BUILD META-TOOLCHAIN-QT5 for iMX8mnevk fail.

Question asked by Ho Tan Ha on Mar 16, 2020
Latest reply on Mar 23, 2020 by Ho Tan Ha

when I use yocto to build meta-toolchain-qt5 for iMX8mnevk: $ bitbake meta-toolchain-qt5. I have a problem:

ERROR: nativesdk-qtbase-5.10.1+gitAUTOINC+6c6ace9d23-r0 do_prepare_recipe_sysroot: 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:extend_recipe_sysroot(d)
0003:
File: '/home/usr/imx-yocto-bsp/sources/poky/meta/classes/staging.bbclass', lineno: 545, function: extend_recipe_sysroot
0541: dest = newmanifest[l]
0542: if l.endswith("/"):
0543: staging_copydir(l, targetdir, dest, seendirs)
0544: continue
*** 0545: staging_copyfile(l, targetdir, dest, postinsts, seendirs)
0546:
0547: bb.note("Installed into sysroot: %s" % str(msg_adding))
0548: bb.note("Skipping as already exists in sysroot: %s" % str(msg_exists))
0549:
File: '/home/usr/imx-yocto-bsp/sources/poky/meta/classes/staging.bbclass', lineno: 151, function: staging_copyfile
0147: os.symlink(linkto, dest)
0148: #bb.warn(c)
0149: else:
0150: try:
*** 0151: os.link(c, dest)
0152: except OSError as err:
0153: if err.errno == errno.EXDEV:
0154: bb.utils.copyfile(c, dest)
0155: else:
Exception: FileExistsError: [Errno 17] File exists: '/home/usr/imx-yocto-bsp/build-xwayland/tmp/sysroots-components/x86_64-nativesdk/nativesdk-glibc/opt/fsl-imx-xwayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/share/x86_64-pokysdk-linux_config_site.d/glibc_config' -> '/home/usr/imx-yocto-bsp/build-xwayland/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtbase/5.10.1+gitAUTOINC+6c6ace9d23-r0/nativesdk-recipe-sysroot/opt/fsl-imx-xwayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/share/x86_64-pokysdk-linux_config_site.d/glibc_config'

ERROR: nativesdk-qtbase-5.10.1+gitAUTOINC+6c6ace9d23-r0 do_prepare_recipe_sysroot: Function failed: extend_recipe_sysroot
ERROR: Logfile of failure stored in: /home/usr/imx-yocto-bsp/build-xwayland/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qtbase/5.10.1+gitAUTOINC+6c6ace9d23-r0/temp/log.do_prepare_recipe_sysroot.29764
ERROR: Task (/home/usr/imx-yocto-bsp/sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_git.bb:do_prepare_recipe_sysroot) failed with exit code '1'

 

What is it? How can I solve it?

I am using Ubuntu 18.04 for host computer.

Outcomes