qemu-native build fail
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.
Now, I'm confused. Is there anyone can help me out this problem? I'm build fso-gta02-testing-image, with Jaunty (ubuntu 9.04). Thanks.
NOTE: Running task 241 of 253 (ID:
8, /home/daniel/work4/fso/fso-testing/openembedded/recipes/qemu/qemu-native_svn.bb, do_compile)
NOTE: package qemu-native-0.9.1+svnr4242-r15: task do_compile: started
ERROR: function do_compile failed
ERROR: see log
in /home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/temp/log.do_compile.10467
NOTE: Task
failed: /home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/temp/log.do_compile.10467
NOTE: package qemu-native-0.9.1+svnr4242-r15: task do_compile: failed
ERROR: TaskFailed event exception, aborting
ERROR: Build
of /home/daniel/work4/fso/fso-testing/openembedded/recipes/qemu/qemu-native_svn.bb do_compile failed
ERROR: Task 8
(/home/daniel/work4/fso/fso-testing/openembedded/recipes/qemu/qemu-native_svn.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 240 tasks of which 0 didn't need to be
rerun and 1 failed.
ERROR:
'/home/daniel/work4/fso/fso-testing/openembedded/recipes/qemu/qemu-native_svn.bb' failed
From log, we can see
gcc-3.4 -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 -isystem/home/daniel/work4/fso/fso-testing/tmp/staging/i686-linux/usr/include -O2 -Wall -O2 -g -fno-strict-aliasing -m32 -c -o kqemu.o /home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/kqemu.c gcc-3.4 -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks
-fno-gcse -fno-optimize-sibling-calls -fno-crossjumping
-fno-align-labels -fno-align-jumps -fno-align-functions
-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 /home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/target-i386/ops_sse.h: In function `op_pshufw_mmx':/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/target-i386/ops_sse.h:597: error: unable to find a
register to spill in class `GENERAL_REGS'/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/target-i386/ops_sse.h:597: error: this is the insn:
(insn:HI 18 17 19
0 /home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1+svnr4242-r15/trunk/target-i386/ops_sse.h:592 (set (strict_low_part (subreg:HI (reg/v:DI 58 [ r ]) 0))
(mem/s/j:HI (plus:SI (mult:SI (reg:SI 62)
(const_int 2 [0x2]))
(reg/v/f:SI 60 [ s ])) [0 <variable>._w S2 A16])) 54
{*movstricthi_1} (insn_list 16 (insn_list 12 (insn_list 50 (nil))))
(expr_list:REG_DEAD (reg:SI 62)
(nil)))/home/daniel/work4/fso/fso-testing/tmp/work/i686-linux/qemu-native-0.9.1 +svnr4242-r15/trunk/target-i386/ops_sse.h:597: confused by earlier
errors, bailing out
make[1]: *** [op.o] Error 1
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
Signature · 2 lines
Daniel.Li <[email protected]> PALFocus (http://palfocus.oicp.net)
Quoted 8 lines · Daniel.Li
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.
Signature · 1 line
Tom Rini
Quoted 7 lines · Tom Rini
Quoted 6 lines · Daniel.Li
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.
Quoted 7 lines
Quoted 2 lines
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.
Quoted 1 line
Signature · 2 lines
Daniel.Li <[email protected]> PALFocus (http://palfocus.oicp.net)
Quoted 21 lines · Daniel.Li
Quoted 7 lines · Tom Rini
Quoted 6 lines · Daniel.Li
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.
Quoted 7 lines
Quoted 2 lines
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.
Quoted 4 lines
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.
Signature · 1 line
Tom Rini
Quoted 22 lines · Tom Rini
Quoted 21 lines · Daniel.Li
Quoted 7 lines · Tom Rini
Quoted 6 lines · Daniel.Li
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.
Quoted 7 lines
Quoted 2 lines
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.
Quoted 7 lines
Quoted 4 lines
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.
If you don't, I've pushed a fix for this to the .dev tree and will (along with another related change I'm going to RFC) propose this for stable/2009 shortly.
Signature · 1 line
Tom Rini
Quoted 22 lines · Tom Rini
Quoted 21 lines · Daniel.Li
Quoted 7 lines · Tom Rini
Quoted 6 lines · Daniel.Li
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.
Quoted 7 lines
Quoted 2 lines
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.
Quoted 7 lines
Quoted 4 lines
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@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?
Quoted 1 line
Signature · 2 lines
Daniel.Li <[email protected]> PALFocus (http://palfocus.oicp.net)
Quoted 26 lines · Daniel.Li
Quoted 25 lines · Tom Rini
Quoted 24 lines · Daniel.Li
Quoted 7 lines · Tom Rini
Quoted 6 lines · Daniel.Li
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.
Quoted 7 lines
Quoted 2 lines
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?
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
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.
OK.
[snip]
Quoted 4 lines
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"
This line is fine.
Quoted 1 line
Still failed with
[snip]
If you're using the org.openembedded.dev branch, you need to do:
bitbake -c clean qemu-native
Then try again. If you're using the fso branch you'll need to go into the openembedded dir and 'git cherry-pick 714bed6ab1174ec126ea7d8c8655d1cfd6900325' first, then do the clean.
Signature · 1 line
Tom Rini
Quoted 3 lines · Tom Rini
If you're using the org.openembedded.dev branch, you need to do:
bitbake -c clean qemu-native
Then try again.
Thanks Tom. It works :)
Signature · 2 lines
Daniel.Li <[email protected]> PALFocus (http://palfocus.oicp.net)