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