Bug 2156

Summary: git-native rebuild fails
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Denys Dmytriyenko <denis>
Component: meta-yoctoAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, jessica.zhang, liezhi.yang, poky.bs.watcher, poky.watcher, richard.purdie
Version: unspecified   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (1.2) patch review 30%
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 2194    

Description Denys Dmytriyenko 2012-03-22 18:33:14 UTC
As previously reported on IRC by otavio, I see the same issue (sstate related?), when _rebuilding_ git-native. Clean build works.


ERROR: Function failed: do_compile (see /OE/build/tmp-eglibc/work/i686-linux/git-native-1.7.7-r2/temp/log.do_compile.32225 for further information)
ERROR: Logfile of failure stored in: /OE/build/tmp-eglibc/work/i686-linux/git-native-1.7.7-r2/temp/log.do_compile.32225
Log data follows:
| ERROR: Function failed: do_compile (see /OE/build/tmp-eglibc/work/i686-linux/git-native-1.7.7-r2/temp/log.do_compile.32225 for further information)
| NOTE: make -j16
|     SUBDIR gitweb
|     SUBDIR ../
| make[2]: `GIT-VERSION-FILE' is up to date.
|     GEN git-instaweb
|     SUBDIR perl
| Makefile out-of-date with respect to /OE/build/tmp-eglibc/sysroots/i686-linux/usr/lib/perl-native/perl/5.14.2/Config.pm /OE/build/tmp-eglibc/sysroots/i686-linux/usr/lib/perl-native/perl/5.14.2/CORE/config.h
| Cleaning current config before rebuilding Makefile...
| make -f perl.mak.old clean > /dev/null 2>&1
| /OE/build/tmp-eglibc/sysroots/i686-linux/usr/bin/perl-native/perl Makefile.PL "PREFIX=/OE/build/tmp-eglibc/sysroots/i686-linux/usr" "INSTALL_BASE="
| Writing perl.mak for Git
| Writing MYMETA.yml
| ==> Your Makefile has been rebuilt. <==
| ==> Please rerun the make command.  <==
| false
| make[2]: *** [perl.mak] Error 1
| make[1]: *** [all] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
NOTE: package git-native-1.7.7-r2: task do_compile: Failed
ERROR: Task 37 (virtual:native:/OE/sources/openembedded-core/meta/recipes-devtools/git/git_1.7.7.bb, do_compile) failed with exit code '1'
Comment 1 Robert Yang 2012-04-05 03:41:48 UTC
I tried:

bitbake -f git-native -ccompile

in the second build, it worked well, would you please tell me more information:

1) which host
2) The detailed reproduce steps
Comment 2 Richard Purdie 2012-04-06 14:46:30 UTC
To reproduce this:

bitbake git-native
bitbake perl-native -c cleansstate
bitbake git-native -c compile -f

The problem is that rebuilding perl-native, then rebuilding git-native (or perl, then git) causes the build to fail.
Comment 3 Paul Eggleton 2012-04-11 12:32:23 UTC
Fixed in revision b0550403d4e499a6c165c03825d3e4f9e2a750ad.