<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12155</bug_id>
          
          <creation_ts>2017-10-02 21:48:45 +0000</creation_ts>
          <short_desc>Building MACHINE=&lt;mach1&gt; then building MACHINE=&lt;mach2&gt; w/ same tmp fails while doing -c populate_sdk_ext</short_desc>
          <delta_ts>2017-10-02 22:01:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>12115</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77283</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-10-02 21:48:45 +0000</bug_when>
    <thetext>meta-yocto-bsp    = &quot;master:fcdfe09d9cc4e2977bd602dfd18f729cd9f6d73d&quot;  

NOTE: Executing RunQueue Tasks
ERROR: core-image-base-1.0-r0 do_populate_sdk_ext: The recipe core-image-base is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
 &lt;path&gt;/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-toolchain-ext-2.4.testdata.json
    (matched in manifest-qemux86-64-core-image-base.populate_sdk_ext)
 &lt;path&gt;/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-toolchain-ext-2.4.sh
    (matched in manifest-qemux86-64-core-image-base.populate_sdk_ext)
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&apos;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&apos;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: core-image-base-1.0-r0 do_populate_sdk_ext: If the above message is too much, the simpler version is you&apos;re advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: core-image-base-1.0-r0 do_populate_sdk_ext: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in:&lt;path&gt;/build/tmp/work/genericx86_64-poky-linux/core-image-base/1.0-r0/temp/log.do_populate_sdk_ext.29915
ERROR: Task (/big/src/myBugs/poky/meta/recipes-core/images/core-image-base.bb:do_populate_sdk_ext) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 4713 tasks of which 4711 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /big/src/myBugs/poky/meta/recipes-core/images/core-image-base.bb:do_populate_sdk_ext
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.


To replicate:
in local.conf add:
MACHINE = &quot;genericx86-64&quot;                                                                                                                                
# MACHINE = &quot;qemux86-64&quot;
  
  
  
  
IMAGE_INSTALL_append=&quot; wget bash coreutils procps packagegroup-core-full-cmdline &quot;
EXTRA_IMAGE_FEATURES_append = &quot; ssh-server-openssh &quot;
IMAGE_ROOTFS_EXTRA_SPACE = &quot;10242880&quot;
  
  
  
# sysd                                                                                                                                                     
DISTRO_FEATURES_append = &quot; systemd&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED = &quot;sysvinit&quot;
VIRTUAL-RUNTIME_initscripts = &quot;systemd-compat-units&quot;
  
  
NOISO=&quot;1&quot;
NOHDD=&quot;1&quot;
IMAGE_FSTYPES=&quot;wic wic.vmdk&quot;
+++++
Then build 
$ bitbake core-image-base 
$ bitbake core-image-base -c populate_sdk_ext


+++
Then change in local.conf to 
# MACHINE = &quot;genericx86-64&quot;                                                                                                                                
MACHINE = &quot;qemux86-64&quot;

++++
Then Build

$ bitbake core-image-base 
$ bitbake core-image-base -c populate_sdk_ext

# and you will see a long error paragraph about how you should wipe out tmp.
# it is likely that all you need to do is switch machines using an unmodified local.conf but I am not certain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77284</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-10-02 22:01:56 +0000</bug_when>
    <thetext>Right, I&apos;ve seen this before. The file names are not unique, that&apos;s probably what we need to change.

*** This bug has been marked as a duplicate of bug 12115 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>