Bug 792 - Using sstate prebuilds on another host fails with eglibc-initial do_install error
Summary: Using sstate prebuilds on another host fails with eglibc-initial do_install e...
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 PointRelease
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-02 16:20 UTC by Scott Garman
Modified: 2011-05-13 11:19 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
do_install log for eglibc-initial (139.29 KB, text/plain)
2011-03-02 16:22 UTC, Scott Garman
no flags Details
local.conf used during build (9.21 KB, text/plain)
2011-03-02 16:22 UTC, Scott Garman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Garman 2011-03-02 16:20:59 UTC
I seem unable to reuse sstate prebuilds from one machine to another.

I built poky-image-minimal from Poky master for qemux86 on my desktop machine, which runs Ubuntu 10.10. The build completed without error.

I used the same release of Poky on my laptop, which also runs Ubuntu 10.10. I ensured that my local.conf closely matched the settings from my desktop machine. I created an sstate-cache directory and transferred the sstate files over to my laptop. No TMPDIR existed.

I then tried to bitbake poky-image-minimal for qemux86 again, and the build failed on eglibc-initial with the following error during do_install:

../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory

I will attach some relevant files to this bug shortly.
Comment 1 Scott Garman 2011-03-02 16:22:26 UTC
Created attachment 102 [details]
do_install log for eglibc-initial
Comment 2 Scott Garman 2011-03-02 16:22:57 UTC
Created attachment 103 [details]
local.conf used during build
Comment 3 Scott Garman 2011-03-02 16:26:49 UTC
I am preserving this build in its current state in case I can provide more information. I encountered this problem a week or so ago and seem to recall that cleaning out the toolchain and rebuilding still resulted in failures. I can re-verify that if needed.
Comment 4 Richard Purdie 2011-03-18 18:25:02 UTC
A quick brain dump on where I'm at with sstate issues.

I've pushed two fixes which vastly improve this situation:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=16e1f1051eeb51e88244e550bfcf14a1a6ce50d1
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=273cfeccb7715890be645112966b6a7c5f35ec07

however, if I run a build, "bitbake eglibc -c compile", then move tmp to tmp-moved (i.e. rename it out the way), change to a different build directory, copy the sstate over and run "bitbake eglibc -c compile", then run "bitbake poky-image-minimal" I see a failure in eglibc do_install with "i586-poky-linux-gcc not found".

Originally, gcc-cross-intermediate was installed from sstate. As some of its tasks are missing (license task?), it gets rerun, its do_configure uninstalls the populate_sysroot output and this happens whilst the eglibc do_install is running, hence the missing compiler error.

Why? Some logic in bitbake allowing the populate_sysroot stamp to have effect, even when the task was going to get rerun anyway? Sounds like we're missing some logic somewhere...
Comment 5 Paul Eggleton 2011-03-25 10:50:05 UTC
I have a fix for this in the paule/sstate-fix2a contrib branch. I think it needs some review and more testing but it does seem to fix the issue.
Comment 6 Richard Purdie 2011-03-29 06:27:00 UTC
Fixed in master in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b4268c08c350a7928a0b1a041b04ffe5a44e77b4 (thanks to Paul!)