From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: compilation on ubuntu 32 bit host? Date: Fri, 10 Nov 2006 18:02:46 +0200 Message-ID: <4554A2A6.8020509@qumranet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: Gildas In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Gildas wrote: > Hi, > > Has anyone managed to compile kvm on an ubuntu 32 bit host? (using the > tarball kvm-2 available on sourceforge) > > [...] > 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 > Linux 2.6.15 is pre 'struct mutex'. That turned up in Linux 2.6.16. If Ubuntu has a kernel update for 2.6.16 or later, you should try that. If not, you can convert the mutex to a semaphore: #include -> #include 'struct mutex' -> 'struct semaphore' 'mutex_init()' -> 'init_MUTEX()' 'mutex_lock()' -> 'down()' 'mutex_unlock()' -> 'up()' Looks like 'struct page::private' has also been renamed. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642