<?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>2319</bug_id>
          
          <creation_ts>2012-04-17 17:32:08 +0000</creation_ts>
          <short_desc>gthumb: do_install hangs on highly parallel builds</short_desc>
          <delta_ts>2012-08-30 12:22:25 +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>multimedia</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P1)(Patch Review)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mihai.lindner</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>20553</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-17 17:32:08 +0000</bug_when>
    <thetext>OE Build Configuration:
BB_VERSION        = &quot;1.15.1&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.1+snapshot-20120417&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;dvhart/tiny:c1922f73308b4c2ef021c55adb3cdc0f25cb45bc&quot;


gthumb do_install will hang with make running at 100% CPU. At RP&apos;s suggestion I set PARALLEL_MAKEINST=&quot;&quot; in the gthumb recipe and it successfully installed. This may or may not be related to Bug 2245 (gthumb fails to install configration files correctly).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22801</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-04 15:46:34 +0000</bug_when>
    <thetext>I&apos;m pretty sure that this was due to the gconftool race.  At least I can&apos;t replicate the failure after fixing gconf.bbclass with -j8 when I remove PARALLEL_MAKEINST.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22803</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-04 17:08:56 +0000</bug_when>
    <thetext>Patch sent to oe-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22804</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-04 19:13:22 +0000</bug_when>
    <thetext>Sadly I&apos;ve just seen gthumb hang in compile so there is a problem with this recipe. This was with Ross&apos; gconf changes applied. ps ax shows:

30934 pts/2    S+     0:00 /bin/sh /media/build1/poky/scripts/bitbake gthumb -c install
30952 pts/2    S+     0:01 python /media/build1/poky/bitbake/bin//bitbake gthumb -c install
30953 pts/2    Sl+    0:07 python /media/build1/poky/bitbake/bin//bitbake gthumb -c install
31048 pts/2    S      0:00 python /media/build1/poky/bitbake/bin//bitbake gthumb -c install
31049 pts/2    S      0:00 /bin/sh -e /media/build1/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gth
31050 pts/2    S      0:00 make -j 24
31053 pts/2    S      0:00 make all-recursive
31054 pts/2    S      0:00 /bin/bash -c fail= failcom=&apos;exit 1&apos;; \?for f in x $MAKEFLAGS; do \?  case $f in \? 
31185 pts/2    S      0:00 /bin/bash -c fail= failcom=&apos;exit 1&apos;; \?for f in x $MAKEFLAGS; do \?  case $f in \? 
31186 pts/2    S      0:00 make all
31187 pts/2    S      0:00 /bin/bash -c fail= failcom=&apos;exit 1&apos;; \?for f in x $MAKEFLAGS; do \?  case $f in \? 
31322 pts/2    S      0:00 /bin/bash -c fail= failcom=&apos;exit 1&apos;; \?for f in x $MAKEFLAGS; do \?  case $f in \? 
31323 pts/2    S      0:00 make all
31331 pts/2    S      0:00 make all-recursive
31332 pts/2    S      0:00 /bin/bash -c fail= failcom=&apos;exit 1&apos;; \?for f in x $MAKEFLAGS; do \?  case $f in \? 
31345 pts/2    R      3:11 make all-am
31364 pts/1    S      0:00 bash
31429 pts/1    R+     0:00 ps ax

and the build log is pretty unhelpful. I&apos;ll try and figure this out further.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22805</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-04 20:13:04 +0000</bug_when>
    <thetext>Hmpf.

I&apos;ll try with -j24 tomorrow.  I wonder what in the makefile is tripping up and spinning, from memory there wasn&apos;t anything complicated in it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22813</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-04 21:37:55 +0000</bug_when>
    <thetext>I&apos;m pretty sure there is some bug in the glib-mkenum usage in gthumb&apos;s makefiles. Removing all the glib-mkenum usage makes things work. With it left as is, it wants to rexecute these targets multiple times per build and bombs out with anything other than &quot;make&quot;. Even make -j 2 fails. It seems to be the fact they&apos;re listed in BUILD_SOURCES which means &quot;make all&quot; triggers them first and this interacts badly somehow with make all-recursive.

It seems these things are hard to get right and I noticed:

https://bugzilla.gnome.org/show_bug.cgi?id=654395
https://mail.gnome.org/archives/networkmanager-list/2012-February/msg00070.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22814</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-04 21:57:33 +0000</bug_when>
    <thetext>To confirm, the problem is in sections like:

enum-types.h: $(HEADER_FILES) $(GLIB_MKENUMS)
	$(AM_V_GEN)( $(GLIB_MKENUMS) \
		--fhead &quot;#ifndef ENUM_TYPES_H\n#define ENUM_TYPES_H\n\n#include &lt;glib-object.h&gt;\n\nG_BEGIN_DECLS\n&quot; \
		--fprod &quot;/* enumerations from \&quot;@filename@\&quot; */\n&quot; \
		--vhead &quot;GType @enum_name@_get_type (void);\n#define GTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n&quot; \
		--ftail &quot;G_END_DECLS\n\n#endif /* ENUM_TYPES_H */&quot; \
		$^&gt; xgen-$(@F) \
	&amp;&amp; (cmp -s xgen-$(@F) enum-types.h || cp xgen-$(@F) enum-types.h ) \
	&amp;&amp; rm -f xgen-$(@F) )

where adding a &quot;touch enum-types.h&quot; to the end works around the problem. make is hanging waiting for the file to get updated but never sees the timestamp change it wants as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22815</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-07-04 22:24:33 +0000</bug_when>
    <thetext>and finally a reproducer note. Try &quot;touch xxxx/glib-mkenum&quot; where xxxx is the path within the sysroot (pretend glib was reinstalled), then force a recompile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23666</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-31 15:57:18 +0000</bug_when>
    <thetext>I totally have a patch for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23675</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-31 17:14:02 +0000</bug_when>
    <thetext>Patch sent to oe-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23842</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-08-06 21:21:42 +0000</bug_when>
    <thetext>This was merged earlier today.

(From OE-Core rev: dea6a0eb2bf06b3dc47e276a046d8dd828e47228)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24663</commentid>
    <comment_count>11</comment_count>
    <who name="Mihai Lindner">mihai.lindner</who>
    <bug_when>2012-08-30 12:22:25 +0000</bug_when>
    <thetext>Cannot reproduce with current master and `bitbake ghtumb`.

BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120830&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;master:bb0aab79e488a99cb1b43f72f0e8ddbe39d97519&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>