All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pandey, Kamal" <Kamal.Pandey@ifm.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: FileExistsError: [Errorno 17] File Exists
Date: Mon, 8 Apr 2019 06:08:51 +0000	[thread overview]
Message-ID: <5677a277a1a9466c96062287a1754c8f@ifm.com> (raw)

[-- 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 --]

             reply	other threads:[~2019-04-08  6:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08  6:08 Pandey, Kamal [this message]
2019-04-08 10:20 ` FileExistsError: [Errorno 17] File Exists Burton, Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5677a277a1a9466c96062287a1754c8f@ifm.com \
    --to=kamal.pandey@ifm.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.