<?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>2300</bug_id>
          
          <creation_ts>2012-04-16 03:29:44 +0000</creation_ts>
          <short_desc>gcc-cross-initial and libgcc fails to do_patch with x32 build</short_desc>
          <delta_ts>2012-04-22 15:01:16 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</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>(1.2) Should get fixed in meta-x32 layer</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>nitin.a.kamble</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>20415</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-04-16 03:29:44 +0000</bug_when>
    <thetext>tree/branch: poky/1.2_M4
commit: fae1c7a5fdcea199338b5f91efaafd7c72aec5dd
x32 commit: da0f3ba2ee099e4b12988027d0140a7b71394092

With 1.2 M4, I find a x32 fresh build will meet a do_patch failure for gcc-cross-initial and libgcc. If I clean the 2 recipes and rebuild them, it would pass build. The error message is as below:

######
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 128 of 1220 (ID: 353, virtual:native:/distro/poky/meta/recipes-connectivity/openssl/openssl_1.0.0h.bb, do_populate_sysroot)
NOTE: Running task 136 of 1220 (ID: 919, virtual:native:/distro/poky/meta/recipes-support/libmpc/libmpc_0.8.2.bb, do_compile)
NOTE: Running task 153 of 1220 (ID: 419, /distro/poky/meta/recipes-devtools/perl/perl-native_5.14.2.bb, do_populate_sysroot)
NOTE: Running task 175 of 1220 (ID: 1210, /distro/poky/meta/recipes-devtools/gcc/gcc-cross-initial_4.6.bb, do_patch)
NOTE: Running task 198 of 1220 (ID: 597, virtual:native:/distro/poky/meta/recipes-core/ncurses/ncurses_5.9.bb, do_install)
NOTE: Running task 216 of 1220 (ID: 433, virtual:native:/distro/poky/meta/recipes-devtools/file/file_5.11.bb, do_compile)
NOTE: Running task 218 of 1220 (ID: 312, virtual:native:/distro/poky/meta/recipes-devtools/elfutils/elfutils_0.148.bb, do_compile)
NOTE: Running task 220 of 1220 (ID: 926, /distro/poky/meta/recipes-devtools/gcc/libgcc_4.6.bb, do_patch)
NOTE: package perl-native-5.14.2-r0: task do_populate_sysroot: Started
NOTE: package openssl-native-1.0.0h-r15.1: task do_populate_sysroot: Started
NOTE: package libmpc-native-0.8.2-r0: task do_compile: Started
NOTE: package gcc-cross-initial-4.6.3+svnr184847-r24.x32: task do_patch: Started
NOTE: package libgcc-4.6.3+svnr184847-r24.x32: task do_patch: Started
NOTE: package ncurses-native-5.9-r8.1: task do_install: Started
NOTE: package file-native-5.11-r0: task do_compile: Started
NOTE: package elfutils-native-0.148-r7: task do_compile: Started
ERROR: Command Error: exit status: 1  Output:
Applying patch gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch
patching file configure.ac
Hunk #1 FAILED at 3073.
1 out of 1 hunk FAILED -- rejects in file configure.ac
patching file configure
Hunk #1 FAILED at 7594.
1 out of 1 hunk FAILED -- rejects in file configure
Patch gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch can be reverse-applied
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /distro/poky/x32/tmp/work-shared/gcc-4.6.3+svnr184847-r24.x32/temp/log.do_patch.27868
NOTE: package gcc-cross-initial-4.6.3+svnr184847-r24.x32: task do_patch: Failed
ERROR: Task 1210 (/distro/poky/meta/recipes-devtools/gcc/gcc-cross-initial_4.6.bb, do_patch) failed with exit code &apos;1&apos;
Waiting for 7 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
1: openssl-native-1.0.0h-r15.1 do_populate_sysroot (pid 27865)
2: libmpc-native-0.8.2-r0 do_compile (pid 27866)
3: libgcc-4.6.3+svnr184847-r24.x32 do_patch (pid 27872)
4: ncurses-native-5.9-r8.1 do_install (pid 27869)
5: file-native-5.11-r0 do_compile (pid 27870)
6: elfutils-native-0.148-r7 do_compile (pid 27871)
ERROR: Command Error: exit status: 1  Output:
Applying patch gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch
patching file configure.ac
Hunk #1 FAILED at 3073.
1 out of 1 hunk FAILED -- rejects in file configure.ac
patching file configure
Hunk #1 FAILED at 7594.
1 out of 1 hunk FAILED -- rejects in file configure
Patch gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch can be reverse-applied
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /distro/poky/x32/tmp/work-shared/gcc-4.6.3+svnr184847-r24.x32/temp/log.do_patch.27872
NOTE: package libgcc-4.6.3+svnr184847-r24.x32: task do_patch: Failed
Waiting for 6 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
1: openssl-native-1.0.0h-r15.1 do_populate_sysroot (pid 27865)
2: libmpc-native-0.8.2-r0 do_compile (pid 27866)
3: ncurses-native-5.9-r8.1 do_install (pid 27869)
4: file-native-5.11-r0 do_compile (pid 27870)
5: elfutils-native-0.148-r7 do_compile (pid 27871)
ERROR: Task 926 (/distro/poky/meta/recipes-devtools/gcc/libgcc_4.6.bb, do_patch) failed with exit code &apos;1&apos;
NOTE: package file-native-5.11-r0: task do_compile: Succeeded
Waiting for 5 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
1: openssl-native-1.0.0h-r15.1 do_populate_sysroot (pid 27865)
2: libmpc-native-0.8.2-r0 do_compile (pid 27866)
3: ncurses-native-5.9-r8.1 do_install (pid 27869)
4: elfutils-native-0.148-r7 do_compile (pid 27871)
NOTE: package openssl-native-1.0.0h-r15.1: task do_populate_sysroot: Succeeded
Waiting for 4 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
1: libmpc-native-0.8.2-r0 do_compile (pid 27866)
2: ncurses-native-5.9-r8.1 do_install (pid 27869)
3: elfutils-native-0.148-r7 do_compile (pid 27871)
NOTE: package libmpc-native-0.8.2-r0: task do_compile: Succeeded
Waiting for 3 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
1: ncurses-native-5.9-r8.1 do_install (pid 27869)
2: elfutils-native-0.148-r7 do_compile (pid 27871)
NOTE: package elfutils-native-0.148-r7: task do_compile: Succeeded
Waiting for 2 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
1: ncurses-native-5.9-r8.1 do_install (pid 27869)
NOTE: package ncurses-native-5.9-r8.1: task do_install: Succeeded
Waiting for 1 running tasks to finish:
0: perl-native-5.14.2-r0 do_populate_sysroot (pid 27867)
NOTE: package perl-native-5.14.2-r0: task do_populate_sysroot: Succeeded
NOTE: Tasks Summary: Attempted 220 tasks of which 212 didn&apos;t need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /distro/poky/meta/recipes-devtools/gcc/gcc-cross-initial_4.6.bb, do_patch
  /distro/poky/meta/recipes-devtools/gcc/libgcc_4.6.bb, do_patch
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
######

To reproduce the issue, you could download poky master and meta-x32 and do a fresh build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20475</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-16 20:58:24 +0000</bug_when>
    <thetext>looking into it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20556</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-04-17 20:25:55 +0000</bug_when>
    <thetext>pushed a fix for this in meta-x32 layer:

http://git.yoctoproject.org/cgit/cgit.cgi/experimental/meta-x32/commit/?id=5fb541ece0812771065920c2f506d79dff9bec11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20802</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-04-22 15:01:16 +0000</bug_when>
    <thetext>I tested x32 with denzil branch with x32 commit 5fb541ece0812771065920c2f506d79dff9bec11, the issue is fixed now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>