Hi,

I'm trying to compile the qemu-0.14 branch. Everything is fine with gcc44 on
Ubuntu 10.04. But with gcc44 on RHEL5, it seems kvm.h is missing. I tried
"yum install kvm kmod kvm" but the problem is not solved.

Here is the console dump from the problematic machine:

gcc44 -v:
ece$ gcc44 -v
Using built-in specs.
Target: x86_64-redhat-linux6E
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla--enable-bootstrap
--enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --disable-gnu-unique-object
--enable-languages=c,c++,fortran --disable-libgcj
--with-mpfr=/builddir/build/BUILD/gcc-4.4.4-20100726/obj-x86_64-redhat-linux6E/mpfr-install/
--with-ppl=/builddir/build/BUILD/gcc-4.4.4-20100726/obj-x86_64-redhat-linux6E/ppl-install
--with-cloog=/builddir/build/BUILD/gcc-4.4.4-20100726/obj-x86_64-redhat-linux6E/cloog-install
--with-tune=generic --with-arch_32=i586 --build=x86_64-redhat-linux6E
Thread model: posix
gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)

uname -a:
ece$ uname -a
Linux bluejet.ece.ncsu.edu 2.6.18-238.5.1.el5 #1 SMP Mon Feb 21 05:52:39 EST
2011 x86_64 x86_64 x86_64 GNU/Linux

scons -Q:
ece$ scons -Q
running with -j16
Creating ==> qemu/config-host.mak
Creating ==> qemu/x86_64-softmmu/config-target.mak
Compiling ==> ptlsim/build/lib/superstl.cpp
Compiling ==> ptlsim/build/lib/statelist.cpp
Compiling ==> ptlsim/build/sim/syscalls.cpp
Compiling ==> ptlsim/build/sim/config-parser.cpp
Compiling ==> ptlsim/build/stats/datastore.cpp
Compiling ==> ptlsim/build/lib/bson/bson.c
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
not for C
Compiling ==> ptlsim/build/lib/bson/md5.c
Compiling ==> ptlsim/build/lib/bson/numbers.c
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
not for C
ptlsim/build/lib/superstl.cpp: In function ‘void assert_fail(const char*,
const char*, unsigned int, const char*)’:
ptlsim/build/lib/superstl.cpp:55: warning: function declared ‘noreturn’ has
a ‘return’ statement
Compiling ==> ptlsim/build/lib/bson/mongo.c
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but
not for C
Creating ==> qemu/trace-events
ptlsim/build/lib/superstl.cpp:87: warning: ‘noreturn’ function does return
Compiling ==> qemu/cache-utils.c
Creating ==> qemu/hmp-commands.hx
Compiling ==> qemu/host-utils.c
Compiling ==> qemu/tcg-runtime.c
Linking Static Library ==> ptlsim/build/lib/bson/libmongoc.a
Ranlib Library ==> ptlsim/build/lib/bson/libmongoc.a
Compiling ==> qemu/hw/virtio.c
Compiling ==> qemu/hw/usb-desc.c
Compiling ==> qemu/hw/virtio-blk.c
Compiling ==> qemu/block.c
Compiling ==> qemu/hw/apic.c
Compiling ==> qemu/block/qed-l2-cache.c
Compiling ==> qemu/block/qed-table.c
Compiling ==> qemu/block/qed.c
Compiling ==> qemu/ioport.c
Compiling ==> qemu/balloon.c
Linking Static Library ==> ptlsim/build/lib/bson/libbson.a
Ranlib Library ==> ptlsim/build/lib/bson/libbson.a
Compiling ==> qemu/block/parallels.c
Compiling ==> qemu/audio/wavcapture.c
Compiling ==> qemu/hw/pckbd.c
Compiling ==> qemu/hw/vmmouse.c
Compiling ==> qemu/hw/vmport.c
Compiling ==> qemu/hw/usb-wacom.c
In file included from qemu/balloon.c:30:
qemu/kvm.h:22:23: warning: linux/kvm.h: No such file or directory
Compiling ==> qemu/acl.c
Compiling ==> qemu/hw/pci.c
Compiling ==> qemu/hw/fw_cfg.c
Compiling ==> qemu/hw/usb-hid.c
Compiling ==> qemu/tcg/tcg.c
Compiling ==> qemu/hw/pci-hotplug.c
Compiling ==> qemu/hw/scsi-bus.c
Compiling ==> qemu/hw/ioapic.c
In file included from qemu/hw/vmport.c:28:
qemu/kvm.h:22:23: warning: linux/kvm.h: No such file or directory
Compiling ==> qemu/block/curl.c
Compiling ==> qemu/bt-vhci.c
Compiling ==> qemu/hw/usb-msd.c
Compiling ==> qemu/block/qcow.c
Compiling ==> qemu/aes.c
Compiling ==> qemu/hw/ide/piix.c
Compiling ==> qemu/hw/smbus.c
Compiling ==> qemu/hw/ide/isa.c
Compiling ==> qemu/hw/smbus_eeprom.c
Compiling ==> qemu/hw/bt-hid.c
Compiling ==> qemu/block/vpc.c
Compiling ==> qemu/hw/msix.c
Compiling ==> qemu/hw/usb-serial.c
Compiling ==> qemu/hw/qdev.c
Compiling ==> qemu/hw/pc_piix.c
Compiling ==> qemu/i386-dis.c
Compiling ==> qemu/bt-host.c
Compiling ==> qemu/hw/device-hotplug.c
Compiling ==> qemu/json-lexer.c
Compiling ==> qemu/cmd.c
Compiling ==> qemu/hw/xio3130_downstream.c
Compiling ==> qemu/hw/msmouse.c
Compiling ==> qemu/block/qcow2-cluster.c
In file included from qemu/hw/pc_piix.c:34:
qemu/kvm.h:22:23: warning: linux/kvm.h: No such file or directory
Compiling ==> qemu/hw/usb-hub.c
Compiling ==> qemu/hw/serial.c
Compiling ==> qemu/hw/dma.c
Compiling ==> qemu/hw/bt-hci.c
Compiling ==> qemu/hw/vmware_vga.c
Compiling ==> qemu/block/qcow2-refcount.c
Compiling ==> qemu/hw/virtio-console.c
Compiling ==> qemu/hw/apm.c
Compiling ==> qemu/cpus.c
Compiling ==> qemu/hw/bt-hci-csr.c
In file included from qemu/cpus.c:32:
qemu/kvm.h:22:23: warning: linux/kvm.h: No such file or directoryCompiling
==> qemu/kvm-all.c
Compiling ==> qemu/translate-all.c

qemu/kvm-all.c:21:23: warning: linux/kvm.h: No such file or directory
qemu/kvm-all.c:84: error: ‘KVM_CAP_USER_MEMORY’ undeclared here (not in a
function)
qemu/kvm-all.c:85: error: ‘KVM_CAP_DESTROY_MEMORY_REGION_WORKS’ undeclared
here (not in a function)
qemu/kvm-all.c: In function ‘kvm_set_user_memory_region’:
qemu/kvm-all.c:172: error: storage size of ‘mem’ isn’t known
qemu/kvm-all.c:174: error: request for member ‘slot’ in something not a
structure or union
qemu/kvm-all.c:174: warning: statement with no effect
qemu/kvm-all.c:175: error: request for member ‘guest_phys_addr’ in something
not a structure or union
qemu/kvm-all.c:175: warning: statement with no effect
qemu/kvm-all.c:176: error: request for member ‘memory_size’ in something not
a structure or union
qemu/kvm-all.c:176: warning: statement with no effect
qemu/kvm-all.c:177: error: request for member ‘userspace_addr’ in something
not a structure or union
qemu/kvm-all.c:177: warning: statement with no effect
qemu/kvm-all.c:178: error: request for member ‘flags’ in something not a
structure or union
qemu/kvm-all.c:178: warning: statement with no effect
qemu/kvm-all.c:180: error: request for member ‘flags’ in something not a
structure or union
qemu/kvm-all.c:180: error: ‘KVM_MEM_LOG_DIRTY_PAGES’ undeclared (first use
in this function)
qemu/kvm-all.c:180: error: (Each undeclared identifier is reported only once
qemu/kvm-all.c:180: error: for each function it appears in.)
qemu/kvm-all.c:180: warning: statement with no effect
qemu/kvm-all.c:182: error: ‘KVM_SET_USER_MEMORY_REGION’ undeclared (first
use in this function)
qemu/kvm-all.c:182: warning: passing argument 2 of ‘kvm_vm_ioctl’ makes
integer from pointer without a cast
qemu/kvm.h:91: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:172: warning: unused variable ‘mem’
qemu/kvm-all.c: In function ‘kvm_init_vcpu’:
qemu/kvm-all.c:211: error: ‘KVM_CREATE_VCPU’ undeclared (first use in this
function)
qemu/kvm-all.c:211: warning: passing argument 2 of ‘kvm_vm_ioctl’ makes
integer from pointer without a cast
qemu/kvm.h:91: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:220: error: ‘KVM_GET_VCPU_MMAP_SIZE’ undeclared (first use in
this function)
qemu/kvm-all.c:220: warning: passing argument 2 of ‘kvm_ioctl’ makes integer
from pointer without a cast
qemu/kvm.h:89: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c: In function ‘kvm_dirty_pages_log_change’:
qemu/kvm-all.c:272: error: ‘KVM_MEM_LOG_DIRTY_PAGES’ undeclared (first use
in this function)
qemu/kvm-all.c:272: error: invalid operands to binary | (have ‘int’ and
‘const struct KVMCapabilityInfo *’)
qemu/kvm-all.c:272: warning: statement with no effect
qemu/kvm-all.c: In function ‘kvm_log_start’:
qemu/kvm-all.c:283: error: ‘KVM_MEM_LOG_DIRTY_PAGES’ undeclared (first use
in this function)
qemu/kvm-all.c:284: warning: passing argument 3 of
‘kvm_dirty_pages_log_change’ makes integer from pointer without a cast
qemu/kvm-all.c:251: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:284: warning: passing argument 4 of
‘kvm_dirty_pages_log_change’ makes integer from pointer without a cast
qemu/kvm-all.c:251: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c: In function ‘kvm_log_stop’:
qemu/kvm-all.c:290: error: ‘KVM_MEM_LOG_DIRTY_PAGES’ undeclared (first use
in this function)
qemu/kvm-all.c:290: warning: passing argument 4 of
‘kvm_dirty_pages_log_change’ makes integer from pointer without a cast
qemu/kvm-all.c:251: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c: In function ‘kvm_set_migration_log’:
qemu/kvm-all.c:307: error: ‘KVM_MEM_LOG_DIRTY_PAGES’ undeclared (first use
in this function)
qemu/kvm-all.c:307: error: invalid operands to binary & (have ‘int’ and
‘const struct KVMCapabilityInfo *’)
qemu/kvm-all.c: In function ‘kvm_physical_sync_dirty_bitmap’:
qemu/kvm-all.c:366: error: storage size of ‘d’ isn’t known
qemu/kvm-all.c:370: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:370: warning: statement with no effect
qemu/kvm-all.c:378: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:379: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:379: warning: statement with no effect
qemu/kvm-all.c:381: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:381: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:381: warning: passing argument 1 of ‘qemu_realloc’ discards
qualifiers from pointer target type
qemu/qemu-common.h:198: note: expected ‘void *’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:381: warning: statement with no effect
qemu/kvm-all.c:384: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:384: warning: passing argument 1 of ‘memset’ discards
qualifiers from pointer target type
/usr/include/string.h:59: note: expected ‘void *’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:386: error: request for member ‘slot’ in something not a
structure or union
qemu/kvm-all.c:386: warning: statement with no effect
qemu/kvm-all.c:388: error: ‘KVM_GET_DIRTY_LOG’ undeclared (first use in this
function)
qemu/kvm-all.c:388: warning: passing argument 2 of ‘kvm_vm_ioctl’ makes
integer from pointer without a cast
qemu/kvm.h:91: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:394: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:395: warning: passing argument 2 of
‘kvm_get_dirty_pages_log_range’ from incompatible pointer type
qemu/kvm-all.c:319: note: expected ‘long unsigned int *’ but argument is of
type ‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:398: error: request for member ‘dirty_bitmap’ in something
not a structure or union
qemu/kvm-all.c:398: warning: passing argument 1 of ‘qemu_free’ discards
qualifiers from pointer target type
qemu/qemu-common.h:200: note: expected ‘void *’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:366: warning: unused variable ‘d’
qemu/kvm-all.c: In function ‘kvm_coalesce_mmio_region’:
qemu/kvm-all.c:409: error: storage size of ‘zone’ isn’t known
qemu/kvm-all.c:411: error: request for member ‘addr’ in something not a
structure or union
qemu/kvm-all.c:411: warning: statement with no effect
qemu/kvm-all.c:412: error: request for member ‘size’ in something not a
structure or union
qemu/kvm-all.c:412: warning: statement with no effect
qemu/kvm-all.c:414: error: ‘KVM_REGISTER_COALESCED_MMIO’ undeclared (first
use in this function)
qemu/kvm-all.c:414: warning: passing argument 2 of ‘kvm_vm_ioctl’ makes
integer from pointer without a cast
qemu/kvm.h:91: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:409: warning: unused variable ‘zone’
qemu/kvm-all.c: In function ‘kvm_uncoalesce_mmio_region’:
qemu/kvm-all.c:426: error: storage size of ‘zone’ isn’t known
qemu/kvm-all.c:428: error: request for member ‘addr’ in something not a
structure or union
qemu/kvm-all.c:428: warning: statement with no effect
qemu/kvm-all.c:429: error: request for member ‘size’ in something not a
structure or union
qemu/kvm-all.c:429: warning: statement with no effect
qemu/kvm-all.c:431: error: ‘KVM_UNREGISTER_COALESCED_MMIO’ undeclared (first
use in this function)
qemu/kvm-all.c:431: warning: passing argument 2 of ‘kvm_vm_ioctl’ makes
integer from pointer without a cast
qemu/kvm.h:91: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:426: warning: unused variable ‘zone’
qemu/kvm-all.c: In function ‘kvm_check_extension’:
qemu/kvm-all.c:441: error: ‘KVM_CHECK_EXTENSION’ undeclared (first use in
this function)
qemu/kvm-all.c:441: warning: passing argument 2 of ‘kvm_ioctl’ makes integer
from pointer without a cast
qemu/kvm.h:89: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c: In function ‘kvm_init’:
qemu/kvm-all.c:679: error: ‘KVM_GET_API_VERSION’ undeclared (first use in
this function)
qemu/kvm-all.c:679: warning: passing argument 2 of ‘kvm_ioctl’ makes integer
from pointer without a cast
qemu/kvm.h:89: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:680: error: ‘KVM_API_VERSION’ undeclared (first use in this
function)
qemu/kvm-all.c:680: warning: comparison between pointer and integer
qemu/kvm-all.c:688: warning: comparison between pointer and integer
qemu/kvm-all.c:694: error: ‘KVM_CREATE_VM’ undeclared (first use in this
function)
qemu/kvm-all.c:694: warning: passing argument 2 of ‘kvm_ioctl’ makes integer
from pointer without a cast
qemu/kvm.h:89: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:715: error: ‘KVM_CAP_COALESCED_MMIO’ undeclared (first use in
this function)
qemu/kvm-all.c:715: warning: passing argument 2 of ‘kvm_check_extension’
makes integer from pointer without a cast
qemu/kvm-all.c:437: note: expected ‘unsigned int’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c: In function ‘kvm_handle_io’:
qemu/kvm-all.c:784: error: ‘KVM_EXIT_IO_IN’ undeclared (first use in this
function)
qemu/kvm-all.c:784: warning: comparison between pointer and integer
qemu/kvm-all.c: In function ‘kvm_flush_coalesced_mmio_buffer’:
qemu/kvm-all.c:850: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:850: error: request for member ‘first’ in something not a
structure or union
qemu/kvm-all.c:850: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:850: error: request for member ‘last’ in something not a
structure or union
qemu/kvm-all.c:853: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:853: error: request for member ‘coalesced_mmio’ in something
not a structure or union
qemu/kvm-all.c:853: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:853: error: request for member ‘first’ in something not a
structure or union
qemu/kvm-all.c:853: error: array subscript is not an integer
qemu/kvm-all.c:853: warning: assignment from incompatible pointer type
qemu/kvm-all.c:855: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:855: error: request for member ‘phys_addr’ in something not a
structure or union
qemu/kvm-all.c:855: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:855: error: request for member ‘data’ in something not a
structure or union
qemu/kvm-all.c:855: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:855: error: request for member ‘len’ in something not a
structure or union
qemu/kvm-all.c:855: warning: passing argument 1 of
‘cpu_physical_memory_write’ makes integer from pointer without a cast
qemu/cpu-common.h:74: note: expected ‘target_phys_addr_t’ but argument is of
type ‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:855: warning: passing argument 2 of
‘cpu_physical_memory_write’ from incompatible pointer type
qemu/cpu-common.h:74: note: expected ‘const uint8_t *’ but argument is of
type ‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:855: warning: passing argument 3 of
‘cpu_physical_memory_write’ makes integer from pointer without a cast
qemu/cpu-common.h:74: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:857: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:857: error: request for member ‘first’ in something not a
structure or union
qemu/kvm-all.c:857: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:857: error: request for member ‘first’ in something not a
structure or union
qemu/kvm-all.c:857: error: ‘KVM_COALESCED_MMIO_MAX’ undeclared (first use in
this function)
qemu/kvm-all.c:857: error: invalid operands to binary % (have ‘const struct
KVMCapabilityInfo *’ and ‘const struct KVMCapabilityInfo *’)
qemu/kvm-all.c:857: warning: statement with no effect
qemu/kvm-all.c: In function ‘kvm_cpu_exec’:
qemu/kvm-all.c:920: error: ‘KVM_RUN’ undeclared (first use in this function)
qemu/kvm-all.c:920: warning: passing argument 2 of ‘kvm_vcpu_ioctl’ makes
integer from pointer without a cast
qemu/kvm.h:93: note: expected ‘int’ but argument is of type ‘const struct
KVMCapabilityInfo *’
qemu/kvm-all.c:940: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:940: error: request for member ‘exit_reason’ in something not
a structure or union
qemu/kvm-all.c:941: error: ‘KVM_EXIT_IO’ undeclared (first use in this
function)
qemu/kvm-all.c:943: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:943: error: request for member ‘io’ in something not a
structure or union
qemu/kvm-all.c:943: error: request for member ‘port’ in something not a
structure or union
qemu/kvm-all.c:944: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:944: error: request for member ‘io’ in something not a
structure or union
qemu/kvm-all.c:944: error: request for member ‘data_offset’ in something not
a structure or union
qemu/kvm-all.c:944: error: invalid operands to binary + (have ‘uint8_t *’
and ‘const struct KVMCapabilityInfo *’)
qemu/kvm-all.c:945: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:945: error: request for member ‘io’ in something not a
structure or union
qemu/kvm-all.c:945: error: request for member ‘direction’ in something not a
structure or union
qemu/kvm-all.c:946: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:946: error: request for member ‘io’ in something not a
structure or union
qemu/kvm-all.c:946: error: request for member ‘size’ in something not a
structure or union
qemu/kvm-all.c:947: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:947: error: request for member ‘io’ in something not a
structure or union
qemu/kvm-all.c:947: error: request for member ‘count’ in something not a
structure or union
qemu/kvm-all.c:947: warning: passing argument 1 of ‘kvm_handle_io’ makes
integer from pointer without a cast
qemu/kvm-all.c:777: note: expected ‘uint16_t’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:947: warning: passing argument 2 of ‘kvm_handle_io’ discards
qualifiers from pointer target type
qemu/kvm-all.c:777: note: expected ‘void *’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:947: warning: passing argument 3 of ‘kvm_handle_io’ makes
integer from pointer without a cast
qemu/kvm-all.c:777: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:947: warning: passing argument 4 of ‘kvm_handle_io’ makes
integer from pointer without a cast
qemu/kvm-all.c:777: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:947: warning: passing argument 5 of ‘kvm_handle_io’ makes
integer from pointer without a cast
qemu/kvm-all.c:777: note: expected ‘uint32_t’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:949: error: ‘KVM_EXIT_MMIO’ undeclared (first use in this
function)
qemu/kvm-all.c:951: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:951: error: request for member ‘mmio’ in something not a
structure or union
qemu/kvm-all.c:951: error: request for member ‘phys_addr’ in something not a
structure or union
qemu/kvm-all.c:952: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:952: error: request for member ‘mmio’ in something not a
structure or union
qemu/kvm-all.c:952: error: request for member ‘data’ in something not a
structure or union
qemu/kvm-all.c:953: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:953: error: request for member ‘mmio’ in something not a
structure or union
qemu/kvm-all.c:953: error: request for member ‘len’ in something not a
structure or union
qemu/kvm-all.c:954: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:954: error: request for member ‘mmio’ in something not a
structure or union
qemu/kvm-all.c:954: error: request for member ‘is_write’ in something not a
structure or union
qemu/kvm-all.c:954: warning: passing argument 1 of ‘cpu_physical_memory_rw’
makes integer from pointer without a cast
qemu/cpu-common.h:67: note: expected ‘target_phys_addr_t’ but argument is of
type ‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:954: warning: passing argument 2 of ‘cpu_physical_memory_rw’
from incompatible pointer type
qemu/cpu-common.h:67: note: expected ‘uint8_t *’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:954: warning: passing argument 3 of ‘cpu_physical_memory_rw’
makes integer from pointer without a cast
qemu/cpu-common.h:67: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:954: warning: passing argument 4 of ‘cpu_physical_memory_rw’
makes integer from pointer without a cast
qemu/cpu-common.h:67: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:957: error: ‘KVM_EXIT_IRQ_WINDOW_OPEN’ undeclared (first use
in this function)
qemu/kvm-all.c:960: error: ‘KVM_EXIT_SHUTDOWN’ undeclared (first use in this
function)
qemu/kvm-all.c:965: error: ‘KVM_EXIT_UNKNOWN’ undeclared (first use in this
function)
qemu/kvm-all.c:967: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:967: error: request for member ‘hw’ in something not a
structure or union
qemu/kvm-all.c:967: error: request for member ‘hardware_exit_reason’ in
something not a structure or union
qemu/kvm-all.c:975: error: ‘KVM_EXIT_DEBUG’ undeclared (first use in this
function)
qemu/kvm-all.c: In function ‘kvm_has_sync_mmu’:
qemu/kvm-all.c:1059: error: ‘KVM_CAP_SYNC_MMU’ undeclared (first use in this
function)
qemu/kvm-all.c:1059: warning: passing argument 2 of ‘kvm_check_extension’
makes integer from pointer without a cast
qemu/kvm-all.c:437: note: expected ‘unsigned int’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c: In function ‘kvm_set_signal_mask’:
qemu/kvm-all.c:1297: error: ‘KVM_SET_SIGNAL_MASK’ undeclared (first use in
this function)
qemu/kvm-all.c:1297: warning: passing argument 2 of ‘kvm_vcpu_ioctl’ makes
integer from pointer without a cast
qemu/kvm-all.c:1040: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
qemu/kvm-all.c:1300: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:1300: warning: passing argument 1 of ‘qemu_malloc’ makes
integer from pointer without a cast
qemu/qemu-common.h:197: note: expected ‘size_t’ but argument is of type
‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:1302: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:1302: error: request for member ‘len’ in something not a
structure or union
qemu/kvm-all.c:1302: warning: statement with no effect
qemu/kvm-all.c:1303: error: dereferencing pointer to incomplete type
qemu/kvm-all.c:1303: error: request for member ‘sigset’ in something not a
structure or union
qemu/kvm-all.c:1303: warning: passing argument 1 of ‘memcpy’ discards
qualifiers from pointer target type
/usr/include/string.h:38: note: expected ‘void * __restrict__’ but argument
is of type ‘const struct KVMCapabilityInfo *’
qemu/kvm-all.c:1304: warning: passing argument 2 of ‘kvm_vcpu_ioctl’ makes
integer from pointer without a cast
qemu/kvm-all.c:1040: note: expected ‘int’ but argument is of type ‘const
struct KVMCapabilityInfo *’
scons: *** [qemu/kvm-all.o] Error 1

Please help, thanks in advance.
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to