[oe] qemu-native build fail
Daniel.Li
lida_mail at 163.com
Sun May 3 23:46:41 UTC 2009
On Sun, 2009-05-03 at 16:17 -0700, Tom Rini wrote:
> On Mon, May 04, 2009 at 07:03:03AM +0800, Daniel.Li wrote:
> > On Sun, 2009-05-03 at 09:55 -0700, Tom Rini wrote:
> > > On Sun, May 03, 2009 at 09:34:29PM +0800, Daniel.Li wrote:
> > > > Dear List,
> > > >
> > > > I have found that qemu-native failed with gcc 3.4, see below.
> > > > Originally, qemu failed with 4.* gcc, now qemu is ok with gcc3.4 but
> > > > qemu-native failed.
> > > >
> > > > I googled, only found this http://pastebin.com/f75407ece# , which seems
> > > > failed on 20 Apr.
> > >
> > > This sounds like a host-provided gcc-3.4, which isn't new enough, is
> > > being used, rather than the 3.4.6 that OE builds. I thought this had
> > > been fixed, but perhaps not. Can you confirm that you have a gcc-3.4
> > > package installed on your host? Thanks.
> >
> > Thanks Tom.
> > Yes,you are right. OE is using gcc-3.4 (host) instead of gcc-3.4 build
> > by OE.
> > Cause, I removed gcc3.4 from host, it reports command gcc3.4 not found.
> >
> > Well, I'm new to OE. Could you please let me know how to build
> > qemu-native with it's internal gcc3.4?
> >
> > Any configuration change? Thanks in advance.
>
> Do you have "ASSUME_PROVIDED += gcc3-native" or similar in your
> local.conf? If so, remove that.
It seems there is no line at all.
$ cat conf/local.conf
# require conf/distro/include/moko-autorev.inc
# require conf/distro/include/fso-autorev.inc
But I found gcc3-native in bb file, see below:
$ grep "gcc3-native" openembedded/recipes/qemu/ -R
openembedded/recipes/qemu/qemu-native.inc:DEPENDS = "libsdl-native
zlib-native gcc3-native"
So I remove gcc3-native in this file. and bitbake again.
Still failed with
NOTE: make
make -C i386-softmmu all
make[1]: Entering directory
`/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/i386-softmmu'
gcc-3.4 -Wall -O2 -g -fno-strict-aliasing
-mpreferred-stack-boundary=2 -fomit-frame-pointer -m32 -I. -I..
-I/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/target-i386 -I/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/tcg -I/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/tcg/i386 -I/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/slirp -c -o op.o /home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/target-i386/op.c
make[1]: gcc-3.4: Command not found
make[1]: *** [op.o] Error 127
make[1]: Leaving directory
`/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2
FATAL: oe_runmake failed
And I have found gcc 3.4.6 in staging dir.
daniel at daniel-laptop:~/work4/fso/fso-testing/tmp/staging/i686-linux/usr/bin$ ./gcc-3.4.6 --version
gcc-3.4.6 (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
It seems that there is something wrong with Makefile."gcc-3.4 -Wall -O2
-g -fno-strict-aliasing"
Dose it means that bb file should be changed?
>
--
Daniel.Li <lida_mail at 163.com>
PALFocus (http://palfocus.oicp.net)
More information about the Openembedded-devel
mailing list