Bug 702

Summary: Incorrect error when checking for unsafe configuration
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Gary Thomas <gary>
Component: meta-yoctoAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: mark.hatle, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Gary Thomas 2011-02-08 07:48:14 UTC
Post configuration QA checks looks for uses of files/data outside the Poky build tree.  In this case, the error
  ERROR: This autoconf log indicates errors, it looked at host includes.
is misleading because it's not an host include file but a library which was incorrectly searched.  From the config.log:
  configure:7139: ccache powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/home/local/my_ppc_poky/tmp/sysroots/my8379 -o conftest -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c -ldlpi -L/lib -lpcap  >&5
  /home/local/my_ppc_poky/tmp/sysroots/i686-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.5.2/ld: warning: library search path "/lib" is unsafe for cross-compilation
  /home/local/my_ppc_poky/tmp/sysroots/i686-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.5.2/ld: cannot find -ldlpi
  /home/local/my_ppc_poky/tmp/sysroots/i686-linux/usr/libexec/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.5.2/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
  collect2: ld returned 1 exit status