KVM-21 on RHEL4: cannot build kernel module
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/
A message that is not in the archive (sent off-list or not yet received): web-1190004-6YcMZAkROE/[email protected]
Quoted 8 lines · Alessandro Sardo
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:
Quoted 6 lines
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.
Signature · 8 lines
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/
A message that is not in the archive (sent off-list or not yet received): 4634B773.7030800-atKUWr5tajBWk0Htik3J/[email protected]
Quoted 7 lines
- 2.6.9 appears to predate some
Kbuildchanges (like looking for theKbuildfile in the external module directory, and instead going forMakefile). 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/