From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhFZX-0007pY-TO for qemu-devel@nongnu.org; Tue, 28 May 2013 04:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhFZT-0000qQ-P7 for qemu-devel@nongnu.org; Tue, 28 May 2013 04:47:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhFZT-0000qH-7m for qemu-devel@nongnu.org; Tue, 28 May 2013 04:47:55 -0400 Date: Tue, 28 May 2013 16:47:49 +0800 From: Fam Zheng Message-ID: <20130528084749.GA16648@localhost.nay.redhat.com> References: <20130527140212.26315.46050.malonedeb@wampee.canonical.com> <42F04B025B694D9096C97265E4F8F03E@philips> <20130528083810.GG13368@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130528083810.GG13368@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [Bug 1184616] [NEW] undefined reference to`trace_qemu_anon_ram_alloc' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Nigel Horne <1184616@bugs.launchpad.net>, qemu-devel@nongnu.org On Tue, 05/28 10:38, Stefan Hajnoczi wrote: > On Mon, May 27, 2013 at 09:04:26PM -0000, Nigel Horne wrote: > > > On Mon, May 27, 2013 at 4:02 PM, Nigel Horne <1184616@bugs.launchpad.net> > > > wrote: > > >> The latest git version (commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29) > > >> fails to compile: > > >> > > >> ... > > >> LINK qemu-ga > > >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_alloc': > > >> oslib-posix.c:(.text+0x154): undefined reference to > > >> `trace_qemu_anon_ram_alloc' > > >> libqemuutil.a(oslib-posix.o): In function `qemu_anon_ram_free': > > >> oslib-posix.c:(.text+0x1e7): undefined reference to > > >> `trace_qemu_anon_ram_free' > > >> collect2: error: ld returned 1 exit status > > >> make: *** [qemu-ga] Error 1 > > >> > > >> This is on Ubuntu 13.04, gcc 4.7.3, configure flags: > > >> './configure' '--enable-linux-aio' '--enable-kvm' '--enable-vhost-net' > > > > > > Please try: > > > make distclean && ./configure --enable-linux-aio --enable-kvm > > > --enable-vhost-net && make > > > > I tried that before I raised the bug. However I tried it again to be sure, > > and yes I still get the same error. > > Please post the output of "git status". I wonder if there are stale > files because the build works fine here. > > Stefan > In my case, git ignored files may also have affects. So make distclean then git clean -dfx is worth a try. -- Fam