[OE-core] gcc errors while building core-image-sato-sdk

Martin Jansa martin.jansa at gmail.com
Wed Jul 4 15:21:11 UTC 2012


On Wed, Jul 04, 2012 at 06:06:55PM +0300, Damian, Alexandru wrote:
> I guess the problem is no lmld, (skips over), Mihai says that
> 
> - library search path "/usr/lib/cmplrs/cc2.11" is unsafe for
> cross-compilation

It's one of issues I sometimes see during gcc upgrades.. and it was
there with e.g. gcc-4.6.3 too 
http://build.shr-project.org/tests/jama/gcc-issue/gcc.issue (from Jan
14)

> is the cause.
> 
> 
> I'm unable to trace back the cc2.11 file name (path).
> 
> 
> 
> Let's take it bit by bit, we have two issues here.
> 1. - why the configure hangs from time to time (what is that c2.11 ??)
> 
> 2. - why sometimes it triggers massive rebuild even if nothing is changed.
> 
> Regarding point 2, does anybody else sees it ?
> 
> Alex
> 
> On Wed, Jul 4, 2012 at 6:02 PM, Richard Purdie <
> richard.purdie at linuxfoundation.org> wrote:
> 
> > On Wed, 2012-07-04 at 17:50 +0300, Damian, Alexandru wrote:
> > > The question wasn't why it fails, but why sometimes it goes through,
> > > why sometimes fail, and why is it retriggered
> > > without any changes to the config or files (run 5 times the
> > > core-image-sato-sdk build in a row, and at least once it will fail).
> > >
> > > I don't trust systems that are not deterministic :).
> >
> > The check runs at the end of the do_configure task.
> >
> > The config.log is generated by do_compile. If do_configure is re-run,
> > you'll hit the failure.
> >
> > > This being said:
> > >
> > > grep -C5 -e 'CROSS COMPILE Badness:' -e 'is unsafe for
> > > cross-compilation'
> > /home/ddalex/ssd/yocto/build/tmp/work/i586-poky-linux/gcc-4.7.1+svnr188658-r2/gcc-4_7-branch/build.i586-poky-linux.i586-poky-linux/gcc/config.log
> > > | return ldopen ();
> > > |   ;
> > > |   return 0;
> > > | }
> > > configure:8836: i586-poky-linux-gcc  -m32   -march=i586
> > > --sysroot=/home/ddalex/ssd/yocto/build/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/ddalex/ssd/yocto/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.7.2/ld:
> > warning: library search path "/usr/lib/cmplrs/cc2.11" is unsafe for
> > cross-compilation
> > >
> > /home/ddalex/ssd/yocto/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.7.2/ld:
> > cannot find -lmld
> > > collect2: error: ld returned 1 exit status
> > > configure:8836: $? = 1
> > > configure: failed program was:
> > > | /* confdefs.h */
> >
> > So we need it to stop looking for libmld whatever that is. Hopefully
> > there is a --disable-xxxx option we can pass in?
> >
> > Cheers,
> >
> > Richard
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> >

> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120704/a34b6dd9/attachment-0002.sig>


More information about the Openembedded-core mailing list