qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] latest version qemu compile error
@ 2013-04-09  8:22 Zhanghaoyu (A)
  2013-04-09  8:40 ` Paolo Bonzini
  0 siblings, 1 reply; 7+ messages in thread
From: Zhanghaoyu (A) @ 2013-04-09  8:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Huangweidong (C), Luonengjun

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

I compile the QEMU source download from qemu.git (http://git.qemu.org/git/qemu.git) on 4-9-2013, errors reported as below,

hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
hw/virtio/dataplane/vring.c:72: warning: implicit declaration of function 'vring_avail_event'
hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 'vring_avail_event'
hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of assignment
hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_need_event'
hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_need_event'
hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_used_event'
hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_used_event'
hw/virtio/dataplane/vring.c: In function 'vring_pop':
hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand of assignment
make: *** [hw/virtio/dataplane/vring.o] Error 1

'vring_avail_event' and 'vring_need_event' defined in /linux-headers/linux/virtio_ring.h, are not available  in vring.c ?

[-- Attachment #2: Type: text/html, Size: 3575 bytes --]

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

* Re: [Qemu-devel] latest version qemu compile error
  2013-04-09  8:22 [Qemu-devel] latest version qemu compile error Zhanghaoyu (A)
@ 2013-04-09  8:40 ` Paolo Bonzini
  2013-04-10  3:24   ` Zhanghaoyu (A)
  0 siblings, 1 reply; 7+ messages in thread
From: Paolo Bonzini @ 2013-04-09  8:40 UTC (permalink / raw)
  To: Zhanghaoyu (A); +Cc: Luonengjun, Huangweidong (C), qemu-devel

Il 09/04/2013 10:22, Zhanghaoyu (A) ha scritto:
> I compile the QEMU source download from qemu.git
> (http://git.qemu.org/git/qemu.git) on 4-9-2013, errors reported as below,
> 
>  
> 
> hw/virtio/dataplane/vring.c: In function ‘vring_enable_notification’:
> 
> hw/virtio/dataplane/vring.c:72: warning: implicit declaration of
> function ‘vring_avail_event’
> 
> hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of
> ‘vring_avail_event’
> 
> hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand
> of assignment
> 
> hw/virtio/dataplane/vring.c: In function ‘vring_should_notify’:
> 
> hw/virtio/dataplane/vring.c:107: warning: implicit declaration of
> function ‘vring_need_event’
> 
> hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of
> ‘vring_need_event’
> 
> hw/virtio/dataplane/vring.c:107: warning: implicit declaration of
> function ‘vring_used_event’
> 
> hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of
> ‘vring_used_event’
> 
> hw/virtio/dataplane/vring.c: In function ‘vring_pop’:
> 
> hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand
> of assignment
> 
> make: *** [hw/virtio/dataplane/vring.o] Error 1
> 
>  
> 
> ‘vring_avail_event’ and ‘vring_need_event’ defined in
> /linux-headers/linux/virtio_ring.h, are not available  in vring.c ?

Please send the log of "make V=1".

Paolo

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

* Re: [Qemu-devel] latest version qemu compile error
  2013-04-09  8:40 ` Paolo Bonzini
@ 2013-04-10  3:24   ` Zhanghaoyu (A)
  2013-04-10  4:23     ` Bruce Rogers
  2013-04-10  8:04     ` Paolo Bonzini
  0 siblings, 2 replies; 7+ messages in thread
From: Zhanghaoyu (A) @ 2013-04-10  3:24 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Luonengjun, Huangweidong (C), qemu-devel

> > I compile the QEMU source download from qemu.git
> > (http://git.qemu.org/git/qemu.git) on 4-9-2013, errors reported as 
> > below,
> > 
> >  
> > 
> > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
> > 
> > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of 
> > function 'vring_avail_event'
> > 
> > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 
> > 'vring_avail_event'
> > 
> > hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand 
> > of assignment
> > 
> > hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
> > 
> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of 
> > function 'vring_need_event'
> > 
> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 
> > 'vring_need_event'
> > 
> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of 
> > function 'vring_used_event'
> > 
> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 
> > 'vring_used_event'
> > 
> > hw/virtio/dataplane/vring.c: In function 'vring_pop':
> > 
> > hw/virtio/dataplane/vring.c:262: error: lvalue required as left 
> > operand of assignment
> > 
> > make: *** [hw/virtio/dataplane/vring.o] Error 1
> > 
> >  
> > 
> > 'vring_avail_event' and 'vring_need_event' defined in 
> > /linux-headers/linux/virtio_ring.h, are not available  in vring.c ?
> 
> Please send the log of "make V=1".
> 
> Paolo

The log of "make V=1" is identical with that of "make", shown as below,

hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
hw/virtio/dataplane/vring.c:72: warning: implicit declaration of function 'vring_avail_event'
hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 'vring_avail_event'
hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of assignment
hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_need_event'
hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_need_event'
hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_used_event'
hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_used_event'
hw/virtio/dataplane/vring.c: In function 'vring_pop':
hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand of assignment
make: *** [hw/virtio/dataplane/vring.o] Error 1

Thanks,
Zhang Haoyu

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

* Re: [Qemu-devel] latest version qemu compile error
  2013-04-10  3:24   ` Zhanghaoyu (A)
@ 2013-04-10  4:23     ` Bruce Rogers
  2013-04-10  8:04     ` Paolo Bonzini
  1 sibling, 0 replies; 7+ messages in thread
From: Bruce Rogers @ 2013-04-10  4:23 UTC (permalink / raw)
  To: Zhanghaoyu (A), Paolo Bonzini; +Cc: Huangweidong (C), Luonengjun, qemu-devel

 >>> On 4/9/2013 at 09:24 PM, "Zhanghaoyu (A)" <haoyu.zhang@huawei.com> wrote: 
>> > I compile the QEMU source download from qemu.git
>> > (http://git.qemu.org/git/qemu.git) on 4-9-2013, errors reported as 
>> > below,
>> > 
>> >  
>> > 
>> > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
>> > 
>> > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of 
>> > function 'vring_avail_event'
>> > 
>> > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 
>> > 'vring_avail_event'
>> > 
>> > hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand 
>> > of assignment
>> > 
>> > hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
>> > 
>> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of 
>> > function 'vring_need_event'
>> > 
>> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 
>> > 'vring_need_event'
>> > 
>> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of 
>> > function 'vring_used_event'
>> > 
>> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 
>> > 'vring_used_event'
>> > 
>> > hw/virtio/dataplane/vring.c: In function 'vring_pop':
>> > 
>> > hw/virtio/dataplane/vring.c:262: error: lvalue required as left 
>> > operand of assignment
>> > 
>> > make: *** [hw/virtio/dataplane/vring.o] Error 1
>> > 
>> >  
>> > 
>> > 'vring_avail_event' and 'vring_need_event' defined in 
>> > /linux-headers/linux/virtio_ring.h, are not available  in vring.c ?
>> 
>> Please send the log of "make V=1".
>> 
>> Paolo
> 
> The log of "make V=1" is identical with that of "make", shown as below,
> 
> hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
> hw/virtio/dataplane/vring.c:72: warning: implicit declaration of function 
> 'vring_avail_event'
> hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 
> 'vring_avail_event'
> hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of 
> assignment
> hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
> hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 
> 'vring_need_event'
> hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 
> 'vring_need_event'
> hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 
> 'vring_used_event'
> hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 
> 'vring_used_event'
> hw/virtio/dataplane/vring.c: In function 'vring_pop':
> hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand of 
> assignment
> make: *** [hw/virtio/dataplane/vring.o] Error 1
> 
> Thanks,
> Zhang Haoyu

I'm seeing the same failure. It turns out that linux-headers/linux/virtio_ring.h
is not being referenced, but rather /usr/include/linux/virtio_ring.h, which in
my case (and presumably yours as well) is not as recent and doesn't have
vring_avail_event() and vring_used_event().

Bruce

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

* Re: [Qemu-devel] latest version qemu compile error
  2013-04-10  3:24   ` Zhanghaoyu (A)
  2013-04-10  4:23     ` Bruce Rogers
@ 2013-04-10  8:04     ` Paolo Bonzini
  2013-04-10 11:03       ` Zhanghaoyu (A)
  1 sibling, 1 reply; 7+ messages in thread
From: Paolo Bonzini @ 2013-04-10  8:04 UTC (permalink / raw)
  To: qemu-devel

Il 10/04/2013 05:24, Zhanghaoyu (A) ha scritto:
> The log of "make V=1" is identical with that of "make", shown as below,
> 
> hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
> hw/virtio/dataplane/vring.c:72: warning: implicit declaration of function 'vring_avail_event'
> hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 'vring_avail_event'
> hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of assignment
> hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
> hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_need_event'
> hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_need_event'
> hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_used_event'
> hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_used_event'
> hw/virtio/dataplane/vring.c: In function 'vring_pop':
> hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand of assignment
> make: *** [hw/virtio/dataplane/vring.o] Error 1

I don't need the errors, I need the compiler command line.

Paolo

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

* Re: [Qemu-devel] latest version qemu compile error
  2013-04-10  8:04     ` Paolo Bonzini
@ 2013-04-10 11:03       ` Zhanghaoyu (A)
  2013-04-10 11:13         ` Paolo Bonzini
  0 siblings, 1 reply; 7+ messages in thread
From: Zhanghaoyu (A) @ 2013-04-10 11:03 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel@nongnu.org, Stefan Hajnoczi
  Cc: Huangweidong (C), Luonengjun

> > The log of "make V=1" is identical with that of "make", shown as below,
> > 
> > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
> > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of function 'vring_avail_event'
> > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 'vring_avail_event'
> > hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of assignment
> > hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_need_event'
> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_need_event'
> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_used_event'
> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_used_event'
> > hw/virtio/dataplane/vring.c: In function 'vring_pop':
> > hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand of assignment
> > make: *** [hw/virtio/dataplane/vring.o] Error 1
>
> I don't need the errors, I need the compiler command line.
> 
> Paolo

The gcc command line,
cc -I. -I/home/zhanghaoyu/qemu_201304091521 -I/home/zhanghaoyu/qemu_201304091521/include -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing  -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits   -I/usr/include/pixman-1   -Ihw/virtio/dataplane -Ihw/virtio/dataplane -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -MMD -MP -MT hw/virtio/dataplane/vring.o -MF hw/virtio/dataplane/vring.d -O2 -D_FORTIFY_SOURCE=2 -g  -c -o hw/virtio/dataplane/vring.o hw/virtio/dataplane/vring.c

Thanks,
Zhang Haoyu

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

* Re: [Qemu-devel] latest version qemu compile error
  2013-04-10 11:03       ` Zhanghaoyu (A)
@ 2013-04-10 11:13         ` Paolo Bonzini
  0 siblings, 0 replies; 7+ messages in thread
From: Paolo Bonzini @ 2013-04-10 11:13 UTC (permalink / raw)
  To: Zhanghaoyu (A)
  Cc: Stefan Hajnoczi, Luonengjun, qemu-devel@nongnu.org,
	Huangweidong (C)

Il 10/04/2013 13:03, Zhanghaoyu (A) ha scritto:
>>> The log of "make V=1" is identical with that of "make", shown as below,
>>> > > 
>>> > > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification':
>>> > > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of function 'vring_avail_event'
>>> > > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of 'vring_avail_event'
>>> > > hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of assignment
>>> > > hw/virtio/dataplane/vring.c: In function 'vring_should_notify':
>>> > > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_need_event'
>>> > > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_need_event'
>>> > > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of function 'vring_used_event'
>>> > > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of 'vring_used_event'
>>> > > hw/virtio/dataplane/vring.c: In function 'vring_pop':
>>> > > hw/virtio/dataplane/vring.c:262: error: lvalue required as left operand of assignment
>>> > > make: *** [hw/virtio/dataplane/vring.o] Error 1
>> >
>> > I don't need the errors, I need the compiler command line.
>> > 
>> > Paolo
> The gcc command line,
> cc -I. -I/home/zhanghaoyu/qemu_201304091521 -I/home/zhanghaoyu/qemu_201304091521/include -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing  -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits   -I/usr/include/pixman-1   -Ihw/virtio/dataplane -Ihw/virtio/dataplane -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -MMD -MP -MT hw/virtio/dataplane/vring.o -MF hw/virtio/dataplane/vring.d -O2 -D_FORTIFY_SOURCE=2 -g  -c -o hw/virtio/dataplane/vring.o hw/virtio/dataplane/vring.c

Thanks, Jan Kiszka has sent a patch for this issue.

Paolo

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

end of thread, other threads:[~2013-04-10 11:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09  8:22 [Qemu-devel] latest version qemu compile error Zhanghaoyu (A)
2013-04-09  8:40 ` Paolo Bonzini
2013-04-10  3:24   ` Zhanghaoyu (A)
2013-04-10  4:23     ` Bruce Rogers
2013-04-10  8:04     ` Paolo Bonzini
2013-04-10 11:03       ` Zhanghaoyu (A)
2013-04-10 11:13         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).