[yocto] Fwd: Yocto 1.4: Bad behavior between rm_work and packaging causing failures?

Jerrod Peach peachj at lexmark.com
Mon Jul 8 06:25:12 PDT 2013


Re-sending as we've hit another rash of these issues and it ate up a couple
days of investigation that still led to no resolution or figuring out how
to reproduce it.  I'm going to log a bug in a day or so, even though my
information is incomplete, if no one knows what's going on here and can
explain how to avoid it (other than turning rm_work off, which I suspect
would fix the problem but cost us a bunch of disk space as a trade-off).

---------- Forwarded message ----------
From: Jerrod Peach <peachj at lexmark.com>
Date: Thu, Jun 13, 2013 at 12:28 PM
Subject: Yocto 1.4: Bad behavior between rm_work and packaging causing
failures?
To: yocto <yocto at yoctoproject.org>


All,

Since upgrading to Yocto 1.4, several people at our organization have
noticed a couple of weird build failures related to rm_work and packaging.
 Here are the two failure scenarios:

1) A user builds package, but bitbake only re-runs the do_pkg_write_rpm
task without having run any other build tasks.  This appears to be due to a
supposedly-valid stamp file existing for the other tasks in the task graph.
 This would normally result in an empty rpm being created, but the rpm
creation code (smartly) refuses to create empty rpms.  This, then, causes a
build failure during image creation (if the package is needed for the
image, of course) because the rpm isn't present.  We think this situation
leads to the second failure we see.

2) Whether a build succeeds or fails, if it's run on our build
infrastructure, we upload its sstate to an sstate mirror.  sstate is still
uploaded for the do_package_write_rpm task in case 1 for builds performed
on our infrastructure.  That means the sstate, then, contains no rpm for
the package in question.  This causes later builds to fail with the same
error as in case 1 (the rpm isn't present when the image needs it), but for
a different reason (getting a hit on poisoned sstate).

We do not know how to reproduce this problem.  We think it's related to
commit f090c15 (in the poky repo), but we haven't had much time to
investigate further.  I suspect there is only one bug to fix here (i.e.,
whatever is causing stamp files to incorrectly exist), but since there are
some number of unknowns here, I thought I'd be better off describing the
whole situation, just in case.

Has anyone else seen this?  Does anyone have ideas as to what's causing it?

Kind regards,

Jerrod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130708/e545a505/attachment.html>


More information about the yocto mailing list