Hi I was trying to compile Weston-6.0 using yocto recipe. For this I backported some of the packages from master branch of poky to my own layer. During this process, there was one package xorgproto which was used in master branch of poky but in rocko branch this package is not there. However a similar package is there called xproto. Now there is a conflict between these two packages for installing the same headers. I appended xorgproto recipe and removed the installation of similar header files. But after this I am getting this error. However If I continue to compile these errors are ignored.

Is there any way by which I can correct these errors. Why is there no check in staging.bbclass if the file exists or not.

The error is shown below:  

 

 

ERROR: gstreamer1.0-plugins-base-1.12.2-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/iepl007/yocto_build/poky/meta/classes/staging.bbclass', lineno: 565, function: extend_recipe_sysroot

     0561:                    dest = newmanifest[l]

     0562:                    if l.endswith("/"):

     0563:                        staging_copydir(l, targetdir, dest, seendirs)

     0564:                        continue

*** 0565:                    staging_copyfile(l, targetdir, dest, postinsts, seendirs)

     0566:

     0567:    bb.note("Installed into sysroot: %s" % str(msg_adding))

     0568:    bb.note("Skipping as already exists in sysroot: %s" % str(msg_exists))

     0569:

File: '/home/iepl007/yocto_build/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/iepl007/yocto_build/build_weston/tmp/sysroots-components/aarch64/xorgproto/usr/include/X11/Xwindows.h' -> '/home/iepl007/yocto_build/build_weston/tmp/work/aarch64-pdm3-linux/gstreamer1.0-plugins-base/1.12.2-r0/recipe-sysroot/usr/include/X11/Xwindows.h'

 

ERROR: gstreamer1.0-plugins-base-1.12.2-r0 do_prepare_recipe_sysroot: Function failed: extend_recipe_sysroot

ERROR: Logfile of failure stored in: /home/iepl007/yocto_build/build_weston/tmp/work/aarch64-pdm3-linux/gstreamer1.0-plugins-base/1.12.2-r0/temp/log.do_prepare_recipe_sysroot.27414

ERROR: Task (/home/iepl007/yocto_build/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.2.bb:do_prepare_recipe_sysroot) failed with exit code '1'

 

Best Regards

Kamal Pandey