All of lore.kernel.org
 help / color / mirror / Atom feed
* FileExistsError: [Errorno 17] File Exists
@ 2019-04-08  6:08 Pandey, Kamal
  2019-04-08 10:20 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: Pandey, Kamal @ 2019-04-08  6:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2975 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 8332 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FileExistsError: [Errorno 17] File Exists
  2019-04-08  6:08 FileExistsError: [Errorno 17] File Exists Pandey, Kamal
@ 2019-04-08 10:20 ` Burton, Ross
  0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2019-04-08 10:20 UTC (permalink / raw)
  To: Pandey, Kamal; +Cc: yocto

On Mon, 8 Apr 2019 at 07:17, Pandey, Kamal <Kamal.Pandey@ifm.com> wrote:
> 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.

xproto != xorgproto.

https://www.phoronix.com/scan.php?page=news_item&px=Xorgproto-Debut-Release

All of the xorg-proto/*proto.bb recipes were replaced by xorgproto.
As part of the backporting you can most likely just replace xorgproto
with the name of the relevant proto recipe.

Ross


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-08 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08  6:08 FileExistsError: [Errorno 17] File Exists Pandey, Kamal
2019-04-08 10:20 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.