From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33079 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkfAI-0004Q2-FL for qemu-devel@nongnu.org; Sun, 15 Aug 2010 11:30:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkfAD-0000zw-Im for qemu-devel@nongnu.org; Sun, 15 Aug 2010 11:30:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24604) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkfAD-0000zp-Be for qemu-devel@nongnu.org; Sun, 15 Aug 2010 11:30:21 -0400 Message-ID: <4C680807.3080303@redhat.com> Date: Sun, 15 Aug 2010 18:30:15 +0300 From: Avi Kivity MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [qemu-kvm] build fail on i386 RHEL5u4 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Hao, Xudong" Cc: "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" On 08/11/2010 04:49 AM, Hao, Xudong wrote: > Hi, > Recently I build qemu-kvm on 32bit RHEL5u4/RHEL5u5, it will fail on fuction "vhost_dev_sync_region". But RHEL5u1 system is fine to build. > Did anyone meet similar issue? > > qemu-kvm commit: 59d71ddb432db04b57ee2658ce50a3e35d7db97e > > build error: > ... > CC x86_64-softmmu/i8254.o > CC x86_64-softmmu/i8254-kvm.o > CC x86_64-softmmu/device-assignment.o > LINK x86_64-softmmu/qemu-system-x86_64 > vhost.o: In function `vhost_dev_sync_region': > /home/source/qemu-kvm/hw/vhost.c:47: undefined reference to `__sync_fetch_and_and_4' > collect2: ld returned 1 exit status > make[1]: *** [qemu-system-x86_64] Error 1 > make: *** [subdir-x86_64-softmmu] Error 2 > Appears to be a gcc bug. I opened https://bugzilla.redhat.com/show_bug.cgi?id=624279 to track this. Meanwhile, installing the gcc44 package and building with it (./configure --cc=gcc44) appears to work. -- error compiling committee.c: too many arguments to function