Bug 5184

Summary: telepathy-mission-control: do_compile failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: connectivityAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, mark.hatle, meta.mr.watcher, meta.watcher, sgw
Version: 1.5   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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. ***