[OE-core] [PATCH 1/1] telepathy-mission-control: do_compile failed (race issue)
Burton, Ross
ross.burton at intel.com
Mon Sep 16 23:08:56 UTC 2013
On 14 September 2013 09:49, Robert Yang <liezhi.yang at windriver.com> wrote:
> There might be an error when parallel build:
>
> [snip]
> Traceback (most recent call last):
> File "/path/to/tools/glib-gtypes-generator.py", line 304, in <module>
> GTypesGenerator(dom, argv[1], argv[2])()
> File "/path/to/tools/glib-gtypes-generator.py", line 295, in __call__
> file_set_contents(self.output + '.h', ''.join(self.header))
> File "/path/to/tools/libtpcodegen.py", line 42, in file_set_contents
> os.rename(filename + '.tmp', filename)
> OSError: [Errno 2] No such file or directory
> [snip]
>
> This is a race issue, the _gen/gtypes.h and _gen/gtypes-body.h may
> write(remove/rename) _gen/gtypes.tmp at the same time, then there would
> be the error.
>
> Use ".NOTPARALLEL: _gen/gtypes.h _gen/gtypes-body.h" will fix the
> problem.
This is going to be a game of whack-a-mole as the root cause is the
bad temporary filename assignment in libtpcodegen.py. Is there an
upstream bug for this?
Ross
More information about the Openembedded-core
mailing list