On 5/7/07, Dor Laor <[EMAIL PROTECTED]> wrote:
> >Subject: Re: [kvm-devel] Error on compile userspace code
> >
> >On 5/7/07, Dor Laor <[EMAIL PROTECTED]> wrote:
> >> >Hello,
> >> >
> >> >Now our userspace code is in git repo, and separated from kernel
> code?
> >> >So I think the  instruction from
> http://kvm.qumranet.com/kvmwiki/HOWTO
> >> >is not relevant anymore if we are to compile/install userspace code
> >> >(with qemu) from scratch?
> >> >
> >> >I compiled kvm kernel first (kvm22), then pull userspace repo, then:
> >> >
> >> >./configure --prefix=/usr
> >> >make
> >> >
> >> >But I got error like this:
> >> >
> >> >make -C kernel
> >> >make[1]: Entering directory
> `/home/jun/projects/kvm/userspace/kernel'
> >> >make -C /lib/modules/2.6.20-15-generic/build M=`pwd` "$@"
> >> >make[2]: Entering directory
> `/usr/src/linux-headers-2.6.20-15-generic'
> >> >make[3]: *** No rule to make target
> >> >`/home/jun/projects/kvm/userspace/kernel/svm.o', needed by
> >> >`/home/jun/projects/kvm/userspace/kernel/kvm.o'.  Stop.
> >> >make[2]: *** [_module_/home/jun/projects/kvm/userspace/kernel] Error
> 2
> >> >make[2]: Leaving directory
> `/usr/src/linux-headers-2.6.20-15-generic'
> >> >make[1]: *** [all] Error 2
> >> >make[1]: Leaving directory `/home/jun/projects/kvm/userspace/kernel'
> >> >make: *** [kernel] Error 2
> >> >
> >> >
> >> >
> >> >Moreover, there is no README or INSTALL file in userspace repo at
> all.
> >> >So it is really confused on how to compile/install userspace code.
> >> >
> >> >Any hint to fix this?
> >> >
> >> >Thanks,
> >> >Jun
> >>
> >> You need to be in the '/home/jun/projects/kvm/userspace/kernel/'
> >> directory and run make LINUX=PATH sync.
> >> The command copies the kvm code into the directory and compiles them.
> >>
> >
> >So where the PATH should point to?
>
> You should pull the kernel git repo and point PATH there.
> This way you don't compile the whole kernel, the kvm sources are synced
> into the userspace/kernel directory and compiled there against YOUR
> kernel sources.
>

Are you sure this is what you want to do? It is not a good idea to
require users to have the whole kernel git repo just to compile user
code or kvm kernel module.

Not everybody needs git repo, and not everybody is kernel developer, isnt it?


Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to