Bug 2363 - duplicated bash causes do_rootfs failed on Fedora 17
Summary: duplicated bash causes do_rootfs failed on Fedora 17
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2.1
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard: Pull request pending for denzil branch
Depends on:
Blocks:
 
Reported: 2012-04-23 09:02 UTC by yilong, sun
Modified: 2012-06-21 16:38 UTC (History)
10 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 yilong, sun 2012-04-23 09:02:07 UTC
With 1.2 M4 rc4, Package core-image-sato-sdk failed to do do_rootfs. File "/usr/bin/bash" does not exist 

tree/branch: poky/denzil
commit: 2c3d4f5beee8f57a74244495511b9294df1085ea

Detailed error information as follows:


Loading cache...done.
Loaded 1106 entries from dependency cache.

OE Build Configuration:
BB_VERSION        = "1.15.1"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2"
TUNE_FEATURES     = "armv5 dsp thumb arm926ejs"
TARGET_FPU        = "soft"
meta              
meta-yocto        = "1.2M4RC4:2c3d4f5beee8f57a74244495511b9294df1085ea"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 5310 of 5312 (ID: 8, /home/build/distro/poky/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rootfs)
NOTE: package core-image-sato-sdk-1.0-r0: task do_rootfs: Started
ERROR: Function failed: do_rootfs (see /home/build/distro/poky/sun/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.26189 for further information)
ERROR: Logfile of failure stored in: /home/build/distro/poky/sun/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.26189
Log data follows:
| ERROR: Function failed: do_rootfs (see /home/build/distro/poky/sun/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.26189 for further information)
| Generating solve db for /home/build/distro/poky/sun/tmp/deploy/rpm/qemuarm...
|    total:               1      0.000000 MB      5.317530 secs
|    fingerprint:      1167      0.007018 MB      0.025891 secs
|    install:           389      0.000000 MB      0.396386 secs
|    dbadd:             389      0.000000 MB      0.386922 secs
|    dbget:            2265      0.000000 MB      0.006531 secs
|    dbput:             389      1.832272 MB      0.317637 secs
|    readhdr:          3891      3.614792 MB      0.010270 secs
|    hdrload:          1945      5.359832 MB      0.008337 secs
|    hdrget:          65734      0.000000 MB      0.052076 secs
| Generating solve db for /home/build/distro/poky/sun/tmp/deploy/rpm/armv5te...
|    total:               1      0.000000 MB    280.098034 secs
|    fingerprint:     19644      0.293206 MB      1.607074 secs
|    install:          6548      0.000000 MB    110.788484 secs
|    dbadd:            6548      0.000000 MB    107.280961 secs
|    dbget:           93142      0.000000 MB      3.457003 secs
|    dbput:            6548     37.497868 MB     99.540845 secs
|    readhdr:         65481     74.710570 MB     12.302342 secs
|    hdrload:         34064    118.302074 MB      0.176929 secs
|    hdrget:        1178957      0.000000 MB      1.008717 secs
| Generating solve db for /home/build/distro/poky/sun/tmp/deploy/rpm/all...
|    total:               1      0.000000 MB      0.260048 secs
|    fingerprint:        93      0.003058 MB      0.006033 secs
|    install:            31      0.000000 MB      0.044966 secs
|    dbadd:              31      0.000000 MB      0.042438 secs
|    dbget:             515      0.000000 MB      0.001442 secs
|    dbput:              31      0.245740 MB      0.022305 secs
|    readhdr:           311      0.490136 MB      0.000793 secs
|    hdrload:           161      0.745432 MB      0.000572 secs
|    hdrget:           4539      0.000000 MB      0.003760 secs
| Generating solve db for /home/build/distro/poky/sun/tmp/deploy/rpm/all...
|    total:               1      0.000000 MB      0.301824 secs
|    fingerprint:        93      0.003058 MB      0.004835 secs
|    install:            31      0.000000 MB      0.043475 secs
|    dbadd:              31      0.000000 MB      0.041010 secs
|    dbget:             515      0.000000 MB      0.000574 secs
|    dbput:              31      0.245740 MB      0.022546 secs
|    readhdr:           311      0.490136 MB      0.000700 secs
|    hdrload:           161      0.745432 MB      0.000542 secs
|    hdrget:           4539      0.000000 MB      0.003413 secs
| Processing locale-base-en-us...
| Processing locale-base-en-gb...
| Processing task-core-boot...
| Processing task-core-apps-console...
| Processing task-core-standalone-sdk-target...
| Processing task-core-ssh-dropbear...
| Processing task-core-apps-x11-pimlico...
| Processing zypper...
| Processing task-core-tools-profile...
| Processing task-core-qt-demos...
| Processing task-core-x11-sato...
| Processing task-core-sdk...
| Processing task-core-tools-testapps...
| Processing task-core-tools-debug...
| Processing task-core-apps-x11-games...
| Processing task-core-apps-x11-core...
| Processing task-base-extended...
| Processing rpm...
| Processing task-core-x11-base...
| error: Failed dependencies:
| 	/usr/bin/bash is needed by eglibc-utils-2.13-r26+svnr15508.armv5te
| 	/usr/bin/bash is needed by quilt-0.51-r2.armv5te
NOTE: package core-image-sato-sdk-1.0-r0: task do_rootfs: Failed
ERROR: Task 8 (/home/build/distro/poky/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5311 tasks of which 5310 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/build/distro/poky/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rootfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Comment 1 Nitin Kamble 2012-04-26 00:03:27 UTC
I have fixed couple of fedora 17 related issue in the contrib branch here:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/bugfixes&id=d9a905bbfefed1df233e83c3ffdf506604be8a4f

I did not see the "bash not found" issue with the master branch.

Nitin
Comment 2 yilong, sun 2012-04-27 03:02:29 UTC
This issue still exists on poky/poky-contrib master branch.

tree/branch: poky/master
commit: c47a869308cb0cccde0b1aee9a001352c99a8395

when i used poky-contrib tree to build core-image-sato-sdk image, the build will be blocked by bug 2278
tree/branch: poky-contrib/master
commit: f81b0593e74a31cb2d992df0583948ff57e3ed98
Comment 3 Jiajun Xu 2012-04-27 15:40:17 UTC
(In reply to comment #1)
> I have fixed couple of fedora 17 related issue in the contrib branch here:
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/bugfixes&id=d9a905bbfefed1df233e83c3ffdf506604be8a4f
> I did not see the "bash not found" issue with the master branch.
> Nitin

Hi Nitin,
We are using Fedora 17 Alpha, are you using Fedora 17 Beta? We would like to install the latest version and have another try tomorrow.
Comment 4 Nitin Kamble 2012-04-27 15:51:16 UTC
I am also using fedora 17 alpha. And I am using the poky/master branch.

Nitin
Comment 5 Jiajun Xu 2012-04-28 07:51:20 UTC
(In reply to comment #4)
> I am also using fedora 17 alpha. And I am using the poky/master branch.
> Nitin

Hi Nitin,
We find that on Fedora 17, there are 2 bash commands under /bin and /usr/bin. For quilt and eglibc-utils, they check the location of bash on host and find the /usr/bin/bash, which causes such failure with do_rootfs.

Could you check if you have /usr/bin/bash on your Fedora 17?
Comment 6 Jiajun Xu 2012-05-06 12:52:10 UTC
Reopen the bug since we still see the issue with Fedora 17.
Comment 7 Nitin Kamble 2012-05-09 00:58:09 UTC
I am seeing both /bin/bash & /usr/bin/bash on fedora 17 alpha system. I am trying to reproduce the issue with the current master now.

Nitin
Comment 8 Nitin Kamble 2012-05-17 22:07:38 UTC
I don't see rootfs failing on fedora 17:

NOTE: package core-image-sato-sdk-1.0-r0: task do_rootfs: Succeeded
NOTE: Running noexec task 6637 of 6639 (ID: 5, /home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato-sdk.bb, do_build)
NOTE: Running task 6638 of 6639 (ID: 13, /home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rm_work)
NOTE: package core-image-sato-sdk-1.0-r0: task do_rm_work: Started
NOTE: package core-image-sato-sdk-1.0-r0: task do_rm_work: Succeeded
NOTE: Running task 6639 of 6639 (ID: 14, /home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rm_work_all)
NOTE: package core-image-sato-sdk-1.0-r0: task do_rm_work_all: Started
NOTE: package core-image-sato-sdk-1.0-r0: task do_rm_work_all: Succeeded
NOTE: Tasks Summary: Attempted 6639 tasks of which 3440 didn't need to be rerun and all succeeded.

Summary: There were 10 WARNING messages shown.
Comment 9 Nitin Kamble 2012-05-17 22:37:17 UTC
I tested with this commit from master:

commit d4e265661517f8dd4e1648fdc56bac5973f986f6
Author: Saul Wold <sgw@linux.intel.com>
Date:   Thu Apr 19 12:14:57 2012 -0700

    poky.conf: Change WARNS -> ERRORS

    A major effort was completed as part of 1.2 to fix many WARNING
    messages, change the level of those fixed areas to ERROR so we
    do not backslide on our quality level

    Signed-off-by: Saul Wold <sgw@linux.intel.com>
Comment 10 Nitin Kamble 2012-05-18 15:57:54 UTC
Jiajun Xu,

Can you reproduce the issue with fedora 17 with commit d4e265661517f8dd4e1648fdc56bac5973f986f6 ?
Comment 11 yilong, sun 2012-05-22 02:18:53 UTC
I can reproduce the issue on fedora 17 with commit d4e265661517f8dd4e1648fdc56bac5973f986f6.
But,the error message compared with last time is different.

Old error message:
 error: Failed dependencies:
| 	/usr/bin/bash is needed by eglibc-utils-2.13-r26+svnr15508.armv5te
| 	/usr/bin/bash is needed by quilt-0.51-r2.armv5te

New error message:
 error: Failed dependencies:
| 	/usr/bin/bash is needed by eglibc-utils-2.13-r26+svnr15508.armv5te


Do you want to remote debug this issue?
Comment 12 Nitin Kamble 2012-05-22 15:40:32 UTC
Hi Sun,
  I think remote debugging will save the time for the issue. so please send me details to enable me for remote debugging.

Thanks,
Nitin
Comment 13 Nitin Kamble 2012-05-24 18:30:33 UTC
This time I tried building core-image-sato-sdk from scratch for qemuarm machine, and still I do not see the bash related failures.
Comment 14 yilong, sun 2012-05-31 05:32:17 UTC
yes,I know the reason. you change the commit. this issue may be fixed in latest version, but in the commit(d4e265661517f8dd4e1648fdc56bac5973f986f6), this issue exists on fedora 17 alpha
Comment 15 yilong, sun 2012-05-31 05:37:36 UTC
Hi Nitin,
    I'll try this issue with latest version of poky and give the latest result.
you can remote debugging if this issue exists.
Comment 16 Nitin Kamble 2012-05-31 14:56:15 UTC
Sun,
  My testing was with the commit: d4e265661517f8dd4e1648fdc56bac5973f986f6
So your last comment does not seem right to me. and in the remote debugging I was seeing some unexpected unrelated build issues.
  As discussed before this issue is assigned to you.

Nitin
Comment 17 yilong, sun 2012-06-05 05:46:31 UTC
I build core-image-sato-sdk image failed on fedora17 with poky branch and commit 348da93e283b2b8454fd9cde80d4b17378e2a168. it caused by building gcc_4.7.
I think this issue "do_rootfs" is blocked by current gcc_4.7 build error.


Detailed error message as follows:

Loading cache...done.
Loaded 1143 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.15.2"
TARGET_ARCH       = "powerpc"
TARGET_OS         = "linux"
MACHINE           = "qemuppc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2+snapshot-20120604"
TUNE_FEATURES     = "m32 fpu-hard ppc603e"
TARGET_FPU        = ""
meta              
meta-yocto        = "test:348da93e283b2b8454fd9cde80d4b17378e2a168"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 2471 of 5418 (ID: 2743, /home/build/distro/poky/meta/recipes-qt/qt4/qt4-x11-free_4.8.1.bb, do_install)
NOTE: Running task 3852 of 5418 (ID: 1845, /home/build/distro/poky/meta/recipes-devtools/gcc/gcc_4.7.bb, do_compile)
NOTE: Running task 3907 of 5418 (ID: 1715, /home/build/distro/poky/meta/recipes-graphics/xorg-app/xhost_1.0.5.bb, do_package)
NOTE: Running task 3912 of 5418 (ID: 1705, /home/build/distro/poky/meta/recipes-graphics/xorg-app/xauth_1.0.7.bb, do_package)
NOTE: package qt4-x11-free-4.8.1-r44.1: task do_install: Started
NOTE: package xauth-1_1.0.7-r8.0: task do_package: Started
NOTE: package xhost-1_1.0.5-r8.0: task do_package: Started
NOTE: package gcc-4.7.0+svnr186651-r1: task do_compile: Started
ERROR: Function failed: do_compile (see /home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/temp/log.do_compile.14228 for further information)
ERROR: Logfile of failure stored in: /home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/temp/log.do_compile.14228
Log data follows:
| DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 ARCH_FLAGS_FOR_TARGET= -m32 -mhard-float  -mcpu=603e -isystem/home/build/distro/poky/test/tmp/sysroots/qemuppc/usr/include
| make[1]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libiberty'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/build-x86_64-linux/libiberty'
| make[3]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/build-x86_64-linux/libiberty/testsuite'
| make[3]: Nothing to be done for `all'.
| make[3]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libiberty/testsuite'
| make[3]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/build-x86_64-linux/libiberty/testsuite'
| make[3]: Nothing to be done for `all'.
| make[3]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libiberty/testsuite'
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/build-x86_64-linux/libiberty'
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libiberty'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/build-x86_64-linux/fixincludes'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/build-x86_64-linux/fixincludes'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/lto-plugin'
| make  all-am
| make[3]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/lto-plugin'
| make[3]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/lto-plugin'
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/lto-plugin'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/intl'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/intl'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/fixincludes'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/fixincludes'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libdecnumber'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libdecnumber'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libcpp'
| test -f config.h || (rm -f stamp-h1 && make stamp-h1)
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/libcpp'
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/gcc'
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/gcc'
| Checking multilib configuration for libgcc...
| make[2]: Entering directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/powerpc-poky-linux/libgcc'
| # If this is the top-level multilib, build all the other
| # multilibs.
| dest=../.././gcc/include/tmp$$-unwind.h; \
| cp unwind.h $dest; \
| chmod a+r $dest; \
| sh /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../move-if-change $dest ../.././gcc/include/unwind.h
| /home/build/distro/poky/test/tmp/sysroots/x86_64-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.7.1/nm -pg tramp_s.o | gawk 'NF == 3 && $2 !~ /^[UN]$/ && $3 !~ /.*_compat/ && $3 !~ /.*@.*/ { print "\t.hidden", $3 }' > tramp.visT
| powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/build/distro/poky/test/tmp/sysroots/qemuppc -m32 -mhard-float  -mcpu=603e -isystem/home/build/distro/poky/test/tmp/sysroots/qemuppc/usr/include    -O2 -pipe -g -feliminate-unused-debug-types -O2  -O2 -pipe -g -feliminate-unused-debug-types -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/. -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../gcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../include -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../libdecnumber/dpd -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../libdecnumber -DHAVE_CC_TLS  -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
| powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/build/distro/poky/test/tmp/sysroots/qemuppc -m32 -mhard-float  -mcpu=603e -isystem/home/build/distro/poky/test/tmp/sysroots/qemuppc/usr/include    -O2 -pipe -g -feliminate-unused-debug-types -O2  -O2 -pipe -g -feliminate-unused-debug-types -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/. -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gERROR: Function failed: do_compile (see /home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/temp/log.do_compile.14228 for further information)
| cc-4_7-branch/libgcc/../gcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../include -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../libdecnumber/dpd -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../libdecnumber -DHAVE_CC_TLS  -o _muldi3_s.o -MT _muldi3_s.o -MD -MP -MF _muldi3_s.dep -DSHARED -DL_muldi3 -c /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/libgcc2.c
| powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/build/distro/poky/test/tmp/sysroots/qemuppc -m32 -mhard-float  -mcpu=603e -isystem/home/build/distro/poky/test/tmp/sysroots/qemuppc/usr/include    -O2 -pipe -g -feliminate-unused-debug-types -O2  -O2 -pipe -g -feliminate-unused-debug-types -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/. -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../gcc -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../include -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../libdecnumber/dpd -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/../libdecnumber -DHAVE_CC_TLS  -o _negdi2_s.o -MT _negdi2_s.o -MD -MP -MF _negdi2_s.dep -DSHARED -DL_negdi2 -c /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/libgcc2.c
| /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/libgcc/unwind-dw2.c:42:21: fatal error: sys/sdt.h: No such file or directory
| compilation terminated.
| make[2]: *** [unwind-dw2.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| mv -f tramp.visT tramp.vis
| make[2]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux/powerpc-poky-linux/libgcc'
| make[1]: *** [all-target-libgcc] Error 2
| make[1]: Leaving directory `/home/build/distro/poky/test/tmp/work/ppc603e-poky-linux/gcc-4.7.0+svnr186651-r1/gcc-4_7-branch/build.powerpc-poky-linux.powerpc-poky-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
NOTE: package gcc-4.7.0+svnr186651-r1: task do_compile: Failed
ERROR: Task 1845 (/home/build/distro/poky/meta/recipes-devtools/gcc/gcc_4.7.bb, do_compile) failed with exit code '1'
Waiting for 3 running tasks to finish:
0: qt4-x11-free-4.8.1-r44.1 do_install (pid 14225)
1: xauth-1_1.0.7-r8.0 do_package (pid 14230)
2: xhost-1_1.0.5-r8.0 do_package (pid 14229)
NOTE: package xhost-1_1.0.5-r8.0: task do_package: Succeeded
Waiting for 2 running tasks to finish:
0: qt4-x11-free-4.8.1-r44.1 do_install (pid 14225)
1: xauth-1_1.0.7-r8.0 do_package (pid 14230)
NOTE: package xauth-1_1.0.7-r8.0: task do_package: Succeeded
Waiting for 1 running tasks to finish:
0: qt4-x11-free-4.8.1-r44.1 do_install (pid 14225)

Second Keyboard Interrupt, stopping...

NOTE: Sending SIGTERM to remaining 1 tasks
NOTE: Tasks Summary: Attempted 3911 tasks of which 3908 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/build/distro/poky/meta/recipes-devtools/gcc/gcc_4.7.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Comment 18 Khem Raj 2012-06-11 19:08:34 UTC
(In reply to comment #17)

> -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-
> 4_7-branch/libgcc/../libdecnumber -DHAVE_CC_TLS  -o _negdi2_s.o -MT
> _negdi2_s.o -MD -MP -MF _negdi2_s.dep -DSHARED -DL_negdi2 -c
> /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-
> branch/libgcc/libgcc2.c
> |
> /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-
> branch/libgcc/unwind-dw2.c:42:21: fatal error: sys/sdt.h: No such file or
> directory
> | compilation terminated.
> | make[2]: *** [unwind-dw2.o] Error 1
> | make[2]: *** Waiting for unfinished jobs....

gcc configure should have poked the target sysroot for presence of sys/sdt.h
and as it seems its finding that header when configuring but not when its compiling if the test was to be believed. Can you pastebin the log.do_configure
of gcc and config.log files somewhere ?

also find if sdt.h is present in your target sysroot or not
Comment 19 Jiajun Xu 2012-06-12 09:04:39 UTC
(In reply to comment #18)
> (In reply to comment #17)

>
> -I/home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-
> > 4_7-branch/libgcc/../libdecnumber -DHAVE_CC_TLS  -o _negdi2_s.o -MT
>
> _negdi2_s.o -MD -MP -MF _negdi2_s.dep -DSHARED -DL_negdi2 -c
>
> /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-
> > branch/libgcc/libgcc2.c
> |
>
> /home/build/distro/poky/test/tmp/work-shared/gcc-4.7.0+svnr186651-r1/gcc-4_7-
> > branch/libgcc/unwind-dw2.c:42:21: fatal error: sys/sdt.h: No such file or
> > directory
> | compilation terminated.
> | make[2]: *** [unwind-dw2.o]
> Error 1
> | make[2]: *** Waiting for unfinished jobs....

gcc configure
> should have poked the target sysroot for presence of sys/sdt.h
and as it
> seems its finding that header when configuring but not when its compiling if
> the test was to be believed. Can you pastebin the log.do_configure
of gcc
> and config.log files somewhere ?

also find if sdt.h is present in your
> target sysroot or not

Since the bug is not for gcc-4.7 compile issue, pls. refer to bug 2545 for the gcc issue.
Comment 20 Lianhao Lu 2012-06-14 03:20:33 UTC
This is host contamination issue resulted from do_configure, which got finally populated through do_package into final do_rootfs.

Take quilt for example, in quilt's configure.ac, it defines a m4 macro QUILT_COMPAT_PROG_PATH to detect the bash. However, this m4 macro doesn't support cross compiling, so it checks the host bash, and give out the result of "/usr/bin/bash", because on Fedora 17 Alpha, there is a /usr/bin/bash installed on host.

This "/usr/bin/bash" goes into some quilt's own script and goes into the RPM file dependency. However, during do_rootfs, we assumes the bash in target is at /bin/bash, which is not consistent with the RPM file dependency. Here we met the problem.

we probably should use "env", just like we used to do with the python environment issue.