[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Build troubles...
From: |
C.W. Betts |
Subject: |
Re: [Qemu-devel] Build troubles... |
Date: |
Fri, 11 Apr 2008 22:08:45 -0600 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
On Friday 11 April 2008 03:09:25 am WaxDragon wrote:
> As of r4180, I'm getting this error building with gcc 3.4.6 on slackware:
>
> gcc -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/ford/src/qemu/target-i386
> -I/home/ford/src/qemu -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/ford/src/qemu/tcg
> -I/home/ford/src/qemu/tcg/i386 -I/home/ford/src/qemu/fpu -DHAS_AUDIO
> -DHAS_AUDIO_CHOICE -I/home/ford/src/qemu/slirp -c -o op.o
> /home/ford/src/qemu/target-i386/op.c
> /home/ford/src/qemu/target-i386/ops_sse.h: In function `op_pshufw_mmx':
> /home/ford/src/qemu/target-i386/ops_sse.h:597: error: unable to find a
> register to spill in class `GENERAL_REGS'
> /home/ford/src/qemu/target-i386/ops_sse.h:597: error: this is the insn:
> (insn:HI 18 17 19 0 /home/ford/src/qemu/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])) 43
> {*movstricthi_1} (insn_list 16 (insn_list 12 (insn_list 50 (nil))))
> (expr_list:REG_DEAD (reg:SI 62)
> (nil)))
> /home/ford/src/qemu/target-i386/ops_sse.h:597: confused by earlier
> errors, bailing out
> make[1]: *** [op.o] Error 1
> make[1]: Leaving directory `/home/ford/src/qemu/i386-softmmu'
> make: *** [subdir-i386-softmmu] Error 2
>
> any clues?
This is caused by the compiler optimizing for something higher than a pentium
1 processor. However, due to the current coding style of Qemu, it confuses
the compiler and makes it fail. To fix it, set the CFLAGS enviroment
variable to include -march=pentium-mmx, like so:
CFLAGS=-march=pentium-mmx ./configure
signature.asc
Description: This is a digitally signed message part.