我在 http://fabrice.bellard.free.fr/qemu/download.html 下载了 qemu-0.8.0.tar.gz 和 kqemu-0.7.2.tar.gz
然后这样做了:
tar zxvf qemu-0.8.0.tar.gz
tar zxvf kqemu-0.7.2.tar.gz
cp -R kqemu qemu-0.8.0/
cd qemu-0.8.0
./configure
出现如下信息:
ERROR: "gcc" looks like gcc 4.x
QEMU is known to have problems when compiled with gcc 4.x
It is recommended that you use gcc 3.x to build QEMU
To use this compiler anyway, configure with --disable-gcc-check
然后,我运行:
./configure --disable-gcc-check
输出信息的最后部分是:
KQEMU Linux module configuration:
kernel sources /lib/modules/2.6.8-2-386/build
kbuild type 2.6
然后:
make
出现错误如下:
p -c -o op.o /root/qemu-0.8.0/target-i386/op.c
../dyngen -o op.h op.o
dyngen: ret or jmp expected at the end of op_bsfw_T0_cc
make[1]: *** [op.h] 错误 1
make[1]: Leaving directory `/root/qemu-0.8.0/i386-user'
make: *** [all] 错误 1