public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM-21 on RHEL4: cannot build kernel module
@ 2007-04-29 13:41 Alessandro Sardo
       [not found] ` <web-1190004-6YcMZAkROE/Yr5vRfC5HMw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Alessandro Sardo @ 2007-04-29 13:41 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello list,

I am trying to compile KVM-21 on RHEL4 U4 (kernel version 
is 2.6.9-42.0.10.EL SMP). While I do not have any problem 
compiling the 'user' and 'qemu' targets, I cannot seem to 
be able to build the kernel module. I would like to point 
out that:

1) kernel-devel packages are installed
2) the same problem happens with KVM-13/15/16/17/18/19/20
2) the same problem happens with the 2.6.9-42.0.10.EL 
non-SMP kernel

Here is the output I get.

[kvm-21]root@...# ./configure --prefix=/usr/local/kvm
which: no texi2html in 
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
Install prefix    /usr/local/kvm
BIOS directory    /usr/local/kvm/share/qemu
binary directory  /usr/local/kvm/bin
Manual directory  /usr/local/kvm/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /usr/src/kvm-21/qemu
C compiler        gcc
Host C compiler   gcc
make              make
install           install
host CPU          x86_64
host big endian   no
target list       x86_64-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      yes
DSound support    no
FMOD support      no
kqemu support     no
kvm support       yes
Documentation     no

[kvm-21]root@...# make -C kernel
make -C kernel
make[1]: Entering directory `/usr/src/kvm-21/kernel'
make -C /lib/modules/2.6.9-42.0.10.ELsmp/build M=`pwd` 
"$@"
make[2]: Entering directory 
`/usr/src/kernels/2.6.9-42.0.10.EL-smp-x86_64'
/usr/src/kvm-21/kernel/Makefile:1: ../config.mak: No such 
file or directory
make[3]: *** No rule to make target `../config.mak'. 
 Stop.
make[2]: *** [_module_/usr/src/kvm-21/kernel] Error 2
make[2]: Leaving directory 
`/usr/src/kernels/2.6.9-42.0.10.EL-smp-x86_64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/kvm-21/kernel'
make: *** [kernel] Error 2

---------------------------------------------------------

I also tried older versions and found out that 
KVM-10/11/12/14 behave in a different (and weird) way: 
they do not show any error, but they don't compile 
anything at all either.

[kvm-14]root@...# ./configure --prefix=/usr/local/kvm
which: no texi2html in 
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
Install prefix    /usr/local/kvm
BIOS directory    /usr/local/kvm/share/qemu
binary directory  /usr/local/kvm/bin
Manual directory  /usr/local/kvm/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /usr/src/kvm-14/qemu
C compiler        gcc
Host C compiler   gcc
make              make
install           install
host CPU          x86_64
host big endian   no
target list       x86_64-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   yes
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      yes
DSound support    no
FMOD support      no
kqemu support     no
kvm support       yes
Documentation     no

[kvm-14]root@...# make -C kernel
make: Entering directory `/usr/src/kvm-14/kernel'
make -C /lib/modules/2.6.9-42.0.10.ELsmp/build M=`pwd` 
"$@"
make[1]: Entering directory 
`/usr/src/kernels/2.6.9-42.0.10.EL-smp-x86_64'
   Building modules, stage 2.
   MODPOST
make[1]: Leaving directory 
`/usr/src/kernels/2.6.9-42.0.10.EL-smp-x86_64'
make: Leaving directory `/usr/src/kvm-14/kernel'

---------------------------------------------------------

Any idea what the problem is?

Thanks for the help!


AleS

-------------------------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KVM-21 on RHEL4: cannot build kernel module
       [not found] ` <web-1190004-6YcMZAkROE/Yr5vRfC5HMw@public.gmane.org>
@ 2007-04-29 15:19   ` Avi Kivity
       [not found]     ` <4634B773.7030800-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2007-04-29 15:19 UTC (permalink / raw)
  To: Alessandro Sardo; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Alessandro Sardo wrote:
> Hello list,
>
> I am trying to compile KVM-21 on RHEL4 U4 (kernel version 
> is 2.6.9-42.0.10.EL SMP). While I do not have any problem 
> compiling the 'user' and 'qemu' targets, I cannot seem to 
> be able to build the kernel module. I would like to point 
> out that:
>
> 1) kernel-devel packages are installed
> 2) the same problem happens with KVM-13/15/16/17/18/19/20
> 2) the same problem happens with the 2.6.9-42.0.10.EL 
> non-SMP kernel
>
>   

There are several issues here:

- 2.6.9 appears to predate some Kbuild changes (like looking for the 
Kbuild file in the external module directory, and instead going for 
Makefile).  Presumably this is easy to fix.
- RHEL 4's kernel is some mix of 2.6.9 and features from future kernels; 
this may defeat our compatibility detection.

This is all fixable, but will require someone with time and determination.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KVM-21 on RHEL4: cannot build kernel module
       [not found]     ` <4634B773.7030800-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-04-29 15:22       ` David Brown
  0 siblings, 0 replies; 3+ messages in thread
From: David Brown @ 2007-04-29 15:22 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Alessandro Sardo

> - 2.6.9 appears to predate some Kbuild changes (like looking for the
> Kbuild file in the external module directory, and instead going for
> Makefile).  Presumably this is easy to fix.
> - RHEL 4's kernel is some mix of 2.6.9 and features from future kernels;
> this may defeat our compatibility detection.
>
> This is all fixable, but will require someone with time and determination.

You might consider moving to rhel5 its got an updated 2.6.18 kernel
that should be a little more compatible with kvm.

- David Brown

-------------------------------------------------------------------------
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-29 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-29 13:41 KVM-21 on RHEL4: cannot build kernel module Alessandro Sardo
     [not found] ` <web-1190004-6YcMZAkROE/Yr5vRfC5HMw@public.gmane.org>
2007-04-29 15:19   ` Avi Kivity
     [not found]     ` <4634B773.7030800-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-29 15:22       ` David Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox