CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
On 9/6/07, Rumen Yotov <[EMAIL PROTECTED]> wrote: > > On (06/09/07 01:36) Marco Antônio da Veiga wrote: > > Hi, > > I'm trying to have qemu running, but compiling qemu-softmmu with > gcc-3.4.6fails. > > > > This is the error: > > > > i686-pc-linux-gnu-gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. > > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0 > /target-i386 > > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu- > 0.9.0-D_GNU_SOURCE > > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/fpu > > -DHAS_AUDIO -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0 > /work/qemu- > > 0.9.0/slirp -c -o fpu/softfloat-native.o > /var/tmp/portage/app-emulation/qemu- > > softmmu-0.9.0/work/qemu-0.9.0/fpu/softfloat-native.c > > i686-pc-linux-gnu-gcc -Wall -O2 -g -fno-strict-aliasing > -fomit-frame-pointer > > -I. -I.. -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu- > 0.9.0/target-i386 > > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu- > 0.9.0-D_GNU_SOURCE > > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/fpu > > -DHAS_AUDIO -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0 > /work/qemu- > > 0.9.0/slirp -c -o helper.o /var/tmp/portage/app-emulation/qemu- > > softmmu-0.9.0/work/qemu-0.9.0/target-i386/helper.c > > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0 > /target-i386/ops_sse.h: > > In function `op_psrlq_mmx': > > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0 > /target-i386/ops_sse.h:213: > > error: unable to find a register to spill in class `GENERAL_REGS' > > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0 > /target-i386/ops_sse.h:213: > > error: this is the insn: > > (insn:HI 36 35 37 3 /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0 > > /work/qemu-0.9.0/target-i386/ops_sse.h:207 (parallel [ > > (set (reg:DI 63 [ <variable>.q ]) > > (lshiftrt:DI (reg:DI 63 [ <variable>.q ]) > > (subreg:QI (reg/v:SI 60 [ shift ]) 0))) > > (clobber (scratch:SI)) > > (clobber (reg:CC 17 flags)) > > ]) 309 {lshrdi3_1} (insn_list 33 (insn_list 35 (nil))) > > (expr_list:REG_DEAD (reg/v:SI 60 [ shift ]) > > (expr_list:REG_UNUSED (reg:CC 17 flags) > > (expr_list:REG_UNUSED (scratch:SI) > > (nil))))) > > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0 > /target-i386/ops_sse.h:213: > > confused by earlier errors, bailing out > > make[1]: ** [op.o] Erro 1 > > make[1]: ** Esperando que outros processos terminem. > > ../softmmu_template.h: In function `__stq_mmu': > > ../softmmu_template.h:260: error: unable to find a register to spill in > > class `GENERAL_REGS' > > ../softmmu_template.h:260: error: this is the insn: > > (insn:HI 333 332 334 13 ../softmmu_template.h:290 (parallel [ > > (set (reg:DI 0 ax [210]) > > (lshiftrt:DI (reg/v:DI 59 [ val ]) > > (subreg:QI (reg:SI 0 ax [209]) 0))) > > (clobber (scratch:SI)) > > (clobber (reg:CC 17 flags)) > > ]) 309 {lshrdi3_1} (insn_list 332 (nil)) > > (expr_list:REG_DEAD (reg:SI 0 ax [209]) > > (expr_list:REG_UNUSED (reg:CC 17 flags) > > (expr_list:REG_UNUSED (scratch:SI) > > (nil))))) > > ../softmmu_template.h:260: confused by earlier errors, bailing out > > make[1]: ** [helper.o] Erro 1 > > make[1]: Saindo do diretório `/var/tmp/portage/app-emulation/qemu- > > softmmu-0.9.0/work/qemu-0.9.0/i386-softmmu' > > make: ** [subdir-i386-softmmu] Erro 2 > > > > !!! ERROR: app-emulation/qemu-softmmu-0.9.0 failed. > > Call stack: > > ebuild.sh, line 1638: Called dyn_compile > > ebuild.sh, line 985: Called qa_call 'src_compile' > > ebuild.sh, line 44: Called src_compile > > qemu-softmmu-0.9.0.ebuild, line 96: Called die > > > > !!! make failed > > !!! If you need support, post the topmost build error, and the call > stack if > > relevant. > > !!! A complete build log is located at > '/var/tmp/portage/app-emulation/qemu- > > softmmu-0.9.0/temp/build.log'. > > > > > > Can anyone help me? > Hi, > Try disabling both '-mmx -sse' USE flags. > They are not regular optional USE-flags (only 'alsa kqemu sdl' are). > So two ways to go: > 1.make a custom ebuild (/usr/local/portage/...) and disable 'mmx sse'. > 2.use bashrc (custom CFLAGS) - check ML, Google etc. > 2a.use 'paludis' :-) > What's your 'march' (in /etc/make.conf) ? > HTH. Rumen > -- > [EMAIL PROTECTED] mailing list > >