Bug 222 - poky-image-sato-live build failure
Summary: poky-image-sato-live build failure
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: High major
Target Milestone: 1.0 M1
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-08-23 22:31 UTC by Kevin Tian
Modified: 2010-12-21 06:07 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Tian 2010-08-23 22:31:51 UTC
| + rm -rf /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/emenlow-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs
| + mkdir -p /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/emenlow-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs
| + mkdir -p /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/deploy/images
| + '[' 0 '!=' 1 ']'
| + for devtable in /srv/home/pokybuild/poky-slave/nightly-release/build/meta/files/device_table-minimal.txt
| + makedevs -r /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/emenlow-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs -D /srv/home/pokybuild/poky-slave/nightly-release/build/meta/files/device_table-minimal.txt
| makedevs: /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/emenlow-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs/dev/hda: file type does not match specified type!
Comment 1 Dexuan Cui 2010-08-24 22:24:00 UTC
I tried to reproduce the issue locally, but couldn't... 

1) I built the emenlow poky-image-sato-live from scratch successfully.

2) I built the emenlow poky-image-sdk-live from scratch successfully, later I built poky-image-minimal-live successfully, and finally I could also build poky-image-sato-live successfully.

I used a newer git commit: 8 commits newer than that used by the autobuilder: the issue might have been fixed by the commits?? e.g., commit ca95d02ce0dd7e1ab(package.bbclass: Fix shlibs race) by RP.
I'll watch the latest nightly build log about this.
Comment 2 Dexuan Cui 2010-09-01 17:56:45 UTC
The netbook/emenlow poky-image-sato-live builds succeed now...
The pesudo related commits might fix the issue.
Comment 3 Saul Wold 2010-09-07 15:53:36 UTC
ERROR: Task failed: ('function do_rootfs failed', '/srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/work/netbook-poky-linux/poky-image-minimal-initramfs-1.0-r0/temp/log.do_rootfs.19169')
NOTE: package poky-image-sato-1.0-r0: task do_setscene: Started
NOTE: Removing shared state for package poky-image-sato
NOTE: package poky-image-sato-1.0-r0: task do_setscene: Succeeded
ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/work/netbook-poky-linux/poky-image-minimal-initramfs-1.0-r0/temp/log.do_rootfs.19169
Log data follows:
| + rm -rf /srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/work/netbook-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs
| + mkdir -p /srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/work/netbook-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs
| + mkdir -p /srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/deploy/images
| + '[' 0 '!=' 1 ']'
| + for devtable in /srv/home/pokybuild/poky-slave/milestone-release/build/meta/files/device_table-minimal.txt
| + makedevs -r /srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/work/netbook-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs -D /srv/home/pokybuild/poky-slave/milestone-release/build/meta/files/device_table-minimal.txt
| makedevs: /srv/home/pokybuild/poky-slave/milestone-release/build/build/tmp/work/netbook-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs/dev/hda: file type does not match specified type!
NOTE: package poky-image-minimal-initramfs-1.0-r0: task do_rootfs: Failed
Comment 4 Mark Hatle 2010-09-07 16:10:44 UTC
If we can get another reproducer for this, tar up the tmp/work/... directory where the failure occurred, we need to inspect the filesystem and pseudo log files.
Comment 5 Mark Hatle 2010-09-15 18:08:48 UTC
So far we've been unable to figure out a cause for this problem.  Still looking...
Comment 6 Richard Purdie 2010-10-12 06:35:26 UTC
I have some further details on this bug:

a) I was able to reproduce on an ubuntu maverick 64 bit system

b) It seems most likely to happen when there are multiple rootfs tasks running in parallel such as when a -live image is built (the main rootfs and initramfs are built in parallel).

c) It only seems to happen every other build.

d) It is likely that the rm_work class is triggering the problem, perhaps by cleaning the rootfs directory within WORKDIR.
Comment 7 Richard Purdie 2010-10-12 06:36:43 UTC
I meant to add:

e) The bug is fastest to reproduce if the contents of do_rootfs in image.bbclass is removed after the makedevs code block. Its always the makedevs command that triggers the bug.
Comment 8 Richard Purdie 2010-10-12 06:42:09 UTC
With my established reproducible failing test case, if I stopped rm_work wiping out ${WORKDIR}/rootfs/, the bug stopped happening. I'm pretty sure this is happening due to the removal of files by rm_work outside of pseudo's knowledge.
Comment 10 Kevin Tian 2010-10-21 00:58:56 UTC
verified as autobuilder doesn't show this problem now