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:29:25 +0200 Message-ID: <4554A8E5.3060005@qumranet.com> References: <4554A2A6.8020509@qumranet.com> 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: > 2006/11/10, Avi Kivity : >> 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()' > > Done, I include a patch with the modifications for those ubuntu users > out there :) > Cool. Once it works I'll post it and link to it from the HOWTO. >> Looks like 'struct page::private' has also been renamed. > > Yes... > In file included from /home/gn1/install/kvm-2/kernel/kvm_main.c:18: > /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' > > What should I change? > Look in your include/linux/mm.h, where 'struct page' lived until recently. It's probably named 'private' but inside some union or sub-structure. -- 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