<?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>8692</bug_id>
          
          <creation_ts>2015-11-13 16:35:48 +0000</creation_ts>
          <short_desc>unnecessary rebuilds (gcc-cross-i586)</short_desc>
          <delta_ts>2016-01-06 13:16:10 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>2.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</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>56469</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-11-13 16:35:48 +0000</bug_when>
    <thetext>I recently set up TravisCI testing of meta-intel-iot-security against OE-core and bitbake master:
https://github.com/01org/meta-intel-iot-security/commit/97432bbfe65a73fd7735112e56f1969c09389177

In that setup, &quot;bitbake m4&quot; is followed by &quot;bitbake linux-yocto&quot;.

During the second bitbake invocation, gcc-cross-i586 gets built again, although the only change is the removal of the download directory.

Here&apos;s a log:
https://travis-ci.org/01org/meta-intel-iot-security/builds/90955509

&gt; 2652 NOTE: recipe gcc-cross-i586-5.2.0-r0: task do_compile: Succeeded
&gt; ...
&gt; 3004 NOTE: recipe gcc-cross-i586-5.2.0-r0: task do_rm_work: Started
&gt; ...
&gt; 3475 NOTE: recipe gcc-cross-i586-5.2.0-r0: task do_configure: Started

To reproduce using the exact same setup (untested):
* log into Github, fork meta-intel-iot-security
* log into https://travis-ci.org/ using the Github account
* find your forked meta-intel-iot-security, enable CI for it
* check out the &quot;travis&quot; branch from the forked meta-intel-iot-security
* modify something and commit + push

To remove the sstate cache, use the &quot;Settings&quot; button in the TravisCI web page.

It should also be possible to set up something similar for plain OE-core + bitbake by adding a similar &quot;travis&quot; branch with an adapted .travis.yml and pushing to Github.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56470</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-11-13 16:38:40 +0000</bug_when>
    <thetext>This happened to me both with and without initial sstate. Without sstate (= empty cache) it should be a bit more predictable, but also slower to hit, because then &quot;bitbake m4&quot; takes a while.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56484</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-11-16 09:30:12 +0000</bug_when>
    <thetext>Turns out to be much simpler to demonstrate:

rm tmp/stamps/x86_64-linux/gcc-cross-i586/5.2.0-r0.do_configure.sigdata.*
bitbake m4 -S none
ls tmp/stamps/x86_64-linux/gcc-cross-i586/5.2.0-r0.do_configure.sigdata.*
bitbake virtual/kernel -S none
ls tmp/stamps/x86_64-linux/gcc-cross-i586/5.2.0-r0.do_configure.sigdata.*

and note that two different checksums appear. This should not happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56872</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-11-30 15:50:32 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2cb1aee04840e9ed7dc4a4952e8d883eda1feb90</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57577</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-06 13:13:18 +0000</bug_when>
    <thetext>Not reproducible using Richard steps on 2cd061a29a94fdcdfec86732e6bcbb71c12c4afc - master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>