* Error Compiling kvm-userspace
@ 2008-04-27 16:39 Mohammed Gamal
2008-04-27 21:00 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Gamal @ 2008-04-27 16:39 UTC (permalink / raw)
To: kvm-devel
Hi,
I was trying to compile the code from kvm-userspace.git against the
kernel from kvm.git tree. I ran configure --with-patched-kernel and I
got this error:
../libkvm/libkvm.h:385: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'kvm_get_cr8'
main.c: In function 'enter_32':
main.c:374: error: variable 'regs' has initializer but incomplete type
main.c:375: error: unknown field 'rsp' specified in initializer
main.c:375: warning: excess elements in struct initializer
main.c:375: warning: (near initialization for 'regs')
main.c:376: error: unknown field 'rip' specified in initializer
main.c:376: warning: excess elements in struct initializer
main.c:376: warning: (near initialization for 'regs')
main.c:377: error: unknown field 'rflags' specified in initializer
main.c:377: warning: excess elements in struct initializer
main.c:377: warning: (near initialization for 'regs')
main.c:374: error: storage size of 'regs' isn't known
main.c:379: error: variable 'sregs' has initializer but incomplete type
main.c:380: error: unknown field 'cs' specified in initializer
main.c:380: error: extra brace group at end of initializer
main.c:380: error: (near initialization for 'sregs')
main.c:380: warning: excess elements in struct initializer
main.c:380: warning: (near initialization for 'sregs')
main.c:381: error: unknown field 'ds' specified in initializer
main.c:381: error: extra brace group at end of initializer
main.c:381: error: (near initialization for 'sregs')
main.c:381: warning: excess elements in struct initializer
main.c:381: warning: (near initialization for 'sregs')
main.c:382: error: unknown field 'es' specified in initializer
main.c:382: error: extra brace group at end of initializer
main.c:382: error: (near initialization for 'sregs')
main.c:382: warning: excess elements in struct initializer
main.c:382: warning: (near initialization for 'sregs')
main.c:383: error: unknown field 'fs' specified in initializer
main.c:383: error: extra brace group at end of initializer
main.c:383: error: (near initialization for 'sregs')
main.c:383: warning: excess elements in struct initializer
main.c:383: warning: (near initialization for 'sregs')
main.c:384: error: unknown field 'gs' specified in initializer
main.c:384: error: extra brace group at end of initializer
main.c:384: error: (near initialization for 'sregs')
main.c:384: warning: excess elements in struct initializer
main.c:384: warning: (near initialization for 'sregs')
main.c:385: error: unknown field 'ss' specified in initializer
main.c:385: error: extra brace group at end of initializer
main.c:385: error: (near initialization for 'sregs')
main.c:385: warning: excess elements in struct initializer
main.c:385: warning: (near initialization for 'sregs')
main.c:387: error: unknown field 'tr' specified in initializer
main.c:387: error: extra brace group at end of initializer
main.c:387: error: (near initialization for 'sregs')
main.c:387: warning: excess elements in struct initializer
main.c:387: warning: (near initialization for 'sregs')
main.c:388: error: unknown field 'ldt' specified in initializer
main.c:388: error: extra brace group at end of initializer
main.c:388: error: (near initialization for 'sregs')
main.c:388: warning: excess elements in struct initializer
main.c:388: warning: (near initialization for 'sregs')
main.c:389: error: unknown field 'gdt' specified in initializer
main.c:389: error: extra brace group at end of initializer
main.c:389: error: (near initialization for 'sregs')
main.c:389: warning: excess elements in struct initializer
main.c:389: warning: (near initialization for 'sregs')
main.c:390: error: unknown field 'idt' specified in initializer
main.c:390: error: extra brace group at end of initializer
main.c:390: error: (near initialization for 'sregs')
main.c:390: warning: excess elements in struct initializer
main.c:390: warning: (near initialization for 'sregs')
main.c:391: error: unknown field 'cr0' specified in initializer
main.c:391: warning: excess elements in struct initializer
main.c:391: warning: (near initialization for 'sregs')
main.c:392: error: unknown field 'cr3' specified in initializer
main.c:392: warning: excess elements in struct initializer
main.c:392: warning: (near initialization for 'sregs')
main.c:393: error: unknown field 'cr4' specified in initializer
main.c:393: warning: excess elements in struct initializer
main.c:393: warning: (near initialization for 'sregs')
main.c:394: error: unknown field 'efer' specified in initializer
main.c:394: warning: excess elements in struct initializer
main.c:394: warning: (near initialization for 'sregs')
main.c:395: error: unknown field 'apic_base' specified in initializer
main.c:395: warning: excess elements in struct initializer
main.c:395: warning: (near initialization for 'sregs')
main.c:396: error: unknown field 'interrupt_bitmap' specified in initializer
main.c:396: error: extra brace group at end of initializer
main.c:396: error: (near initialization for 'sregs')
main.c:396: warning: excess elements in struct initializer
main.c:396: warning: (near initialization for 'sregs')
main.c:379: error: storage size of 'sregs' isn't known
main.c:379: warning: unused variable 'sregs'
main.c:374: warning: unused variable 'regs'
main.c: In function 'do_create_vcpu':
main.c:418: error: storage size of 'regs' isn't known
main.c:418: warning: unused variable 'regs'
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/mohd/code/kvm-userspace/user'
make: *** [user] Error 2
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error Compiling kvm-userspace
2008-04-27 16:39 Error Compiling kvm-userspace Mohammed Gamal
@ 2008-04-27 21:00 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-04-27 21:00 UTC (permalink / raw)
To: Mohammed Gamal; +Cc: kvm-devel
Mohammed Gamal wrote:
> Hi,
> I was trying to compile the code from kvm-userspace.git against the
> kernel from kvm.git tree. I ran configure --with-patched-kernel and I
> got this error:
>
> ../libkvm/libkvm.h:385: error: expected '=', ',', ';', 'asm' or
>
Last commit broke libkvm. I pushed out a fix.
--
Any sufficiently difficult bug is indistinguishable from a feature.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-27 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 16:39 Error Compiling kvm-userspace Mohammed Gamal
2008-04-27 21:00 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox