Qemu with Kqemu on Fedora Core using GCC 4.0
For whatever it is worth I get the following errors trying to compile qemu with kqemu on a Fedora Core 3 system. This system has been modified to install Eciplse and GCC 4.0 from Fedora Core 4 test 2, but is otherwise a Fedora Core 3 system.
[root@WmainLinux qemu-0.7.0]# ./configure
Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /usr/src/qemu-0.7.0 C compiler gcc make make host CPU i386 host big endian no target list i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu gprof enabled no static build no SDL support no mingw32 support no Adlib support no FMOD support no kqemu support yes
KQEMU Linux module configuration:
kernel sources /lib/modules/2.6.11-1.7_FC3.desktop_3/build
kbuild type 2.6
[root@WmainLinux qemu-0.7.0]# make
for d in i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu; do \
make -C $d all || exit 1 ; \
done
make[1]: Entering directory `/usr/src/qemu-0.7.0/i386-user'
gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -mpreferred-stack-boundary=2 -falign-functions=0 -fno-gcse -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I/usr/src/qemu-0.7.0/target-i386 -I/usr/src/qemu-0.7.0 -I/usr/src/qemu-0.7.0/linux-user -I/usr/src/qemu-0.7.0/linux-user/i386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/src/qemu-0.7.0/fpu -I/usr/src/qemu-0.7.0/slirp -c -o op.o /usr/src/qemu-0.7.0/target-i386/op.c /usr/src/qemu-0.7.0/target-i386/ops_sse.h: In function 'op_pshufw_mmx':/usr/src/qemu-0.7.0/target-i386/ops_sse.h:574: error: unable to find a register to spill in class 'GENERAL_REGS'/usr/src/qemu-0.7.0/target-i386/ops_sse.h:574: error: this is the insn:
(insn:HI 18 17 19 0 /usr/src/qemu-0.7.0/target-i386/ops_sse.h:569 (set (strict_low_part (subreg:HI (reg/v:DI 63 [ r ]) 0))
(mem/s/j:HI (plus:SI (mult:SI (reg:SI 64)
(const_int 2 [0x2]))
(reg/v/f:SI 59 [ s ])) [0 <variable>._w S2 A16])) 41 {*movstricthi_1} (insn_list:REG_DEP_TRUE 16 (insn_list:REG_DEP_TRUE 12 (insn_list:REG_DEP_TRUE 53 (nil))))
(expr_list:REG_DEAD (reg:SI 64)
(nil)))/usr/src/qemu-0.7.0/target-i386/ops_sse.h:574: confused by earlier errors, bailing out make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/usr/src/qemu-0.7.0/i386-user'
make: *** [all] Error 1
[root@WmainLinux qemu-0.7.0]#
Hi,
At the moment, QEMU does not compile with GCC 4.0.
You can find the GCC 3.x RPMS in your installation media, along with instructions how to use the GCC 3.x instead of GCC 4.
Thanks,
Hetz
Quoted 72 lines · Wayne Christian
For whatever it is worth I get the following errors trying to compile qemu with kqemu on a Fedora Core 3 system. This system has been modified to install Eciplse and GCC 4.0 from Fedora Core 4 test 2, but is otherwise a Fedora Core 3 system.
[root@WmainLinux qemu-0.7.0]# ./configure
Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /usr/src/qemu-0.7.0 C compiler gcc make make host CPU i386 host big endian no target list i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu gprof enabled no static build no SDL support no mingw32 support no Adlib support no FMOD support no kqemu support yesKQEMU Linux module configuration:
kernel sources/lib/modules/2.6.11-1.7_FC3.desktop_3/build
kbuild type 2.6
[root@WmainLinux qemu-0.7.0]# make
for d in i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu; do \
make -C $d all || exit 1 ; \
done
make[1]: Entering directory `/usr/src/qemu-0.7.0/i386-user' gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer(quoted diff) +0
-6-mpreferred-stack-boundary=2 -falign-functions=0 -fno-gcse -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I/usr/src/qemu-0.7.0/target-i386 -I/usr/src/qemu-0.7.0 -I/usr/src/qemu-0.7.0/linux-user -I/usr/src/qemu-0.7.0/linux-user/i386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/src/qemu-0.7.0/fpu -I/usr/src/qemu-0.7.0/slirp -c -o op.o
/usr/src/qemu-0.7.0/target-i386/op.c/usr/src/qemu-0.7.0/target-i386/ops_sse.h: In function 'op_pshufw_mmx':/usr/src/qemu-0.7.0/target-i386/ops_sse.h:574: error: unable to find a register to spill in class 'GENERAL_REGS'/usr/src/qemu-0.7.0/target-i386/ops_sse.h:574: error: this is the insn:
(insn:HI 18 17 19 0/usr/src/qemu-0.7.0/target-i386/ops_sse.h:569(set (strict_low_part(subreg:HI (reg/v:DI 63 [ r ]) 0))(mem/s/j:HI (plus:SI (mult:SI (reg:SI 64) (const_int 2 [0x2])) (reg/v/f:SI 59 [ s ])) [0 <variable>._w S2 A16])) 41 {*movstricthi_1} (insn_list:REG_DEP_TRUE 16 (insn_list:REG_DEP_TRUE 12 (insn_list:REG_DEP_TRUE 53 (nil)))) (expr_list:REG_DEAD (reg:SI 64) (nil)))
/usr/src/qemu-0.7.0/target-i386/ops_sse.h:574: confused by earlier errors, bailing out
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/usr/src/qemu-0.7.0/i386-user'
make: *** [all] Error 1
[root@WmainLinux qemu-0.7.0]#_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 4 lines · Hetz Ben Hamo
Hi,
At the moment, QEMU does not compile with GCC 4.0. You can find the GCC 3.x RPMS in your installation media, along with instructions how to use the GCC 3.x instead of GCC 4.
I just updated the FAQ with this issue.
Fabrice.
Quoted 8 lines · Fabrice Bellard
Quoted 5 lines · Hetz Ben Hamo
Hi,
At the moment, QEMU does not compile with GCC 4.0.
You can find the GCC 3.x RPMS in your installation media, along with instructions how to use the GCC 3.x instead of GCC 4.I just updated the FAQ with this issue.
I can't get it to compile with 2.96 either (QEMU 0.6.1 had no problems there)
-- Michael "Soruk" McConnell
Eridani Star System
MailStripper - "The easy spam filter."
http://mailstripper.eridani.co.uk/
Since we're checking which versions are working or not, just note gcc-3.3.6 and binutils-2.16 (both released 3rd May 2005) make a hell of a combination and qemu-0.7.0 works/rocks with it...
Christian
Quoted 2 lines · Michael McConnell
I can't get it to compile with 2.96 either (QEMU 0.6.1 had no problems there)