From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqJDR-0008C4-4E for qemu-devel@nongnu.org; Mon, 08 Aug 2011 02:21:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqJDQ-000720-7v for qemu-devel@nongnu.org; Mon, 08 Aug 2011 02:21:33 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:53080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqJDQ-00071p-3L for qemu-devel@nongnu.org; Mon, 08 Aug 2011 02:21:32 -0400 Received: by gyd12 with SMTP id 12so1952740gyd.4 for ; Sun, 07 Aug 2011 23:21:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 8 Aug 2011 07:21:29 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Compilation error of coroutine-win32.c with gcc version 3.4.5 (mingw-vista special r3) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roy Tam Cc: qemu-devel On Mon, Aug 8, 2011 at 1:30 AM, Roy Tam wrote: > Hi all, > > I checked out latest git and tried to compile QEMU but I got this message= : > qemu$ make V=3D1 > gcc -m32 -D__USE_MINGW_ANSI_STDIO=3D1 -DWIN32_LEAN_AND_MEAN > -DWINVER=3D0x501 -D_FORTIFY_SOURCE=3D2 -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes > -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes > -fno-strict-aliasing -O3 -msse3 -msse2 -msse -mmmx > -fomit-frame-pointer -mpreferred-stack-boundary=3D2 -ffast-math -pipe > -funroll-loops -fforce-addr -mfpmath=3Dsse =A0-Wendif-labels > -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self > -Wold-style-definition =A0-mms-bitfields -Ic:/MinGW/include/glib-2.0 > -Ic:/MinGW/lib/glib-2.0/include =A0 -I/usr/home/User/qemu/slirp -I. > -I/usr/home/User/qemu -I/usr/home/User/qemu/fpu -MMD -MP -MT > coroutine-win32.o -MF ./coroutine-win32.d -O2 -g =A0-c -o > coroutine-win32.o coroutine-win32.c > coroutine-win32.c:36: error: thread-local storage not supported for this = target > coroutine-win32.c:37: error: thread-local storage not supported for this = target > make: *** [coroutine-win32.o] Error 1 Hi Roy, Others have successfully built for win32. Are you able to upgrade to a newer toolchain, gcc-3.4 is 6 years old and doesn't support __thread variables? Stefan