Skip to contentSkip to conversation

Build troubles...

Qemu-devel WaxDragon 2 participants 2 messages Apr 11, 2008 – Apr 12, 2008

lore
Share & tools
lore

WaxDragon

author
#0 lore raw

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?

WD

#1 lore raw
Quoted 23 lines · WaxDragon

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

(quoted diff) +0 -6
-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)))
Quoted 7 lines

/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