Re: kvm-29 not compiling

Adrian Lambeck
2007-07-12T21:27:09Z

The same error happens on linux-2.6.21.4:
I am using the same config as on 2.6.20 which worked well with kvm-28...

#################################
Output when compiling:

WARNING: "sigprocmask" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "kmem_cache_destroy" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "sysdev_unregister" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "mem_map" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "vmalloc" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "kill_anon_super" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "current_kernel_time" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "malloc_sizes" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "get_sb_pseudo" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "sysdev_class_register" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "mutex_unlock" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "vfree" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "igrab" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "mutex_trylock" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "cond_resched" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "__alloc_pages" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "misc_register" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "get_unused_fd" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "__mutex_init" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "printk" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "__PAGE_KERNEL" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "memcmp" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "vmap" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "copy_to_user" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "mutex_lock" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "sysdev_class_unregister" [/root/kvm/kvm-29/kernel/kvm.ko]
undefined!
WARNING: "fput" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "contig_page_data" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "unregister_reboot_notifier" [/root/kvm/kvm-29/kernel/kvm.ko]
undefined!
WARNING: "kern_mount" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "sysdev_register" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "__free_pages" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "mntput_no_expire" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "register_reboot_notifier" [/root/kvm/kvm-29/kernel/kvm.ko]
undefined!
WARNING: "d_alloc" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "put_unused_fd" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "kmem_cache_create" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "register_filesystem" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "free_pages" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "kmem_cache_zalloc" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "iput" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "kfree" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "vunmap" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "memcpy" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "fd_install" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "unregister_filesystem" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "new_inode" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "get_empty_filp" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "copy_from_user" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "simple_attr_open" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "misc_deregister" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "d_instantiate" [/root/kvm/kvm-29/kernel/kvm.ko] undefined!
WARNING: "kvm_resched" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_mmu_load" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "mem_map" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "save_msrs" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_set_msr_common" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "malloc_sizes" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_emulate_cpuid" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "kvm_read_guest" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_setup_pio" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "set_cr8" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "set_cr0" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "__alloc_pages" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_init_arch" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "printk" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "prof_on" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_hypercall" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "lmsw" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "set_cr4" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "contig_page_data" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "fx_init" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kmem_cache_alloc" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "__free_pages" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "emulate_instruction" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "kvm_exit_arch" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "dump_stack" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_write_guest" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "free_pages" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_load_guest_fpu" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "load_msrs" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_emulate_halt" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "kvm_mmu_free_some_pages"
[/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kfree" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_get_msr_common" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "memcpy" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "segment_base" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "gfn_to_page" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_put_guest_fpu" [/root/kvm/kvm-29/kernel/kvm-intel.ko]
undefined!
WARNING: "profile_hits" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "set_cr3" [/root/kvm/kvm-29/kernel/kvm-intel.ko] undefined!
WARNING: "kvm_resched" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_mmu_load" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "mem_map" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_set_msr_common" [/root/kvm/kvm-29/kernel/kvm-amd.ko]
undefined!
WARNING: "malloc_sizes" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "boot_cpu_data" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_emulate_cpuid" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_read_guest" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_setup_pio" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "__alloc_pages" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_init_arch" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "printk" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "prof_on" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_hypercall" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_emulator_want_group7_invlpg"
[/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "contig_page_data" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "fx_init" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "__free_pages" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "emulate_instruction" [/root/kvm/kvm-29/kernel/kvm-amd.ko]
undefined!
WARNING: "kvm_exit_arch" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kmem_cache_zalloc" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_emulate_halt" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_mmu_free_some_pages" [/root/kvm/kvm-29/kernel/kvm-amd.ko]
undefined!
WARNING: "kfree" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
WARNING: "kvm_get_msr_common" [/root/kvm/kvm-29/kernel/kvm-amd.ko]
undefined!
WARNING: "profile_hits" [/root/kvm/kvm-29/kernel/kvm-amd.ko] undefined!
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:8: error: variable '__this_module'
has initializer but incomplete type
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:9: error: unknown field 'name'
specified in initializer
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:9: warning: excess elements in
struct initializer
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:9: warning: (near initialization
for '__this_module')
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:10: error: unknown field 'init'
specified in initializer
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:10: warning: excess elements in
struct initializer
/root/kvm/kvm-29/kernel/kvm-amd.mod.c:10: warning: (near initialization
for '__this_module')
make[3]: *** [/root/kvm/kvm-29/kernel/kvm-amd.mod.o] Error 1
make[2]: *** [modules] Error 2
make[1]: *** [all] Error 2
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....
/root/kvm/kvm-29/qemu/migration.c: In function `migrate_finish':
/root/kvm/kvm-29/qemu/migration.c:180: warning: implicit declaration of
function `bdrv_flush_all'
/root/kvm/kvm-29/qemu/migration.c: In function `tcp_release':
/root/kvm/kvm-29/qemu/migration.c:683: warning: long int format, ssize_t
arg (arg 3)
/root/kvm/kvm-29/qemu/migration.c:693: warning: long int format, ssize_t
arg (arg 3)
/root/kvm/kvm-29/qemu/migration.c: In function `migrate_incoming_tcp':
/root/kvm/kvm-29/qemu/migration.c:915: warning: long int format, ssize_t
arg (arg 3)
/root/kvm/kvm-29/qemu/migration.c:933: warning: long int format, ssize_t
arg (arg 3)
/root/kvm/kvm-29/qemu/hw/acpi.c: In function `piix4_pm_init':
/root/kvm/kvm-29/qemu/hw/acpi.c:476: warning: unused variable `pm_io_base'
/root/kvm/kvm-29/qemu/exec.c: In function `cpu_breakpoint_insert':
/root/kvm/kvm-29/qemu/exec.c:1055: warning: implicit declaration of
function `kvm_update_debugger'
/root/kvm/kvm-29/qemu/exec.c: In function
`cpu_physical_memory_set_dirty_tracking':
/root/kvm/kvm-29/qemu/exec.c:1436: warning: implicit declaration of
function `kvm_physical_memory_set_dirty_tracking'
/root/kvm/kvm-29/qemu/qemu-kvm.c: In function `kvm_cpu_exec':
/root/kvm/kvm-29/qemu/qemu-kvm.c:481: warning: implicit declaration of
function `exit'
/root/kvm/kvm-29/qemu/qemu-kvm.c: In function `kvm_shutdown':
/root/kvm/kvm-29/qemu/qemu-kvm.c:633: warning: implicit declaration of
function `qemu_system_reset_request'
/root/kvm/kvm-29/qemu/target-i386/helper.c: In function `do_interrupt64':
/root/kvm/kvm-29/qemu/target-i386/helper.c:847: warning: implicit
declaration of function `exit'
/root/kvm/kvm-29/qemu/target-i386/helper2.c: In function `cpu_x86_init':
/root/kvm/kvm-29/qemu/target-i386/helper2.c:156: warning: implicit
declaration of function `kvm_qemu_init_env'
cp: cannot stat `*.ko': No such file or directory