Skip to contentSkip to conversation

Which compiler to use to compile current SVN

Qemu-devel Nigel Horne 3 participants 3 messages Apr 30, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I can't get it to build with gcc3.4:

make -C i386-softmmu all
make[1]: Entering directory `/home/njh/src/qemu/trunk/i386-softmmu'
gcc34 -Wall -O2 -fno-strict-aliasing -pipe -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/njh/src/qemu/trunk/target-i386 -I/home/njh/src/qemu/trunk -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/njh/src/qemu/trunk/tcg -I/home/njh/src/qemu/trunk/tcg/i386 -I/home/njh/src/qemu/trunk/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/njh/src/qemu/trunk/slirp -c -o op.o /home/njh/src/qemu/trunk/target-i386/op.c
/home/njh/src/qemu/trunk/target-i386/ops_sse.h: In function `op_pshufw_mmx':
/home/njh/src/qemu/trunk/target-i386/ops_sse.h:597: error: unable to find a register to spill in class `GENERAL_REGS' /home/njh/src/qemu/trunk/target-i386/ops_sse.h:597: error: this is the insn:
(insn:HI 18 17 20 0 (set (strict_low_part (subreg:HI (reg/v:DI 59 [ r ]) 0))

       (mem/s/j:HI (plus:SI (mult:SI (reg:SI 62)
                   (const_int 2 [0x2]))
               (reg/v/f:SI 61 [ 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/njh/src/qemu/trunk/target-i386/ops_sse.h:597: confused by earlier errors, bailing out make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/home/njh/src/qemu/trunk/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2

-Nigel

begin:vcard
fn:Nigel Horne
n:Horne;Nigel
org:NJH Music
adr:Pogmoor;;28 Wharfedale Road;Barnsley;South Yorkshire;S75 2LJ;UK email;internet:[email protected]
tel;fax:+44 870 705 9334
note:Skype: nigelhorne
x-mozilla-html:FALSE
url:http://www.bandsman.co.uk
version:2.1
end:vcard

#2 lore raw
Quoted 5 lines · Nigel Horne

I can't get it to build with gcc3.4:

make -C i386-softmmu all
make[1]: Entering directory `/home/njh/src/qemu/trunk/i386-softmmu' gcc34 -Wall -O2 -fno-strict-aliasing -pipe -fno-reorder-blocks

I've verified that it won't build with gcc-3.4 on Ubuntu, but will build with gcc-3.3 on Debian Stable, or Ubuntu.

gcc-3.3 is in the Ubuntu repos, so I just removed 3.4 and installed 3.3 .. gold!

Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
#3 lore raw
In reply to Nigel Horne
Quoted 20 lines

I can't get it to build with gcc3.4:

make -C i386-softmmu all
make[1]: Entering directory `/home/njh/src/qemu/trunk/i386-softmmu'

cc34 -Wall -O2 -fno-strict-aliasing -pipe -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/njh/src/qemu/trunk/target-i386
-I/home/njh/src/qemu/trunk -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/njh/src/qemu/trunk/tcg -I/home/njh/src/qemu/trunk/tcg/i386 -I/home/njh/src/qemu/trunk/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/njh/src/qemu/trunk/slirp -c -o op.o /home/njh/src/qemu/trunk/target-i386/op.c
/home/njh/src/qemu/trunk/target-i386/ops_sse.h: In function `op_pshufw_mmx':
/home/njh/src/qemu/trunk/target-i386/ops_sse.h:597: error: unable to find a register to spill in class `GENERAL_REGS' /home/njh/src/qemu/trunk/target-i386/ops_sse.h:597: error: this is the insn:
(insn:HI 18 17 20 0 (set (strict_low_part (subreg:HI (reg/v:DI 59 [ r ]) 0))

       (mem/s/j:HI (plus:SI (mult:SI (reg:SI 62)
                   (const_int 2 [0x2]))
               (reg/v/f:SI 61 [ 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 4 lines

/home/njh/src/qemu/trunk/target-i386/ops_sse.h:597: confused by earlier errors, bailing out make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/home/njh/src/qemu/trunk/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2

I am getting a similar error with r4290 and gcc-Version 3.3.6 (Debian 1:3.3.6-15)

In file included from /qemu/qemu-20080430/target-i386/op.c:433:
/qemu/qemu-20080430/target-i386/ops_mem.h: In function `op_ldub_kernel_T0_A0':
../softmmu_header.h:84: error: can't find a register in class GENERAL_REGS' while reloading asm' make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/qemu/qemu-20080430/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2

- Sebastian