UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer petervuto
Observer
1,963 Views
Registered: ‎07-08-2017

Conflicting Yocto recipes on PL 2016.4

Using an unmodified Petalinux 2016.4 project and the ZedBoard BSP, I get an error about conflicting recipes when building. The actual conflict is just in a README file, and if I delete that duplicated README after the first recipe creates it but before the latter one deletes it, the error doesn't occur. Deleting the README after the error happens and rebuilding works too. But both are a bit annoying since I'm building often. Has anyone had this issue? The only thing I change from a full-defaults build using a reference BSP is that I select a custom tmp folder for the build, as the default one is on an NFS.

 

The full build log: 

 

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function package_get_auto_pr
DEBUG: Python function package_get_auto_pr finished
DEBUG: Executing shell function do_deploy
lib/
lib/modules/
lib/modules/4.6.0-xilinx/
lib/modules/4.6.0-xilinx/kernel/
lib/modules/4.6.0-xilinx/kernel/fs/
lib/modules/4.6.0-xilinx/kernel/fs/configfs/
lib/modules/4.6.0-xilinx/kernel/fs/configfs/configfs.ko
lib/modules/4.6.0-xilinx/kernel/crypto/
lib/modules/4.6.0-xilinx/kernel/crypto/echainiv.ko
lib/modules/4.6.0-xilinx/kernel/crypto/drbg.ko
lib/modules/4.6.0-xilinx/kernel/crypto/sha256_generic.ko
lib/modules/4.6.0-xilinx/kernel/crypto/jitterentropy_rng.ko
lib/modules/4.6.0-xilinx/kernel/crypto/hmac.ko
lib/modules/4.6.0-xilinx/kernel/drivers/
lib/modules/4.6.0-xilinx/kernel/drivers/remoteproc/
lib/modules/4.6.0-xilinx/kernel/drivers/remoteproc/zynq_remoteproc.ko
lib/modules/4.6.0-xilinx/kernel/drivers/remoteproc/remoteproc.ko
lib/modules/4.6.0-xilinx/kernel/drivers/remoteproc/mb_remoteproc.ko
lib/modules/4.6.0-xilinx/kernel/drivers/uio/
lib/modules/4.6.0-xilinx/kernel/drivers/uio/uio_pdrv_genirq.ko
lib/modules/4.6.0-xilinx/kernel/drivers/usb/
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/function/
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/function/usb_f_ss_lb.ko
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/function/usb_f_mass_storage.ko
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/legacy/
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/legacy/g_zero.ko
lib/modules/4.6.0-xilinx/kernel/drivers/usb/gadget/libcomposite.ko
lib/modules/4.6.0-xilinx/kernel/drivers/rpmsg/
lib/modules/4.6.0-xilinx/kernel/drivers/rpmsg/virtio_rpmsg_bus.ko
lib/modules/4.6.0-xilinx/kernel/drivers/virtio/
lib/modules/4.6.0-xilinx/kernel/drivers/virtio/virtio_ring.ko
lib/modules/4.6.0-xilinx/kernel/drivers/virtio/virtio.ko
lib/modules/4.6.0-xilinx/kernel/net/
lib/modules/4.6.0-xilinx/kernel/net/8021q/
lib/modules/4.6.0-xilinx/kernel/net/8021q/8021q.ko
lib/modules/4.6.0-xilinx/kernel/net/llc/
lib/modules/4.6.0-xilinx/kernel/net/llc/llc.ko
lib/modules/4.6.0-xilinx/kernel/net/802/
lib/modules/4.6.0-xilinx/kernel/net/802/p8022.ko
lib/modules/4.6.0-xilinx/kernel/net/802/stp.ko
lib/modules/4.6.0-xilinx/kernel/net/802/psnap.ko
lib/modules/4.6.0-xilinx/kernel/net/bridge/
lib/modules/4.6.0-xilinx/kernel/net/bridge/bridge.ko
lib/modules/4.6.0-xilinx/kernel/net/ipv4/
lib/modules/4.6.0-xilinx/kernel/net/ipv4/ipip.ko
lib/modules/4.6.0-xilinx/modules.builtin
lib/modules/4.6.0-xilinx/modules.order
Copying deploy kernel-initramfs image and setting up links...
DEBUG: Shell function do_deploy finished
DEBUG: Executing python function sstate_task_postfunc
DEBUG: Staging files from /tmp/prebuiltLinux/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.6-xilinx+gitAUTOINC+2762bc9163-r0/deploy-linux-xlnx to /tmp/prebuiltLinux/deploy/images/plnx_arm
ERROR: The recipe linux-xlnx is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /tmp/prebuiltLinux/deploy/images/plnx_arm/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
Please verify which recipe should provide the above files.
The build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.
ERROR: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
DEBUG: Python function sstate_task_postfunc finished
ERROR: Function failed: sstate_task_postfunc
0 Kudos