<?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>1202</bug_id>
          
          <creation_ts>2011-06-28 01:31:20 +0000</creation_ts>
          <short_desc>ghostscript do_compile fail on autobuilder for crownbay-noemgd and qemux86-64</short_desc>
          <delta_ts>2012-03-30 01:39:03 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>dvhart</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>ke.yu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>wenhuax.fan</cc>
    
    <cc>yi.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>14440</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-06-28 01:31:20 +0000</bug_when>
    <thetext>Tree/Branch: Poky/Master
Poky Commit: a1f79a7896b6411669b3ccada6204d2695e80fc5

On autobuilder, latest build for crownbay-noemgd and qemux86-64 will fail when do_compile for ghostscript. It cause lsb image build failed. The error does not show up on my local machine.

crownbay-noemgd log: http://autobuilder.pokylinux.org:8010/builders/crownbay-noemgd/builds/7/steps/shell_14/logs/stdio

qemux86-64 log: http://autobuilder.pokylinux.org:8010/builders/nightly-internal/builds/18/steps/shell_16/logs/stdio

The error log is as below:
########
| ./obj/echogs -e .dev -w- -l-obj ./obj/simdi ./obj/imdi.o ./obj/imdi_tab.o
| ./obj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/page -l-obj ./obj/imdi ./obj/gdevimdi.o
| ./obj/echogs -e .dev -w- -l-dev2 -b -s -l-include -l./obj/page -l-obj ./obj/wtsimdi ./obj/gdevwts.o
| ./obj/echogs -e .dev -a-  ./obj/imdi -include ./obj/sicclib
| ./obj/echogs -e .dev -a-  ./obj/wtsimdi -include ./obj/sicclib
| ./obj/echogs -e .dev -a-  ./obj/imdi -include ./obj/simdi
| ./obj/echogs -e .dev -a-  ./obj/wtsimdi -include ./obj/simdi
| ./obj/genconf ./obj/devs.tr -h ./obj/gconfxx.h -p &quot;%s&amp;s&amp;&amp;&quot; -pl &quot;&amp;-l%s&amp;s&amp;&amp;&quot; -pL &quot;&amp;-L%s&amp;s&amp;&amp;&quot; -ol ./obj/ld.tr
| ./obj/echogs -a ./obj/gconfxx.h
| rm -f ./obj/gconfig.c
| rm -f ./obj/iconfig.c
| ./obj/mkromfs -o ./obj/gsromfs1_.c \
| -X .svn -X CVS -P ./base/../ iccprofiles/* \
|    \
| -c -P ./lib/../Resource/ -d Resource/ CIDFont/ CMap/* ColorSpace/* Decoding/* Encoding/* -b Font/* -c IdiomSet/* ProcSet/* Init/* -P ./lib/../Resource/Init/ -d Resource/Init/ FCOfontmap-PCLPS2 cidfmap gs_cet.ps pdf_cslayer.ps -d lib/ -P ./lib/
| rm -f ./obj/gconfig.h
| cp ./obj/gconfxx.h ./obj/gconfig.h
| cp ./obj/gconfxx.h ./obj/gconfig.h
| cp: cannot create regular file `./obj/gconfig.h&apos;: File exists
| cp ./psi/iconf.c ./obj/iconfig.c
| make: *** [obj/gconfig.o] Error 1
| make: *** Waiting for unfinished jobs....
| ccache i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builds2/pokybuild/crownbay-noemgd/build/build/tmp/sysroots/crownbay-noemgd  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE=&quot;unsigned long long&quot; -O2 -pipe -g -feliminate-unused-debug-types  -I./psi -I./obj -I./obj -I./base  -o ./obj/iconfig.o -c ./obj/iconfig.c
| compression will use 16384 byte blocksize (zlib output buffer 16412 bytes)
|    writing romfs data to &apos;./obj/gsromfs1_.c&apos;
| node &apos;iccprofiles/default_cmyk.icc&apos; len=557168 35 blocks, compressed size=382647
| node &apos;iccprofiles/default_gray.icc&apos; len=394 1 blocks, compressed size=218
| node &apos;iccprofiles/default_rgb.icc&apos; len=3144 1 blocks, compressed size=2596
########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14532</commentid>
    <comment_count>1</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-07-04 07:01:41 +0000</bug_when>
    <thetext>I find latest Yocto 1.1 M2 RC1 build has no such issue now.
crownbay noemgd: http://autobuilder.pokylinux.org:8010/builders/crownbay-noemgd/builds/9/steps/shell_14/logs/stdio

qemux86-64: http://autobuilder.pokylinux.org:8010/builders/nightly-internal/builds/21/steps/shell_16/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14535</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-07-04 18:54:45 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I find latest Yocto 1.1 M2 RC1 build has no such issue now.
&gt; crownbay noemgd:
&gt; http://autobuilder.pokylinux.org:8010/builders/crownbay-noemgd/builds/9/steps/shell_14/logs/stdio
&gt; 
&gt; qemux86-64:
&gt; http://autobuilder.pokylinux.org:8010/builders/nightly-internal/builds/21/steps/shell_16/logs/stdio

Where can I check the ghostscript compile log file(log.do_compile.xxxx) for this time? I check the failed build log and guess it is a build machine dependent issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14785</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-07-19 08:14:33 +0000</bug_when>
    <thetext>This may be a parallel make issue, possibly changing the cp to be &apos;cp -f&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15060</commentid>
    <comment_count>4</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-07-28 00:43:47 +0000</bug_when>
    <thetext>fix it with commit 052f04e460f8d697083ae4875eb20edaee7748b5

Jiajun, could you please verify it? Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15930</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-08-31 18:50:39 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; fix it with commit 052f04e460f8d697083ae4875eb20edaee7748b5
&gt; Jiajun, could you please verify it? Thank you!

The issue does not happen with local build and autobuilder. So mark it as fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16978</commentid>
    <comment_count>6</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-10-26 00:16:21 +0000</bug_when>
    <thetext>*** Bug 1698 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16979</commentid>
    <comment_count>7</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-10-26 00:20:14 +0000</bug_when>
    <thetext>With Yocto1.2 20111023 build, this issue reproduce on nightly-qemux86. Change the bug status to reopened.

Commit information as below:

Tree/branch: poky-contrib/master_under_test
Commit id: 88d7de9aa239bbb47245afc13d3a3e9689e9ebfb

Details log could be found at :

http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/199/steps/shell_79/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16980</commentid>
    <comment_count>8</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-10-26 00:21:12 +0000</bug_when>
    <thetext>Change the bug status to reopened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17399</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-25 05:05:35 +0000</bug_when>
    <thetext>This is still happening, Perhaps we should patch the makefile:
lib.mak:	$(CP_) $(gconfig_h) $(GLGEN)gconfig.h
to be:
lib.mak:	$(CP_) $(gconfig_h) $(GLGEN)gconfig.h || true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19315</commentid>
    <comment_count>10</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-03-22 01:49:17 +0000</bug_when>
    <thetext>Fixed:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=052f04e460f8d697083ae4875eb20edaee7748b5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19402</commentid>
    <comment_count>11</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-23 12:47:57 +0000</bug_when>
    <thetext>No, it is not fixed. The patch from July last year has not resolved all the issues and we have had failures occur since then. I&apos;ve also seen them locally. This bug still exists :(.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19446</commentid>
    <comment_count>12</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-24 09:40:32 +0000</bug_when>
    <thetext>This failed on last night&apos;s autobuilder run: http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/417/steps/shell_74/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19562</commentid>
    <comment_count>13</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-28 16:02:54 +0000</bug_when>
    <thetext>Fixed in master with: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c39e0dbf3baa5a0c3383b805d307f20518d5cf54</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19667</commentid>
    <comment_count>14</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-03-30 01:39:03 +0000</bug_when>
    <thetext>It seems need patch psi/int.mak too

+--- ghostscript-9.05/psi/int.mak.orig	2012-03-28 14:48:20.082048252 +0800
++++ ghostscript-9.05/psi/int.mak	2012-03-28 14:55:03.142053958 +0800
+@@ -272,7 +272,7 @@
+  $(gconf_h) $(gconfigd_h) $(gsmemory_h) $(gstypes_h)\
+  $(iminst_h) $(iref_h) $(ivmspace_h) $(opdef_h) $(iplugin_h)
+ 	$(RM_) $(PSGEN)iconfig.c
+-	$(CP_) $(gconfig_h) $(PSGEN)gconfig.h
++	$(CP_) $(gconfig_h) $(PSGEN)gconfig.h || true
+ 	$(CP_) $(PSSRC)iconf.c $(PSGEN)iconfig.c
+ 	$(PSCC) $(PSO_)iconfig.$(OBJ) $(C_) $(PSGEN)iconfig.c
+</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>