[poky] Configure error

Gary Thomas gary at mlbassoc.com
Tue Feb 8 07:49:01 PST 2011


On 02/08/2011 08:41 AM, Mark Hatle wrote:
> On 2/8/11 8:08 AM, Gary Thomas wrote:
>> A package I imported from OE (long ago) no longer builds
>> with this error:
>> | ERROR: This autoconf log indicates errors, it looked at host includes.
>>
>> It's not obvious to me what the problem is nor how to fix it.
>> Can someone help with this, please?
>>
>> See the logs at
>>      http://www.mlbassoc.com/poky/ConfigureFailure/config.log
>>      http://www.mlbassoc.com/poky/ConfigureFailure/log.do_configure
>>
>> Thanks
>>
>
> The check looks at the config.log.  It is looking for instances where unsafe
> compilation or include usage occurs.  In this case it wasn't actually host
> includes.. so there is a bug in the error message.  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
>
> In the above snippet you'll see 'warning: library search path "/lib" is unsafe
> for cross-compilation'.  This indicates that the package passed in a -L/lib, and
> the linker caught this and issued a warning.
>
> The fix is to figure out why the configuration file attempted to pass -L/lib,
> and stop it from occurring.
>
> Please file a bug on the log message being confusing and I'll attempt to get
> that fixed.. (or a patch)  ;)

Done, thanks.  http://bugzilla.pokylinux.org/show_bug.cgi?id=702

Now to figure out how to fix it :-)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the poky mailing list