Bug 2300 - gcc-cross-initial and libgcc fails to do_patch with x32 build
Summary: gcc-cross-initial and libgcc fails to do_patch with x32 build
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard: (1.2) Should get fixed in meta-x32 layer
Depends on:
Blocks:
 
Reported: 2012-04-16 03:29 UTC by Jiajun Xu
Modified: 2012-04-22 15:01 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2012-04-16 03:29:44 UTC
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 '1'
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 '1'
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'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.
Comment 1 Nitin Kamble 2012-04-16 20:58:24 UTC
looking into it
Comment 3 Jiajun Xu 2012-04-22 15:01:16 UTC
I tested x32 with denzil branch with x32 commit 5fb541ece0812771065920c2f506d79dff9bec11, the issue is fixed now.