<?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>4021</bug_id>
          
          <creation_ts>2013-03-14 03:19:22 +0000</creation_ts>
          <short_desc>no recipe changed, script &quot;bitbake-whatchanged&quot; could also list some tasks need to be updated</short_desc>
          <delta_ts>2017-08-17 15:23:17 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ning Zhang">ning.zhang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sen.zhang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30685</commentid>
    <comment_count>0</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-03-14 03:19:22 +0000</bug_when>
    <thetext>branch: poky/master
git version: 4da406cd50cf02a63ed76810a670aba1eb561c79

test steps
1. create a new project. source poky/oe-init-build-env 20130313
2. modify conf/local.conf file. I choose &apos;MACHINE ?= &quot;qemuarm&quot;&apos;
3. execute &quot;bitbake core-image-sato&quot; 
4. execute &quot;bitbake-whatchanged core-image-sato&quot;. It should show no task need to be update. But I god 12 tasks need to be updated.
5. recall &quot;bitbake core-image-sato&quot;, it rebuild 3 tasks

========Test log:============
wrsadmin@pek-nzhang0-d3:/home/yocto/20130313$ bitbake-whatchanged core-image-sato
Figuring out the STAMPS_DIR ...
Generating the new stamps ... (need several minutes)
=== Newly added tasks: (5 tasks)
  glib-2.0-native: do_install_ptest_base
  core-image-sato: do_rootfs do_install do_configure do_compile

=== Dependencies changed: (7 tasks)
  base-files: do_install do_build do_populate_sysroot do_packagedata do_package do_package_write do_package_write_rpm

=== Summary: (12 changed, 4607 unchanged)
Newly added: 5
PV changed: 0
PR changed: 0
Dependencies changed: 7

Removing the newly generated stamps dir ...
wrsadmin@pek-nzhang0-d3:/home/yocto/20130313$ 

==========end================

6. i do a little analyzation. i used &quot;STAMPS_DIR=/home/yocto/20130313/tmp/stamps1.bbs bitbake -S core-image-sato&quot; to generate the tmp stamps dir, and search task &quot;do_install_ptest_base&quot; in it, could find 3 new tasks. And when i find task &quot;do_install_ptest_base&quot; in dir &quot;/home/yocto/20130313/tmp/stamps&quot;, it could list 4 tasks. But one new task &quot;./x86_64-linux/glib-2.0-native/1_2.34.3-r2.do_install_ptest_base&quot; is not exists in &quot;stamps&quot; folder. This is why the script &quot;bitbake-whatchanged&quot; lists &quot;do_install_ptest_base&quot; need to be update.


==========analyze log===================
wrsadmin@pek-nzhang0-d3:/home/yocto/20130313/tmp/stamps1.bbs$ find . -name &quot;*do_install_ptest_base*&quot;
./x86_64-linux/glib-2.0-native/1_2.34.3-r2.do_install_ptest_base.sigdata.0b35b4868a26a9918a89902e57af52bf
./armv5te-poky-linux-gnueabi/glib-2.0/1_2.34.3-r2.do_install_ptest_base.sigdata.a82d3ee907ba49ee262dbf61698cb0ea
./armv5te-poky-linux-gnueabi/bash/4.2-r6.do_install_ptest_base.sigdata.fb8d74112244cdb4ad3a4809c56ba872
wrsadmin@pek-nzhang0-d3:/home/yocto/20130313/tmp/stamps1.bbs$ 

wrsadmin@pek-nzhang0-d3:/home/yocto/20130313/tmp/stamps$ find . -name &quot;*do_install_ptest_base*&quot;
./armv5te-poky-linux-gnueabi/glib-2.0/1_2.34.3-r2.do_install_ptest_base.a82d3ee907ba49ee262dbf61698cb0ea
./armv5te-poky-linux-gnueabi/glib-2.0/1_2.34.3-r2.do_install_ptest_base.sigdata.a82d3ee907ba49ee262dbf61698cb0ea
./armv5te-poky-linux-gnueabi/bash/4.2-r6.do_install_ptest_base.sigdata.fb8d74112244cdb4ad3a4809c56ba872
./armv5te-poky-linux-gnueabi/bash/4.2-r6.do_install_ptest_base.fb8d74112244cdb4ad3a4809c56ba872
wrsadmin@pek-nzhang0-d3:/home/yocto/20130313/tmp/stamps$ 

==============end=======================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30721</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-03-15 02:34:15 +0000</bug_when>
    <thetext>I got the same error on Ubuntu 12.04.
And what&apos;s worse, on Ubuntu 11.10, I got this error: bitbake -S core-image-minimal&apos; failed with exit code 1.

Here&apos;s the log from Ubuntu 11.10.

Execution of &apos;STAMPS_DIR=/buildarea3/qchen1/poky/build-qa-warn/tmp/stamps.bbs bitbake -S core-image-minimal&apos; failed with exit code 1:
Loading cache...done.
Loaded 1119 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.17.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-11.10&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130315&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:365eb9b5d22208c967dcd91d8ab52faed20f04b5&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Reparsing files to collect dependency data
ERROR: Bitbake&apos;s cached basehash does not match the one we just generated (/buildarea3/qchen1/poky/meta/recipes-core/base-files/base-files_3.0.14.bb.do_install)!
ERROR: The mismatched hashes were 6ceb1b76ecee215d179a82789bd44254 and ccb6805d4d89ab4299616bcc88a96a82
ERROR: Bitbake&apos;s cached basehash does not match the one we just generated (/buildarea3/qchen1/poky/meta/recipes-core/images/core-image-minimal.bb.do_rootfs)!
ERROR: The mismatched hashes were 9e0067dfede351cf8b6344fe5a4c5148 and 9bd32c696b47315e63fe608141b3aa1a
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn&apos;t need to be rerun and all succeeded.

Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

=== Newly added tasks: (5 tasks)
  core-image-minimal: do_install do_rootfs do_compile do_configure
  glib-2.0-native: do_install_ptest_base

=== Dependencies changed: (7 tasks)
  base-files: do_build do_install do_populate_sysroot do_packagedata do_package do_package_write do_package_write_rpm

=== Summary: (12 changed, 1939 unchanged)
Newly added: 5
PV changed: 0
PR changed: 0
Dependencies changed: 7

Removing the newly generated stamps dir ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30722</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-03-15 02:37:30 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I got the same error on Ubuntu 12.04.
&gt; And what&apos;s worse, on Ubuntu 11.10, I got this error: bitbake -S
&gt; core-image-minimal&apos; failed with exit code 1.
&gt; 

I think that if you pull to the up to date master branch, this error will go.

// Robert

&gt; Here&apos;s the log from Ubuntu 11.10.
&gt; 
&gt; Execution of
&gt; &apos;STAMPS_DIR=/buildarea3/qchen1/poky/build-qa-warn/tmp/stamps.bbs bitbake -S
&gt; core-image-minimal&apos; failed with exit code 1:
&gt; Loading cache...done.
&gt; Loaded 1119 entries from dependency cache.
&gt; 
&gt; Build Configuration:
&gt; BB_VERSION        = &quot;1.17.1&quot;
&gt; BUILD_SYS         = &quot;x86_64-linux&quot;
&gt; NATIVELSBSTRING   = &quot;Ubuntu-11.10&quot;
&gt; TARGET_SYS        = &quot;i586-poky-linux&quot;
&gt; MACHINE           = &quot;qemux86&quot;
&gt; DISTRO            = &quot;poky&quot;
&gt; DISTRO_VERSION    = &quot;1.3+snapshot-20130315&quot;
&gt; TUNE_FEATURES     = &quot;m32 i586&quot;
&gt; TARGET_FPU        = &quot;&quot;
&gt; meta              
&gt; meta-yocto        
&gt; meta-yocto-bsp    = &quot;master:365eb9b5d22208c967dcd91d8ab52faed20f04b5&quot;
&gt; 
&gt; NOTE: Resolving any missing task queue dependencies
&gt; NOTE: Preparing runqueue
&gt; NOTE: Reparsing files to collect dependency data
&gt; ERROR: Bitbake&apos;s cached basehash does not match the one we just generated
&gt; (/buildarea3/qchen1/poky/meta/recipes-core/base-files/base-files_3.0.14.bb.
&gt; do_install)!
&gt; ERROR: The mismatched hashes were 6ceb1b76ecee215d179a82789bd44254 and
&gt; ccb6805d4d89ab4299616bcc88a96a82
&gt; ERROR: Bitbake&apos;s cached basehash does not match the one we just generated
&gt; (/buildarea3/qchen1/poky/meta/recipes-core/images/core-image-minimal.bb.
&gt; do_rootfs)!
&gt; ERROR: The mismatched hashes were 9e0067dfede351cf8b6344fe5a4c5148 and
&gt; 9bd32c696b47315e63fe608141b3aa1a
&gt; NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn&apos;t need to be rerun
&gt; and all succeeded.
&gt; 
&gt; Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
&gt; 
&gt; === Newly added tasks: (5 tasks)
&gt;   core-image-minimal: do_install do_rootfs do_compile do_configure
&gt;   glib-2.0-native: do_install_ptest_base
&gt; 
&gt; === Dependencies changed: (7 tasks)
&gt;   base-files: do_build do_install do_populate_sysroot do_packagedata
&gt; do_package do_package_write do_package_write_rpm
&gt; 
&gt; === Summary: (12 changed, 1939 unchanged)
&gt; Newly added: 5
&gt; PV changed: 0
&gt; PR changed: 0
&gt; Dependencies changed: 7
&gt; 
&gt; Removing the newly generated stamps dir ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30726</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-03-15 03:27:28 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; I got the same error on Ubuntu 12.04.
&gt; &gt; And what&apos;s worse, on Ubuntu 11.10, I got this error: bitbake -S
&gt; &gt; core-image-minimal&apos; failed with exit code 1.
&gt; &gt; 
&gt; 
&gt; I think that if you pull to the up to date master branch, this error will go.
&gt; 
&gt; // Robert
&gt; 

Exactly. This error is gone after updating to the latest master branch.

Here&apos;s the log.
bitbake-whatchanged core-image-minimal
Figuring out the STAMPS_DIR ...
Generating the new stamps ... (need several minutes)
=== Newly added tasks: (5 tasks)
  core-image-minimal: do_install do_rootfs do_compile do_configure
  glib-2.0-native: do_install_ptest_base

=== Summary: (5 changed, 1959 unchanged)
Newly added: 5
PV changed: 0
PR changed: 0
Dependencies changed: 0

Removing the newly generated stamps dir ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32194</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-16 06:05:04 +0000</bug_when>
    <thetext>There some issues exists at the moment:

1) The base-files recipe, it depends on DISTRO_VERSION which contains the DATE, but it doesn&apos;t rebuild when we run the &quot;bitbake base-file&quot; in another day. (or adjust the date manually), this causes the /etc/issue is incorrect, for example, if we build base-files in 20130410, and we build the core-image-minimal today, then the /etc/issue will still be 20130410.

2) The glib-2.0-native&apos;s do_install_ptest_base doesn&apos;t run since:

addtask install_ptest_base   after do_install   before do_package

and the do_package doesn&apos;t run when building the native package, we may need fix this.

3) The core-image-sato, the  do_rootfs needs re-run, this is correct, but the do_configure, do_compile or do_install doesn&apos;t need to run or re-run, this because the &quot;bitbake -S&quot; doesn&apos;t handle the do_task[noexec] correctly.

I&apos;d like to fix them one by one in 1.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32429</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-22 06:49:11 +0000</bug_when>
    <thetext>Another enhancement is that, can the bitbake-whatchanged prints why a recipe need rebuild ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41655</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-03-25 03:26:56 +0000</bug_when>
    <thetext>*** Bug 5567 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42130</commentid>
    <comment_count>7</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-04-02 09:08:50 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; *** Bug 5567 has been marked as a duplicate of this bug. ***

We have done that we can do in YP 1.6, currently, the following 3 tasks are still reported:

core-image-sato: do_rootfs do_install do_configure do_compile

This might be caused by the stamp creating differences between &quot;bitbake -S&quot; and sstate, need more investigations in YP 1.7, and perhaps we can use the &quot;bitbake -S&quot; to replace the bitbake-whatchanged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75958</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-08-17 15:23:17 +0000</bug_when>
    <thetext>At this point bitbake-whatechanged is replaced with the functionality of bitbake -S and bitbake-diffsigs -t. I&apos;d much prefer to focus effort on ehnancing them and maybe bitbake-whatchanged becomes a wrapper around those instead if needed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>