| Summary: | no recipe changed, script "bitbake-whatchanged" could also list some tasks need to be updated | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ning Zhang <ning.zhang> |
| Component: | devtools / tool chain | Assignee: | Robert Yang <liezhi.yang> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | corneliux.stoicescu, meta.mr.watcher, meta.watcher, Qi.Chen, richard.purdie, sen.zhang, sgw, yi.zhao |
| Version: | 1.5 | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Ning Zhang
2013-03-14 03:19:22 UTC
I got the same error on Ubuntu 12.04. And what's worse, on Ubuntu 11.10, I got this error: bitbake -S core-image-minimal' failed with exit code 1. Here's the log from Ubuntu 11.10. Execution of 'STAMPS_DIR=/buildarea3/qchen1/poky/build-qa-warn/tmp/stamps.bbs bitbake -S core-image-minimal' failed with exit code 1: Loading cache...done. Loaded 1119 entries from dependency cache. Build Configuration: BB_VERSION = "1.17.1" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-11.10" TARGET_SYS = "i586-poky-linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.3+snapshot-20130315" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "master:365eb9b5d22208c967dcd91d8ab52faed20f04b5" NOTE: Resolving any missing task queue dependencies NOTE: Preparing runqueue NOTE: Reparsing files to collect dependency data ERROR: Bitbake'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'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'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 ... (In reply to comment #1) > I got the same error on Ubuntu 12.04. > And what's worse, on Ubuntu 11.10, I got this error: bitbake -S > core-image-minimal' failed with exit code 1. > I think that if you pull to the up to date master branch, this error will go. // Robert > Here's the log from Ubuntu 11.10. > > Execution of > 'STAMPS_DIR=/buildarea3/qchen1/poky/build-qa-warn/tmp/stamps.bbs bitbake -S > core-image-minimal' failed with exit code 1: > Loading cache...done. > Loaded 1119 entries from dependency cache. > > Build Configuration: > BB_VERSION = "1.17.1" > BUILD_SYS = "x86_64-linux" > NATIVELSBSTRING = "Ubuntu-11.10" > TARGET_SYS = "i586-poky-linux" > MACHINE = "qemux86" > DISTRO = "poky" > DISTRO_VERSION = "1.3+snapshot-20130315" > TUNE_FEATURES = "m32 i586" > TARGET_FPU = "" > meta > meta-yocto > meta-yocto-bsp = "master:365eb9b5d22208c967dcd91d8ab52faed20f04b5" > > NOTE: Resolving any missing task queue dependencies > NOTE: Preparing runqueue > NOTE: Reparsing files to collect dependency data > ERROR: Bitbake'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'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'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 ... (In reply to comment #2) > (In reply to comment #1) > > I got the same error on Ubuntu 12.04. > > And what's worse, on Ubuntu 11.10, I got this error: bitbake -S > > core-image-minimal' failed with exit code 1. > > > > I think that if you pull to the up to date master branch, this error will go. > > // Robert > Exactly. This error is gone after updating to the latest master branch. Here'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 ... There some issues exists at the moment: 1) The base-files recipe, it depends on DISTRO_VERSION which contains the DATE, but it doesn't rebuild when we run the "bitbake base-file" 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's do_install_ptest_base doesn't run since: addtask install_ptest_base after do_install before do_package and the do_package doesn'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't need to run or re-run, this because the "bitbake -S" doesn't handle the do_task[noexec] correctly. I'd like to fix them one by one in 1.5. Another enhancement is that, can the bitbake-whatchanged prints why a recipe need rebuild ? *** Bug 5567 has been marked as a duplicate of this bug. *** (In reply to comment #6) > *** 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 "bitbake -S" and sstate, need more investigations in YP 1.7, and perhaps we can use the "bitbake -S" to replace the bitbake-whatchanged. At this point bitbake-whatechanged is replaced with the functionality of bitbake -S and bitbake-diffsigs -t. I'd much prefer to focus effort on ehnancing them and maybe bitbake-whatchanged becomes a wrapper around those instead if needed. |