compilation on ubuntu 32 bit host?

Gildas
2006-11-10T12:18:08Z

Hi,

Has anyone managed to compile kvm on an ubuntu 32 bit host? (using the
tarball kvm-2 available on sourceforge)

I have the following:

gn1@mbp18006i:~/install/kvm-2$ ./configure --qemu-cc=/usr/bin/gcc-3.4
ls: /usr/bin/gcc3*: No such file or directory
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 /home/gn1/install/kvm-2/qemu
C compiler /usr/bin/gcc-3.4
Host C compiler gcc
make make
install install
host CPU i386
host big endian no
target list unknown-softmmu
gprof enabled no
profiler no
static build no
SDL support yes
SDL static link no
mingw32 support no
Adlib support no
CoreAudio support no
ALSA support no
DSound support no
FMOD support no
kqemu support no
kvm support yes
Documentation no
Unsupported target CPU
gn1@mbp18006i:~/install/kvm-2$ make
make -C kernel
make[1]: Entering directory `/home/gn1/install/kvm-2/kernel'
make -C /lib/modules/`uname -r`/build M=`pwd` "$@"
make[2]: Entering directory `/usr/src/linux-headers-2.6.15-27-686'
CC [M] /home/gn1/install/kvm-2/kernel/kvm_main.o
In file included from /home/gn1/install/kvm-2/kernel/kvm_main.c:18:
/home/gn1/install/kvm-2/kernel/kvm.h:11:25: error: linux/mutex.h: No
such file or directory
In file included from /home/gn1/install/kvm-2/kernel/kvm_main.c:18:
/home/gn1/install/kvm-2/kernel/kvm.h:163: error: field 'mutex' has
incomplete type
/home/gn1/install/kvm-2/kernel/kvm.h: In function 'page_header':
/home/gn1/install/kvm-2/kernel/kvm.h:377: error: 'struct page' has no
member named 'private'
/home/gn1/install/kvm-2/kernel/kvm_main.c: In function 'vcpu_load':
/home/gn1/install/kvm-2/kernel/kvm_main.c:449: warning: implicit
declaration of function 'mutex_lock'
/home/gn1/install/kvm-2/kernel/kvm_main.c:451: warning: implicit
declaration of function 'mutex_unlock'
/home/gn1/install/kvm-2/kernel/kvm_main.c: In function 'kvm_dev_open':
/home/gn1/install/kvm-2/kernel/kvm_main.c:561: warning: implicit
declaration of function 'mutex_init'
make[3]: *** [/home/gn1/install/kvm-2/kernel/kvm_main.o] Error 1
make[2]: *** [_module_/home/gn1/install/kvm-2/kernel] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.15-27-686'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/gn1/install/kvm-2/kernel'
make: *** [kernel] Error 2

My system is a ubuntu 6.06 installed on a macbookpro, using ubuntu
kernel 2.6.15-27-686

I have the following packages installed:
- zlib1g-dev 1.2.3-6ubuntu4
- uuid-dev 1.2-1.38-2ubuntu2
- linux-kernel-headers 2.6.11.2-0ubuntu18
- e2fslibs-dev 1.38-2ubuntu2
- libsdl-gfx1.2-dev 2.0.13-1
- libsdl1.2-dev 1.2.9-0.0ubuntu2
- linux-source-2.6.15 2.6.15-27.48

(this system runs a locally compiled qemu 0.8.2 + kqemu)

Cheers
Gildas