Bug 5184 - telepathy-mission-control: do_compile failed
Summary: telepathy-mission-control: do_compile failed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M5
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
: 5056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-13 10:22 UTC by Robert Yang
Modified: 2013-09-25 09:37 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2013-09-13 10:22:06 UTC
I think that it should be a race issue so we rarely see it:

       /buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/telepathy-mission-control-5.15.0/tools/c-constants-generator.xsl \
        _gen/mcd.xml > _gen/enums.h
/buildarea/lyang1/wd/tmp/sysroots/x86_64-linux/usr/bin/python-native/python /buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/telepathy-mission-control-5.15.0/tools/glib-gtypes-generator.py \
        _gen/mcd.xml _gen/gtypes mc
xsltproc  \
        --stringparam mixed-case-prefix mc \
        /buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/telepathy-mission-control-5.15.0/tools/glib-interfaces-generator.xsl \
        _gen/mcd.xml > _gen/interfaces.h
{ echo '#include "_gen/signals-marshal.h"' && \
glib-genmarshal --body --prefix=_mcd_ext_marshal _gen/signals-marshal.list; } \
> _gen/signals-marshal.c
glib-genmarshal --header --prefix=_mcd_ext_marshal _gen/signals-marshal.list > _gen/signals-marshal.h
Traceback (most recent call last):
  File "/buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/telepathy-mission-control-5.15.0/tools/glib-gtypes-generator.py", line 304, in <module>
    GTypesGenerator(dom, argv[1], argv[2])()
  File "/buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/telepathy-mission-control-5.15.0/tools/glib-gtypes-generator.py", line 295, in __call__
    file_set_contents(self.output + '.h', ''.join(self.header))
  File "/buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/telepathy-mission-control-5.15.0/tools/libtpcodegen.py", line 42, in file_set_contents
    os.rename(filename + '.tmp', filename)
OSError: [Errno 2] No such file or directory
make[2]: *** [_gen/gtypes-body.h] Error 1
make[2]: *** Waiting for unfinished jobs....
rm _gen/dispatcher.xml _gen/Account_Interface_External_Password_Storage.xml _gen/Connection_Manager_Interface_Account_Storage.xml _gen/Account_Interface_Conditions.xml _gen/Account_Interface_Hidden.xml _gen/Account_Manager_Interface_Hidden.xml
make[2]: Leaving directory `/buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/buildarea/lyang1/wd/tmp/work/armv5te-poky-linux-gnueabi/telepathy-mission-control/5.15.0-r0/build'
make: *** [all] Error 2
ERROR: oe_runmake failed
Comment 1 Robert Yang 2013-09-13 10:27:54 UTC
I think maybe it is because of this:

src/Makefile.am:
_gen/gtypes.h _gen/gtypes-body.h: _gen/mcd.xml \
        $(top_srcdir)/tools/glib-gtypes-generator.py
        $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
                $< _gen/gtypes mc

The two rules can run parallelly, and they do the same file operation on the same file (not very sure about this atm.), need more investigation sooner.
Comment 3 Cristian Iorga 2013-09-25 09:37:48 UTC
*** Bug 5056 has been marked as a duplicate of this bug. ***