From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPTpI-0001ED-Fr for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:22:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPTpG-0000F5-6r for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:22:48 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:37134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPTpF-0000EU-Bj for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:22:46 -0400 From: "Zhanghaoyu (A)" Date: Tue, 9 Apr 2013 08:22:33 +0000 Message-ID: Content-Language: zh-CN Content-Type: multipart/alternative; boundary="_000_D3E216785288A145B7BC975F83A2ED103FE1697Aszxeml556mbxchi_" MIME-Version: 1.0 Subject: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: "Huangweidong (C)" , Luonengjun --_000_D3E216785288A145B7BC975F83A2ED103FE1697Aszxeml556mbxchi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I compile the QEMU source download from qemu.git (http://git.qemu.org/git/q= emu.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 'vrin= g_avail_event' hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of a= ssignment 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 'vri= ng_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 'vri= ng_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 ? --_000_D3E216785288A145B7BC975F83A2ED103FE1697Aszxeml556mbxchi_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 ‘vrin= g_enable_notification’:

hw/virtio/dataplane/vring.c:72: warning: implicit de= claration of function ‘vring_avail_event’

hw/virtio/dataplane/vring.c:72: warning: nested exte= rn declaration of ‘vring_avail_event’

hw/virtio/dataplane/vring.c:72: error: lvalue requir= ed as left operand of assignment

hw/virtio/dataplane/vring.c: In function ‘vrin= g_should_notify’:

hw/virtio/dataplane/vring.c:107: warning: implicit d= eclaration of function ‘vring_need_event’

hw/virtio/dataplane/vring.c:107: warning: nested ext= ern declaration of ‘vring_need_event’

hw/virtio/dataplane/vring.c:107: warning: implicit d= eclaration of function ‘vring_used_event’

hw/virtio/dataplane/vring.c:107: warning: nested ext= ern declaration of ‘vring_used_event’

hw/virtio/dataplane/vring.c: In function ‘vrin= g_pop’:

hw/virtio/dataplane/vring.c:262: error: lvalue requi= red as left operand of assignment

make: *** [hw/virtio/dataplane/vring.o] Error 1=

 

‘vring_avail_event’ and ‘vring_nee= d_event’ defined in /linux-headers/linux/virtio_ring.h, are not avail= able  in vring.c ?

--_000_D3E216785288A145B7BC975F83A2ED103FE1697Aszxeml556mbxchi_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPU6T-0007sI-1M for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:40:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPU6Q-0006aU-6k for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:40:32 -0400 Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:55509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPU6Q-0006aJ-3k for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:40:30 -0400 Received: by mail-qc0-f182.google.com with SMTP id k19so2859312qcs.41 for ; Tue, 09 Apr 2013 01:40:29 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5163D3F6.3060903@redhat.com> Date: Tue, 09 Apr 2013 10:40:22 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPleh-0003ib-7i for qemu-devel@nongnu.org; Tue, 09 Apr 2013 23:25:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPlef-0000Id-VI for qemu-devel@nongnu.org; Tue, 09 Apr 2013 23:25:03 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:57442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPlef-0000Gg-CS for qemu-devel@nongnu.org; Tue, 09 Apr 2013 23:25:01 -0400 From: "Zhanghaoyu (A)" Date: Wed, 10 Apr 2013 03:24:42 +0000 Message-ID: References: <5163D3F6.3060903@redhat.com> In-Reply-To: <5163D3F6.3060903@redhat.com> Content-Language: zh-CN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=20 > > below, > >=20 > > =20 > >=20 > > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification': > >=20 > > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of=20 > > function 'vring_avail_event' > >=20 > > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of=20 > > 'vring_avail_event' > >=20 > > hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand= =20 > > of assignment > >=20 > > hw/virtio/dataplane/vring.c: In function 'vring_should_notify': > >=20 > > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of=20 > > function 'vring_need_event' > >=20 > > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of= =20 > > 'vring_need_event' > >=20 > > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of=20 > > function 'vring_used_event' > >=20 > > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration of= =20 > > 'vring_used_event' > >=20 > > hw/virtio/dataplane/vring.c: In function 'vring_pop': > >=20 > > hw/virtio/dataplane/vring.c:262: error: lvalue required as left=20 > > operand of assignment > >=20 > > make: *** [hw/virtio/dataplane/vring.o] Error 1 > >=20 > > =20 > >=20 > > 'vring_avail_event' and 'vring_need_event' defined in=20 > > /linux-headers/linux/virtio_ring.h, are not available in vring.c ? >=20 > Please send the log of "make V=3D1". >=20 > Paolo The log of "make V=3D1" 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 'vrin= g_avail_event' hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand of a= ssignment 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 'vri= ng_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 'vri= ng_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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmZG-0006zT-0Q for qemu-devel@nongnu.org; Wed, 10 Apr 2013 00:23:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPmZE-0007o4-KN for qemu-devel@nongnu.org; Wed, 10 Apr 2013 00:23:29 -0400 Received: from novprvoes0310.provo.novell.com ([137.65.248.74]:45551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmZE-0007no-CX for qemu-devel@nongnu.org; Wed, 10 Apr 2013 00:23:28 -0400 Message-Id: <516494DB02000048000D8829@novprvoes0310.provo.novell.com> Date: Tue, 09 Apr 2013 22:23:23 -0600 From: "Bruce Rogers" References: <5163D3F6.3060903@redhat.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Zhanghaoyu (A)" , Paolo Bonzini Cc: "Huangweidong (C)" , Luonengjun , qemu-devel >>> On 4/9/2013 at 09:24 PM, "Zhanghaoyu (A)" = wrote:=20 >> > I compile the QEMU source download from qemu.git >> > (http://git.qemu.org/git/qemu.git) on 4-9-2013, errors reported as=20 >> > below, >> >=20 >> > =20 >> >=20 >> > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification': >> >=20 >> > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of=20 >> > function 'vring_avail_event' >> >=20 >> > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration = of=20 >> > 'vring_avail_event' >> >=20 >> > hw/virtio/dataplane/vring.c:72: error: lvalue required as left = operand=20 >> > of assignment >> >=20 >> > hw/virtio/dataplane/vring.c: In function 'vring_should_notify': >> >=20 >> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of=20 >> > function 'vring_need_event' >> >=20 >> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration = of=20 >> > 'vring_need_event' >> >=20 >> > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of=20 >> > function 'vring_used_event' >> >=20 >> > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration = of=20 >> > 'vring_used_event' >> >=20 >> > hw/virtio/dataplane/vring.c: In function 'vring_pop': >> >=20 >> > hw/virtio/dataplane/vring.c:262: error: lvalue required as left=20 >> > operand of assignment >> >=20 >> > make: *** [hw/virtio/dataplane/vring.o] Error 1 >> >=20 >> > =20 >> >=20 >> > 'vring_avail_event' and 'vring_need_event' defined in=20 >> > /linux-headers/linux/virtio_ring.h, are not available in vring.c ? >>=20 >> Please send the log of "make V=3D1". >>=20 >> Paolo >=20 > The log of "make V=3D1" is identical with that of "make", shown as = below, >=20 > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification': > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of = function=20 > 'vring_avail_event' > hw/virtio/dataplane/vring.c:72: warning: nested extern declaration of=20 > 'vring_avail_event' > hw/virtio/dataplane/vring.c:72: error: lvalue required as left operand = of=20 > assignment > hw/virtio/dataplane/vring.c: In function 'vring_should_notify': > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of = function=20 > 'vring_need_event' > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration = of=20 > 'vring_need_event' > hw/virtio/dataplane/vring.c:107: warning: implicit declaration of = function=20 > 'vring_used_event' > hw/virtio/dataplane/vring.c:107: warning: nested extern declaration = of=20 > '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=20 > assignment > make: *** [hw/virtio/dataplane/vring.o] Error 1 >=20 > Thanks, > Zhang Haoyu I'm seeing the same failure. It turns out that linux-headers/linux/virtio_r= ing.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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPq1m-0004t1-NV for qemu-devel@nongnu.org; Wed, 10 Apr 2013 04:05:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPq1l-0005x2-F6 for qemu-devel@nongnu.org; Wed, 10 Apr 2013 04:05:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:59922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPq1l-0005wu-8g for qemu-devel@nongnu.org; Wed, 10 Apr 2013 04:05:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UPq1d-00061y-1p for qemu-devel@nongnu.org; Wed, 10 Apr 2013 10:05:01 +0200 Received: from 93-34-176-20.ip50.fastwebnet.it ([93.34.176.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Apr 2013 10:05:01 +0200 Received: from pbonzini by 93-34-176-20.ip50.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Apr 2013 10:05:01 +0200 From: Paolo Bonzini Date: Wed, 10 Apr 2013 10:04:52 +0200 Message-ID: References: <5163D3F6.3060903@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit In-Reply-To: Subject: Re: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsob-0005q5-Kc for qemu-devel@nongnu.org; Wed, 10 Apr 2013 07:03:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPsoZ-00078g-ST for qemu-devel@nongnu.org; Wed, 10 Apr 2013 07:03:45 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:39696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsoZ-00077M-AM for qemu-devel@nongnu.org; Wed, 10 Apr 2013 07:03:43 -0400 From: "Zhanghaoyu (A)" Date: Wed, 10 Apr 2013 11:03:20 +0000 Message-ID: References: <5163D3F6.3060903@redhat.com> In-Reply-To: Content-Language: zh-CN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , "qemu-devel@nongnu.org" , Stefan Hajnoczi Cc: "Huangweidong (C)" , Luonengjun > > The log of "make V=3D1" is identical with that of "make", shown as belo= w, > >=20 > > hw/virtio/dataplane/vring.c: In function 'vring_enable_notification': > > hw/virtio/dataplane/vring.c:72: warning: implicit declaration of functi= on '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 funct= ion '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 funct= ion '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. >=20 > Paolo The gcc command line, cc -I. -I/home/zhanghaoyu/qemu_201304091521 -I/home/zhanghaoyu/qemu_2013040= 91521/include -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LA= RGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-= strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -W= endif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-= security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declarat= ion -Wold-style-definition -Wtype-limits -I/usr/include/pixman-1 -Ihw/v= irtio/dataplane -Ihw/virtio/dataplane -pthread -I/usr/include/glib-2.0 -I/u= sr/lib64/glib-2.0/include -MMD -MP -MT hw/virtio/dataplane/vring.o -MF hw= /virtio/dataplane/vring.d -O2 -D_FORTIFY_SOURCE=3D2 -g -c -o hw/virtio/dat= aplane/vring.o hw/virtio/dataplane/vring.c Thanks, Zhang Haoyu From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsyJ-0000Nj-P2 for qemu-devel@nongnu.org; Wed, 10 Apr 2013 07:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPsyI-00026x-Bj for qemu-devel@nongnu.org; Wed, 10 Apr 2013 07:13:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsyI-00026r-2e for qemu-devel@nongnu.org; Wed, 10 Apr 2013 07:13:46 -0400 Message-ID: <5165495F.40805@redhat.com> Date: Wed, 10 Apr 2013 13:13:35 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <5163D3F6.3060903@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] latest version qemu compile error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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