<br><br>On Sunday, October 2, 2011, James Limbouris &lt;<a href="mailto:james@digitalmatter.com.au">james@digitalmatter.com.au</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I&#39;m getting the following build error with gcc-cross-initial:<br>
&gt;<br>&gt; NOTE: package gcc-cross-initial-4.6.1+svnr178924-r16: task do_patch: Started<br>&gt; ERROR: Error executing a python function in /home/james/oe/sources/oe-core/meta/recipes-devtools/gcc/<a href="http://gcc-cross-initial_4.6.bb">gcc-cross-initial_4.6.bb</a>:<br>
&gt; AttributeError: &#39;module&#39; object has no attribute &#39;domain&#39;<br>&gt;<br>&gt; ERROR: The stack trace of python calls that resulted in this exception/failure was:<br>&gt; ERROR:   File &quot;patch_do_patch&quot;, line 136, in &lt;module&gt;<br>
&gt; ERROR:<br>&gt; ERROR:   File &quot;patch_do_patch&quot;, line 133, in patch_do_patch<br>&gt; ERROR:<br>&gt; ERROR:   File &quot;/home/james/oe/sources/oe-core/meta/lib/oe/patch.py&quot;, line 379, in Resolve<br>&gt; ERROR:     bb.msg.fatal(bb.msg.domain.Build, (&quot;Cannot proceed with manual patch resolution - &#39;%s&#39; not found. &quot; \<br>
&gt; ERROR:<br>&gt; ERROR: The code that was being executed was:<br>&gt; ERROR:      0132:                       raise bb.build.FuncFailed(str(sys.exc_value))<br>&gt; ERROR:      0133:               resolver.Resolve()<br>
&gt; ERROR:      0134:<br>&gt; ERROR:      0135:<br>&gt; ERROR:  *** 0136:patch_do_patch(d)<br>&gt; ERROR:      0137:<br>&gt; ERROR: (file: &#39;patch_do_patch&#39;, lineno: 136, function: &lt;module&gt;)<br>&gt; ERROR:      0129:                       patchset.Import({&quot;file&quot;:local, &quot;remote&quot;:url, &quot;strippath&quot;: striplevel}, True)<br>
&gt; ERROR:      0130:               except Exception:<br>&gt; ERROR:      0131:                       import sys<br>&gt; ERROR:      0132:                       raise bb.build.FuncFailed(str(sys.exc_value))<br>&gt; ERROR:  *** 0133:               resolver.Resolve()<br>
&gt; ERROR:      0134:<br>&gt; ERROR:      0135:<br>&gt; ERROR:      0136:patch_do_patch(d)<br>&gt; ERROR:      0137:<br>&gt; ERROR: (file: &#39;patch_do_patch&#39;, lineno: 133, function: patch_do_patch)<br>&gt; ERROR: Function &#39;patch_do_patch&#39; failed<br>
&gt; ERROR: Logfile of failure stored in: /home/james/oe/build/tmp-eglibc/work-shared/gcc-4.6.1+svnr178924-r16/temp/log.do_patch.15960<br>&gt; Log data follows:<br>&gt; | NOTE: Applying patch &#39;gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch)<br>
&gt; | NOTE: Applying patch &#39;100-uclibc-conf.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/100-uclibc-conf.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-uclibc-locale-ctype_touplow_t.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-uclibc-locale-ctype_touplow_t.patch)<br>
&gt; | NOTE: Applying patch &#39;cache-amnesia.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/cache-amnesia.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-flags-for-build.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch)<br>
&gt; | NOTE: Applying patch &#39;103-uclibc-conf-noupstream.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/103-uclibc-conf-noupstream.patch)<br>&gt; | NOTE: Applying patch &#39;200-uclibc-locale.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/200-uclibc-locale.patch)<br>
&gt; | NOTE: Applying patch &#39;203-uclibc-locale-no__x.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/203-uclibc-locale-no__x.patch)<br>&gt; | NOTE: Applying patch &#39;204-uclibc-locale-wchar_fix.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/204-uclibc-locale-wchar_fix.patch)<br>
&gt; | NOTE: Applying patch &#39;205-uclibc-locale-update.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/205-uclibc-locale-update.patch)<br>&gt; | NOTE: Applying patch &#39;301-missing-execinfo_h.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/301-missing-execinfo_h.patch)<br>
&gt; | NOTE: Applying patch &#39;302-c99-snprintf.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/302-c99-snprintf.patch)<br>&gt; | NOTE: Applying patch &#39;303-c99-complex-ugly-hack.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/303-c99-complex-ugly-hack.patch)<br>
&gt; | NOTE: Applying patch &#39;304-index_macro.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/304-index_macro.patch)<br>&gt; | NOTE: Applying patch &#39;305-libmudflap-susv3-legacy.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/305-libmudflap-susv3-legacy.patch)<br>
&gt; | NOTE: Applying patch &#39;306-libstdc++-namespace.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/306-libstdc++-namespace.patch)<br>&gt; | NOTE: Applying patch &#39;740-sh-pr24836.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/740-sh-pr24836.patch)<br>
&gt; | NOTE: Applying patch &#39;800-arm-bigendian.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/800-arm-bigendian.patch)<br>&gt; | NOTE: Applying patch &#39;904-flatten-switch-stmt-00.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/904-flatten-switch-stmt-00.patch)<br>
&gt; | NOTE: Applying patch &#39;arm-nolibfloat.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/arm-nolibfloat.patch)<br>&gt; | NOTE: Applying patch &#39;arm-softfloat.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/arm-softfloat.patch)<br>
&gt; | NOTE: Applying patch &#39;zecke-xgcc-cpp.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/zecke-xgcc-cpp.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-poison-system-directories.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-poison-system-directories.patch)<br>
&gt; | NOTE: Applying patch &#39;gcc-poison-dir-extend.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-poison-dir-extend.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch)<br>
&gt; | NOTE: Applying patch &#39;64bithack.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/64bithack.patch)<br>&gt; | NOTE: Applying patch &#39;optional_libstdc.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/optional_libstdc.patch)<br>
&gt; | NOTE: Applying patch &#39;disable_relax_pic_calls_flag.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/disable_relax_pic_calls_flag.patch)<br>&gt; | NOTE: Applying patch &#39;GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch)<br>
&gt; | NOTE: Applying patch &#39;COLLECT_GCC_OPTIONS.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/COLLECT_GCC_OPTIONS.patch)<br>&gt; | NOTE: Applying patch &#39;volatile_access_backport.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/volatile_access_backport.patch)<br>
&gt; | NOTE: Applying patch &#39;use-defaults.h-and-t-oe-in-B.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/use-defaults.h-and-t-oe-in-B.patch)<br>&gt; | NOTE: Applying patch &#39;powerpc-e5500.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/powerpc-e5500.patch)<br>
&gt; | NOTE: Applying patch &#39;fix-for-ice-50099.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/fix-for-ice-50099.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-with-linker-hash-style.patch&#39; (sources/oe-core/meta/recipes-devtools/gcc/gcc-4.6/gcc-with-linker-hash-style.patch)<br>
&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106720.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106720.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106723.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106723.patch)<br>
&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106729.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106729.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106733.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106733.patch)<br>
&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106737.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106737.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106738.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106738.patch)<br>
&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106739.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106739.patch)<br>&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106740.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106740.patch)<br>
&gt; | NOTE: Applying patch &#39;gcc-4.6-linaro-r106741.patch&#39; (sources/meta-oe/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106741.patch)<br>&gt; | xterm Xt error: Can&#39;t open display:<br>&gt; | xterm:  DISPLAY is not set<br>
&gt; | ERROR: Error executing a python function in /home/james/oe/sources/oe-core/meta/recipes-devtools/gcc/<a href="http://gcc-cross-initial_4.6.bb">gcc-cross-initial_4.6.bb</a>:<br>&gt; | AttributeError: &#39;module&#39; object has no attribute &#39;domain&#39;<br>
&gt; |<br>&gt; | ERROR: The stack trace of python calls that resulted in this exception/failure was:<br>&gt; | ERROR:   File &quot;patch_do_patch&quot;, line 136, in &lt;module&gt;<br>&gt; | ERROR:<br>&gt; | ERROR:   File &quot;patch_do_patch&quot;, line 133, in patch_do_patch<br>
&gt; | ERROR:<br>&gt; | ERROR:   File &quot;/home/james/oe/sources/oe-core/meta/lib/oe/patch.py&quot;, line 379, in Resolve<br>&gt; | ERROR:     bb.msg.fatal(bb.msg.domain.Build, (&quot;Cannot proceed with manual patch resolution - &#39;%s&#39; not found. &quot; \<br>
&gt; | ERROR:<br>&gt; | ERROR: The code that was being executed was:<br>&gt; | ERROR:      0132:                     raise bb.build.FuncFailed(str(sys.exc_value))<br>&gt; | ERROR:      0133:             resolver.Resolve()<br>
&gt; | ERROR:      0134:<br>&gt; | ERROR:      0135:<br>&gt; | ERROR:  *** 0136:patch_do_patch(d)<br>&gt; | ERROR:      0137:<br>&gt; | ERROR: (file: &#39;patch_do_patch&#39;, lineno: 136, function: &lt;module&gt;)<br>&gt; | ERROR:      0129:                     patchset.Import({&quot;file&quot;:local, &quot;remote&quot;:url, &quot;strippath&quot;: striplevel}, True)<br>
&gt; | ERROR:      0130:             except Exception:<br>&gt; | ERROR:      0131:                     import sys<br>&gt; | ERROR:      0132:                     raise bb.build.FuncFailed(str(sys.exc_value))<br>&gt; | ERROR:  *** 0133:             resolver.Resolve()<br>
&gt; | ERROR:      0134:<br>&gt; | ERROR:      0135:<br>&gt; | ERROR:      0136:patch_do_patch(d)<br>&gt; | ERROR:      0137:<br>&gt; | ERROR: (file: &#39;patch_do_patch&#39;, lineno: 133, function: patch_do_patch)<br>&gt; | ERROR: Function &#39;patch_do_patch&#39; failed<br>
&gt; NOTE: package gcc-cross-initial-4.6.1+svnr178924-r16: task do_patch: Failed<br>&gt; ERROR: Task 2 (/home/james/oe/sources/oe-core/meta/recipes-devtools/gcc/<a href="http://gcc-cross-initial_4.6.bb">gcc-cross-initial_4.6.bb</a>, do_patch) failed with exit code &#39;1&#39;<br>
&gt; ERROR: &#39;/home/james/oe/sources/oe-core/meta/recipes-devtools/gcc/<a href="http://gcc-cross-initial_4.6.bb">gcc-cross-initial_4.6.bb</a>&#39; failed<br>&gt;   <br>&gt;<br>&gt; I&#39;m not sure why the manual patch resolution isn&#39;t working - does it work for other people?<br>
&gt; When I try to apply the patch manually, I get the following hunk failure in gcc/combine.c:<br>&gt;<br>&gt; ***************<br>&gt; *** 5629,5635 ****<br>&gt;        {<br>&gt;          /* Try to simplify the expression further.  */<br>
&gt;          rtx tor = simplify_gen_binary (IOR, mode, XEXP (x, 0), XEXP (x, 1));<br>&gt; -         temp = combine_simplify_rtx (tor, mode, in_dest);<br>&gt;<br>&gt;          /* If we could, great.  If not, do not go ahead with the IOR<br>
&gt;             replacement, since PLUS appears in many special purpose<br>&gt; --- 5635,5641 ----<br>&gt;        {<br>&gt;          /* Try to simplify the expression further.  */<br>&gt;          rtx tor = simplify_gen_binary (IOR, mode, XEXP (x, 0), XEXP (x, 1));<br>
&gt; +         temp = combine_simplify_rtx (tor, mode, in_dest, 0);<br>&gt;<br>&gt;          /* If we could, great.  If not, do not go ahead with the IOR<br>&gt;             replacement, since PLUS appears in many special purpose<br>
&gt;<br>&gt; Which again is a bit confusing - I can&#39;t see any reason why the patch shouldn&#39;t apply.<br><br>I have posted a patch for meta-oe which you should cherry pick. The oe-core gcc has been updated and meta oe needed to be adjusted too<br>
&gt;<br>&gt; Regards,<br>&gt; James Limbouris<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Openembedded-core mailing list<br>&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>&gt;