<?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>6710</bug_id>
          
          <creation_ts>2014-09-11 17:28:00 +0000</creation_ts>
          <short_desc>linux-yocto-rt recipe failing to build</short_desc>
          <delta_ts>2015-01-22 16:03:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-intel-corei7-64</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nitin Kamble">nitin.a.kamble</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sjolley.yp.pm</cc>
          
          <qa_contact name="Costin">costin.c.constantin</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>45544</commentid>
    <comment_count>0</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2014-09-11 17:28:00 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/intel/builders/intel-corei7-64-rt/builds/54/steps/BuildImages/logs/stdio

| ERROR: SRCREV 08229402523bdb153dceed0a7260180837396e7f was specified, but is not reachable
| ERROR: Check the BSP description for incorrect branch selection, or other errors.
| WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/intel-corei7-64-rt/build/build/tmp/work/corei7-64-intel-common-poky-linux/linux-yocto-rt/3.14.4+gitAUTOINC+62f236c734_0822940252-r0/temp/run.do_patch.3459:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_patch (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/intel-corei7-64-rt/build/build/tmp/work/corei7-64-intel-common-poky-linux/linux-yocto-rt/3.14.4+gitAUTOINC+62f236c734_0822940252-r0/temp/log.do_patch.3459)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45702</commentid>
    <comment_count>1</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2014-09-18 22:21:21 +0000</bug_when>
    <thetext>*** Bug 6742 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45880</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-09-26 04:34:37 +0000</bug_when>
    <thetext>I&apos;ve done some digging into this but so far am not seeing what is (significantly) different between qemux86-64 (which works) and intel-corei7-64 (which does not). The SRCREV in the bug report is valid. I updated to the latest meta and machine SRCREV, but the error persists (with the new SRCREVs).

I thought it might be something weird with the common architecture feature, but removing that from the BSP and making it machine specific didn&apos;t change the behavior.

I was surprised to see do_patch fail, instead of do_validate_branches, in this particular way.

Adding Bruce on Cc for ideas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45882</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-09-26 05:39:35 +0000</bug_when>
    <thetext>The branch created for qemux86-64 is standard/preempt-rt/base as expected, but for intel-corei7-64 it is standard/standard/preempt-rt ... and it has checked out standard/base, not standard/preempt-rt/base...

Turns out it&apos;s &quot;updateme&quot; in do_patch() that changes the branch from standard/preempt-rt/base (which we start do_patch with) to standard/standard/preempt-rt....

| + echo Branch post createme: * standard/standard/preempt-rt
| Branch post createme: * standard/standard/preempt-rt
| + [ 0 -ne 0 ]
| + sccs=
| + patches=
| + feat_dirs=
| + set +e
| + [ -n  features/netfilter/netfilter.scc features/taskstats/taskstats.scc ]
| + addon_features= --feature features/netfilter/netfilter.scc
| + addon_features= --feature features/netfilter/netfilter.scc --feature features/taskstats/taskstats.scc
| + [ -n  ]
| + echo  updateme  -DKDESC=intel-corei7-64:preempt-rt   --feature features/netfilter/netfilter.scc --feature features/taskstats/taskstats.scc x86 intel-corei7-64
|  updateme  -DKDESC=intel-corei7-64:preempt-rt   --feature features/netfilter/netfilter.scc --feature features/taskstats/taskstats.scc x86 intel-corei7-64
| + updateme -DKDESC=intel-corei7-64:preempt-rt --feature features/netfilter/netfilter.scc --feature features/taskstats/taskstats.scc x86 intel-corei7-64
| + git branch
| + grep *
| + echo Branch post updateme: * standard/standard/preempt-rt
| Branch post updateme: * standard/standard/preempt-rt

Bruce, does anything in that call to updateme look off to you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45894</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-09-26 12:19:52 +0000</bug_when>
    <thetext>commit 1d86365fb6548d2eae089910b22bda683ae27746
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Mon Sep 8 15:08:50 2014 -0400

    intel: create intel-common-preempt-rt and use it
    
    The -preempt variants were including intel-common-standard.scc, and
    then the preempt-rt kernel type.
    
    But since preempt-rt also includes the standard kernel, this results
    in a double include of the standard kernel, at a different point in
    the branch structure, and hence a less than obvious branch is created
    like: standard/standard/preempt-rt.
    
    To fix this, we create a parallel intel-common-preempt-rt and include
    it when necessary.
    
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;

:000000 100644 000000000000... 555744152ef4... A        bsp/intel-common/intel-common-preempt-rt.scc
:100644 100644 b5f56035e409... 070047c95ccb... M        bsp/intel-common/intel-core2-32-preempt-rt.scc
:100644 100644 d5bed7657d26... 6e3f6cc9677d... M        bsp/intel-common/intel-corei7-64-preempt-rt.scc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45895</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-09-26 12:20:48 +0000</bug_when>
    <thetext>That commit above is from: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45899</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-09-26 16:25:51 +0000</bug_when>
    <thetext>So that duplicates a lot of config, which defeats the purpose of intel-common-standard.scc. I&apos;ve worked up a change which removes the include of the ktype from intel-common-standard.scc and renames it to intel-common-drivers.scc and includes the ktype in each top level BSP explicitly. This avoids the duplication across a standard and preempt-rt version of the same file. I&apos;ll submit for 3.14 and it should apply to 3.17 after reverting the commit in Comment 4.

This gets past the do_patch failure, but now compilation fails for pch_gbe_main.c. 
I&apos;m working on that now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45906</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-09-26 19:14:07 +0000</bug_when>
    <thetext>Patch on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45908</commentid>
    <comment_count>8</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-09-26 21:46:54 +0000</bug_when>
    <thetext>commit b25eb7e4dfee7802d4eae657fa5e482a1a010190 (HEAD, refs/remotes/origin/master, refs/remotes/origin/HEAD, refs/heads/master)
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   2014-09-26

    linux-yocto*_3.14: Update SRCREV_meta to avoid rt build failure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48177</commentid>
    <comment_count>9</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-01-22 09:25:33 +0000</bug_when>
    <thetext>Hello,

I tested to build this recipe and it didn&apos;t work for me. I tested two times, once with a clean environment and the other with an already existing one. Both tests were performed on Ubuntu 14.10 OS on master branch.

BSP tested for: intel-corei7-64

poky hash:  master:08d3f44d784e06f461b7d83ae9262566f1cf09e4

Doing tests I noticed something that I haven&apos;t encounter until now; though running bitbake without -k flag, the build continued despide encountering an error at the begining of build. The error messages can be seen in the attached log files.

Regards,

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48178</commentid>
    <comment_count>10</comment_count>
      <attachid>2361</attachid>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-01-22 09:27:23 +0000</bug_when>
    <thetext>Created attachment 2361
logs

logs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48194</commentid>
    <comment_count>11</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-01-22 16:03:50 +0000</bug_when>
    <thetext>Firstly, please only reopen a bug if the issue matches the original issue. Here, the error you&apos;re seeing is:

ERROR: The recipe linux-yocto is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /media/poky/3poky/build/tmp/sysroots/intel-corei7-64/sysroot-providers/virtual_kernel
 Matched in manifest-intel-corei7-64-linux-yocto-rt.populate_sysroot
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.

and this is not the error in this original bug. I&apos;m therefore marking the original bug as resolved again.

Secondly, the most common cause of the error above is as described, you changed virtual/kernel provider without wiping the tmp directory.

If you are still seeing the issue please open a new bug and describe the steps taken to reproduce.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2361</attachid>
            <date>2015-01-22 09:27:23 +0000</date>
            <delta_ts>2015-01-22 09:27:23 +0000</delta_ts>
            <desc>logs</desc>
            <filename>logs.zip</filename>
            <type>application/x-zip-compressed</type>
            <size>3117</size>
            <attacher name="Costin">costin.c.constantin</attacher>
            
              <data encoding="base64">UEsDBBQDAAAIAAxcNkbTo/Zg3wYAAN8PAAARAAAAYnVpbGR0aW1lX2Vyci50eHS1V2mP0zAQ/Y7E
f7A4BIhtm9K0WyohsUCBSpxtF8Snykmc1moSB9vZUsSP541t0nIKcVS7Udd25njz5o03Vcak3N5v
kspOeqXIJO/VarvvDdwzaWSRXWOJtAnfClbIqvnQ2avUqo62ly89UzyT1ZqlPN2ICetH0XX26eq/
/Xxi0+XZhLEomrgf71VkrD+ITpmorJbCsFyrkmWiFlUmqnTvI+pevvSKa0MRapHKWpj/EuMntpSl
mLQRHryqnN3tR6ybJCyXBcJMVVkXwgp282501weZnbA+q/GCyG51fVKW67Ww5oTFQ2a2sq7pUMRK
brb+m9BaaYP0XrxcTidsLowqLsghr/aslMY5tzjO3jeiEQdgANXlS5cvPaCysoeqyuW60dxKVU2w
+mD1ZjpfzF6+YOFzj13pd+8Mu9EV7J7Pnj1aLd4t2NHuh/FoNYo7jhc48+JsOXszfbZ4sFjOZy+e
+DPnSVPZptOPu32yszybP5kuydD3dohzrbHnZw+fzl5MGTt2KCsrik6qtJCnnVGMY49mcPaSfX2M
DLV7h6xC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