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