Bug 2279 - Incremental and forceful configure of gcc package is failing
Summary: Incremental and forceful configure of gcc package is failing
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: layers (show other bugs)
Version: 1.2
Hardware: x86 x86
: Medium normal
Target Milestone: 1.2 M4
Assignee: venkata ramana g
QA Contact:
URL:
Whiteboard: (1.2) Patche merged into master
Depends on:
Blocks: 2194
  Show dependency tree
 
Reported: 2012-04-11 11:02 UTC by venkata ramana g
Modified: 2012-04-15 17:13 UTC (History)
4 users (show)

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


Attachments
The poky generated config log detailing the error (57.31 KB, text/plain)
2012-04-11 11:21 UTC, venkata ramana g
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description venkata ramana g 2012-04-11 11:02:28 UTC
Forceful execution of following tasks after a complete package building is giving error. 

gcc.configure 
gcc-cross-canadian-i586.configure 
gcc-cross-canadian-i586.headerfix 
gcc-cross-canadian-i586.patch 
gcc-cross-canadian-i586.unpack 
gcc.headerfix 
gcc.patch 
gcc.unpack 

steps to reproduce the issue. 

1) bitbake gcc -c cleansstate; 
2) bitbake gcc; 
3) bitbake gcc -c configure -f; 

----------------------------------------------------------
The error log is as follows 
  
bitbake gcc -c configure -f 
Loading cache: 100% |###################################################################################################################################################| ETA:  00:00:00 
Loaded 1108 entries from dependency cache. 

OE Build Configuration: 
BB_VERSION        = "1.15.1" 
TARGET_ARCH       = "i586" 
TARGET_OS         = "linux" 
MACHINE           = "qemux86" 
DISTRO            = "poky" 
DISTRO_VERSION    = "1.1+snapshot-20120411" 
TUNE_FEATURES     = "m32 i586" 
TARGET_FPU        = "" 
meta 
meta-yocto        = "<unknown>:<unknown>" 

NOTE: Resolving any missing task queue dependencies 
NOTE: Preparing runqueue 
NOTE: Executing SetScene Tasks 
NOTE: Executing RunQueue Tasks 
NOTE: Running task 313 of 313 (ID: 4, /home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/meta/recipes-devtools/gcc/gcc_4.6.bb, do_configure) 
NOTE: package gcc-4.6.3+svnr184847-r24: task do_configure: Started 
ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. 
Rerun configure task after fixing this. The path was '/home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/work/i586-poky-linux/gcc-4.6.3+svnr184847-r24/gcc-4_6-branch/build.i586-poky-linux.i586-poky-linux/gcc' 
ERROR: Function failed: do_qa_configure 
ERROR: Logfile of failure stored in: /home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/work/i586-poky-linux/gcc-4.6.3+svnr184847-r24/temp/log.do_configure.30571 
NOTE: package gcc-4.6.3+svnr184847-r24: task do_configure: Failed 
ERROR: Task 4 (/home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/meta/recipes-devtools/gcc/gcc_4.6.bb, do_configure) failed with exit code '1' 
NOTE: Tasks Summary: Attempted 313 tasks of which 312 didn't need to be rerun and 1 failed. 

Summary: 1 task failed: 
  /home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/meta/recipes-devtools/gcc/gcc_4.6.bb, do_configure 
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Comment 1 venkata ramana g 2012-04-11 11:21:36 UTC
Created attachment 459 [details]
The poky generated config log detailing the error

The poky Config log generated when execute "bitbake gcc -c configure -f" is as follows.
Comment 2 venkata ramana g 2012-04-11 11:25:08 UTC
The Error in log.Configure, "bitbake gcc -c configure -f" is as follows 
However log.configure generated when "bitbake gcc", does not have this error.
        
---------------ERROR------Log.Configure.(Detailed Log Attached)-------------
checking where to find the target ar... pre-installed in /home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/sysroots/i686-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4 
checking where to find the target as... preNOTE: Checking autotools environment for common misconfiguration 
ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. 
Rerun configure task after fixing this. The path was '/home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/work/i586-poky-linux/gcc-4.6.3+svnr184847-r24/gcc-4_6-branch/build.i586-poky-linux.i586-poky-linux/gcc' 
ERROR: Function failed: do_qa_configure 
-installed in /home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/sysroots/i686-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4 
-------------------------LOG-END--------------------------------

ANALYSIS: When I try to debug "do_qa_configure" function, the reason for the ERROR found as, "config.log" generated during compilation has "unsafe for cross-compilation" string.

------/tmp/work/i586-poky-linux/gcc-4.6.3+svn184847-r24/gcc-4_6-branch/build.i586-poky-linux.586-pky-linux/gcc/config.log--------------------
configure:8664: i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/sysroots/qemux86 -o conftest -pipe -g -feliminate-unused-debug-types   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c -L/usr/lib/cmplrs/cc2.11 -lmld >&5 
/home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/sysroots/i686-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: warning: library search path "/usr/lib/cmplrs/cc2.11" is unsafe for cross-compilation 
/home/yocto/Yocto-builds-test/poky-1.2_M4.rc2/sato-sdk-2194/tmp/sysroots/i686-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find -lmld 
collect2: ld returned 1 exit status 
configure:8664: $? = 1 
------------------------------LOG-END----------------------------

I think this analysis will help in narrowing the problem.
Comment 3 Richard Purdie 2012-04-15 17:13:13 UTC
There is a patch merged into master for this issue: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2ddf7d3e8326e8cb07101ddb2d6e5dc6866371e2