From: Saul Wold <sgw@linux.intel.com>
To: Derek Browne <derek.browne@intel.com>,
Joshua Lock <josh@linux.intel.com>
Cc: poky@yoctoproject.org
Subject: Re: ERROR: Execution of event handler 'run_buildstats' failed on non-local storage
Date: Mon, 28 Nov 2011 09:34:54 -0800 [thread overview]
Message-ID: <4ED3C63E.9060900@linux.intel.com> (raw)
In-Reply-To: <CAJa-nAwJ_EFLovm_+wr-n+WaRsDscCCfCgFtAnsCYNdy4Cx3AA@mail.gmail.com>
On 11/28/2011 09:22 AM, Derek Browne wrote:
> Hi all,
>
> I have run into an issue completing a build on non-local storage(NFS).
>
> Current configuration:
> Poky Edison branch with commit revision :
> c5bdef56175c0b6863e3d588a5a2c23cbea7b568
> Using the default local.conf configuration(qemux86) with a build
> target of core-image-minimal.
>
> An error is thrown at the beginning of the build:
>
> ERROR: Execution of event handler 'run_buildstats' failed
> Traceback (most recent call last):
> File "run_buildstats(e)", line 18, in
> run_buildstats(e=<bb.event.BuildStarted object at 0x11c3450>)
> File "buildstats.bbclass", line 21, in
> set_device(e=<bb.event.BuildStarted object at 0x11c3450>)
> UnboundLocalError: local variable 'rdev' referenced before assignment
>
This has been fixed in Master see
http://bugzilla.pokylinux.org/show_bug.cgi?id=1700
This should be a candidate for the 1.1.1 stable branch being worked on
currently also.
The fix should apply to your version of buildstats.bbclass.
Sau!
> The build then continues with the initial 126 host dependency build
> tasks, which makes it very easy to miss the error output. The build
> then stops when the 126 initial build tasks are completed and does not
> continue.
>
> Due to the build being performed on non-local storage as apposed to a
> physical drive, the build cannot access the disk statistics via
> /proc/diskstats.
>
> To make the build continue, a hack had to be introduced to the
> /poky/meta/classes/buildstats.bbclass .The disk device(rdev) was hard
> coded to an available physical drive sda1. As shown below:
>
> diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
> index 55cbb3c..8718e79 100644
> --- a/meta/classes/buildstats.bbclass
> +++ b/meta/classes/buildstats.bbclass
> @@ -52,6 +52,7 @@ def set_device(e):
> device=os.stat(tmpdir)
> majordev=os.major(device.st_dev)
> minordev=os.minor(device.st_dev)
> + rdev = "sda1"
> for line in open("/proc/diskstats", "r"):
> if majordev == int(line.split()[0]) and minordev ==
> int(line.split()[1]):
> rdev=line.split()[2]
>
>
> This allows the build to run to completion. Should I report this as a
> bug via bugzilla ?
>
> Thanks,
> Derek
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
next prev parent reply other threads:[~2011-11-28 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 17:22 ERROR: Execution of event handler 'run_buildstats' failed on non-local storage Derek Browne
2011-11-28 17:34 ` Saul Wold [this message]
2011-11-29 17:44 ` Derek Browne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED3C63E.9060900@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=derek.browne@intel.com \
--cc=josh@linux.intel.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.