public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Gildas <gildas.ml-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: compilation on ubuntu 32 bit host?
Date: Fri, 10 Nov 2006 18:29:25 +0200	[thread overview]
Message-ID: <4554A8E5.3060005@qumranet.com> (raw)
In-Reply-To: <b2ace7f20611100814o8438c3dybdf9a00b5ee512d3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Gildas wrote:
> 2006/11/10, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.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 <linux/mutex.h> -> #include <asm/semaphore.h>
>> '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

  parent reply	other threads:[~2006-11-10 16:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10 12:18 compilation on ubuntu 32 bit host? Gildas
     [not found] ` <b2ace7f20611100418i6e94ed5ehaaadeda5a708009e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-10 15:04   ` Anthony Liguori
2006-11-10 16:02   ` Avi Kivity
     [not found]     ` <4554A2A6.8020509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-10 16:14       ` Gildas
     [not found]         ` <b2ace7f20611100814o8438c3dybdf9a00b5ee512d3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-10 16:29           ` Avi Kivity [this message]
2006-11-14 13:42   ` Gildas
     [not found]     ` <b2ace7f20611140542of22cf8alc7efdfd0af6be6c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-14 13:51       ` Avi Kivity
     [not found]         ` <4559C9D7.2050107-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 13:59           ` Gildas
     [not found]             ` <b2ace7f20611140559s303a26bcr425506a2f2711390-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-14 14:16               ` Avi Kivity
     [not found]                 ` <4559CFBE.1020903-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-15  9:52                   ` Ubunto live cd (was: Re: compilation on ubuntu 32 bit host?) Avi Kivity
2006-11-14 14:32               ` compilation on ubuntu 32 bit host? Avi Kivity
     [not found]                 ` <4559D38A.9080802-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 15:14                   ` Avi Kivity
     [not found]                     ` <4559DD41.4010305-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-14 15:39                       ` Avi Kivity
2006-11-14 16:35                       ` Muli Ben-Yehuda
     [not found]                         ` <20061114163556.GA6848-k73YwwB0fHlWk0Htik3J/w@public.gmane.org>
2006-11-14 16:37                           ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4554A8E5.3060005@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=gildas.ml-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox