<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3103</bug_id>
          
          <creation_ts>2012-09-13 09:24:28 +0000</creation_ts>
          <short_desc>python-pygtk do_compile failed when parallel building</short_desc>
          <delta_ts>2012-11-02 09:30:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>P3</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Song.Li">Song.Li</reporter>
          <assigned_to name="Song.Li">Song.Li</assigned_to>
          <cc>laurentiu.serban</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25148</commentid>
    <comment_count>0</comment_count>
    <who name="Song.Li">Song.Li</who>
    <bug_when>2012-09-13 09:24:28 +0000</bug_when>
    <thetext>python-pygtk do_compile failed when parallel building. This is a parallel building issue.
According to the error log, gtk-types.defs can not be found when generating gdk.c.

Looking into the python-pygtk-2.17.0-ml10/pygtk-2.17.0/gtk/Makefile, gtk-types.defs, gdk-types.defs and gdk.defs was used when generating gdk.c

.defs.c:
($(PYTHON) $(CODEGENDIR)/codegen.py \
$(PYGTK_CODEGEN_DEFINES) \
-I $(srcdir) \
--py_ssize_t-clean $(extra_codegen_args) \
--register $(top_srcdir)/pango-types.defs \
--register $(top_srcdir)/atk-types.defs \
--register gdk-types.defs \
--register gtk-types.defs \
--override $(srcdir)/$*.override \
--prefix py$* $&lt;) &gt; gen-$*.c \
&amp;&amp; cp gen-$*.c $*.c \
&amp;&amp; rm -f gen-$*.c

So, gdk.c should also depend on gtk-types.defs.

There is something wrong in gdk.c and gtk.c&apos;s rule.
gdk.c: gdk-types.defs gdk.defs $(GDK_OVERRIDES)
gtk.c: gdk-types.defs gtk-types.defs gtk.defs gdk-types.defs $(GTK_OVERRIDES)



Observed Behavior
======================

| (/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/python-native/python /buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/ti-omap3/usr/share/pygobject/2.0/codegen/codegen.py \
| -DHAVE_PYCAIRO -DHAVE_GTK_2_12 -DHAVE_GTK_2_14 -DHAVE_GTK_2_16 -DHAVE_GTK_2_18 -DGDK_TARGET_X11 \
| -I . \
| --py_ssize_t-clean --register /buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/ti-omap3/usr/share/pygobject/2.0/defs/gio-types.defs \
| --register ../pango-types.defs \
| --register ../atk-types.defs \
| --register gdk-types.defs \
| --register gtk-types.defs \
| --override ./gdk.override \
| --prefix pygdk gdk.defs) &gt; gen-gdk.c \
| &amp;&amp; cp gen-gdk.c gdk.c \
| &amp;&amp; rm -f gen-gdk.c
| Traceback (most recent call last):
| File &quot;/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/ti-omap3/usr/share/pygobject/2.0/codegen/codegen.py&quot;, line 1722, in &lt;module&gt;
| sys.exit(main(sys.argv))
| File &quot;/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/ti-omap3/usr/share/pygobject/2.0/codegen/codegen.py&quot;, line 1680, in main
| p.startParsing()
| File &quot;/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/ti-omap3/usr/share/pygobject/2.0/codegen/scmexpr.py&quot;, line 113, in startParsing
| for statement in statements:
| File &quot;/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/sysroots/ti-omap3/usr/share/pygobject/2.0/codegen/scmexpr.py&quot;, line 27, in parse
| fp = open(filename, &apos;r&apos;)
| IOError: [Errno 2] No such file or directory: &apos;gtk-types.defs&apos;
| make[2]: *** [gdk.c] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/python-pygtk-2.17.0-ml10/pygtk-2.17.0/gtk&apos;
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/python-pygtk-2.17.0-ml10/pygtk-2.17.0&apos;
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /buildarea/build/120907182410-lb13bbw-host_bitbake_world-bitbake-world/combo1-ti-omap3-standard-glibc-std/bitbake_build/tmp/work/armv7a-vfp-neon-wrs-linux-gnueabi/python-pygtk-2.17.0-ml10/temp/do_compile/log.do_compile.24370 for further information)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27175</commentid>
    <comment_count>1</comment_count>
    <who name="Song.Li">Song.Li</who>
    <bug_when>2012-11-02 03:09:51 +0000</bug_when>
    <thetext>python-pygtk has been updated to 2.24.0, this defect is for 2.17.0, not suitable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27190</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-11-02 09:30:06 +0000</bug_when>
    <thetext>Setting to Verified after reporter&apos;s comment</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>