Received: from eggs.gnu.org ([140.186.70.92]:59958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqqOI-0000xe-DF for qemu-devel@nongnu.org; Tue, 09 Aug 2011 13:47:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqqOE-0002OX-Nz for qemu-devel@nongnu.org; Tue, 09 Aug 2011 13:46:58 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:43005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqqOE-0002NK-Jp for qemu-devel@nongnu.org; Tue, 09 Aug 2011 13:46:54 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e8.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p79HXc24021546 for ; Tue, 9 Aug 2011 13:33:38 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p79HkqH0216824 for ; Tue, 9 Aug 2011 13:46:52 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p79HkpZD017643 for ; Tue, 9 Aug 2011 13:46:52 -0400 From: "Aneesh Kumar K.V" In-Reply-To: References: <87fwlc9t0v.fsf@skywalker.in.ibm.com> Date: Tue, 09 Aug 2011 23:16:43 +0530 Message-ID: <87y5z232bg.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] build failure with coroutine-gthread List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl , Stefan Hajnoczi Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , QEMU Developers On Tue, 9 Aug 2011 17:28:17 +0000, Blue Swirl wrote: > On Mon, Aug 8, 2011 at 9:29 AM, Stefan Hajnoczi wrot= e: > > On Mon, Aug 8, 2011 at 10:01 AM, Aneesh Kumar K.V > > wrote: > >> > >> > >> =C2=A0LINK =C2=A0qemu-ga > >> coroutine-gthread.o: In function `coroutine_init': > >> /home/opensource/sources/qemu/qemu-upstream/coroutine-gthread.c:39: un= defined reference to `g_thread_init' > >> collect2: ld returned 1 exit status > >> > >> The below patch fix the failure. =C2=A0I also added the patch in the V= irtFS > >> pull request. > > > > It appears coroutine-core v7 was merged instead of v8. =C2=A0The > > differences are minor: > > =C2=A0* Bisectability: introduce gthread implementation before ucontext= /fibers > > =C2=A0* Depend on gthread, not just glib, for multithreaded programming > > > > Here is the patchwork link to the gthread dependency patch in case a > > committer wants to merge it immediately: > > http://patchwork.ozlabs.org/patch/106810/ >=20 > Coroutines only need gthreads when both ucontext and win32 versions > are unavailable. This is handled better by my patch: > http://lists.nongnu.org/archive/html/qemu-devel/2011-08/msg00998.html We would soon need that for VirtFS. So that will be another check of=20 if (linux && atttr ) -aneesh