From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGj3Y-0003Bt-JQ for qemu-devel@nongnu.org; Fri, 21 Feb 2014 00:53:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGj3S-0000Ls-Hz for qemu-devel@nongnu.org; Fri, 21 Feb 2014 00:53:52 -0500 Received: from smtp.mail.uni-mannheim.de ([134.155.96.80]:53516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGj3S-0000Lo-B9 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 00:53:46 -0500 Message-ID: <5306E9D9.9000804@weilnetz.de> Date: Fri, 21 Feb 2014 06:53:29 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1392918631-14234-1-git-send-email-peter.maydell@linaro.org> <5306713E.2040508@weilnetz.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] tcg/i386: Fix build for systems without working cpuid.h (MacOSX, Win32) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Patch Tracking , QEMU Developers , Richard Henderson Am 20.02.2014 23:18, schrieb Peter Maydell: > On 20 February 2014 21:18, Stefan Weil wrote: >> MinGW-w64's gcc has cpuid.h, so my 32 and 64 bit cross builds work >> without problems. We can use that code for MinGW, too, but we could also >> stop supporting MinGW (which has several other deficits). > > We need the conditionals for MacOSX builds anyway, so we > don't need to drop MinGW for this. (I compile with the 32 bit > version rather than -w64 because I was able to get that to > install on my Ubuntu box, whereas the -w64 seemed to have > dependency issues/conflicts somehow. I figured the 32 bit > version was good enough for detecting the typical "long is > a funny size and we don't build" issues.) One of my hosts runs Ubuntu precise. mingw-w64 works fine here and includes both 32 bit and 64 compilers and libraries (the -w64 in its name might be misleading). Maybe you will also need mingw-w64-tools, and you can also add g++-mingw-w64 (which also includes two compilers). Run configure with --cross-prefix=i686-w64-mingw32- or --cross-prefix=x86_64-w64-mingw32- to build 32 or 64 bit executables. Stefan