From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl3fn-0001A9-VM for qemu-devel@nongnu.org; Wed, 11 Jan 2012 14:17:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl3fk-0000Tb-8d for qemu-devel@nongnu.org; Wed, 11 Jan 2012 14:17:23 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:43634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl3fk-0000TL-4E for qemu-devel@nongnu.org; Wed, 11 Jan 2012 14:17:20 -0500 Received: by werb10 with SMTP id b10so995305wer.4 for ; Wed, 11 Jan 2012 11:17:18 -0800 (PST) From: Rui Carmo Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 11 Jan 2012 19:17:16 +0000 References: Message-Id: Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: [Qemu-devel] LLVM builds on Lion (Xcode 4.2.1)? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello,=20 I posted this to the list a couple of days ago but I still don't see it = in the archives, so here goes again... I've been trying to get a working build of QEMU 1.0 (or HEAD) that would = build or run on Mac OS X Lion without segfaulting or spinlocking, and so = far the only way I've been able to build it _and_ run it is by using = gcc-4.2 instead of LLVM. Clang doesn't work either (it doesn't support = global register variables). I was wondering who might be looking into that, since I couldn't figure = out where this kind of issue would be classified in the MAINTAINERS file = I've only found Andreas (hi!) listed where it concerns Cocoa, but this = is not a Cocoa issue. For the record, the way I got it to build was patching fpu/softfloat.h = (see below, I think this has been submitted as a formal patch by someone = else, but can't find it either) and setting --cc=3Dgcc-4.2 = --host-cc=3Dgcc-4.2. The issue with that is that "plain" GCC isn't bundled with Xcode anymore = (even though I have it on all the machines I tried this, it was = apparently removed around Xcode 4.1 or thereabouts and my upgrades = preserved it), so I'd like to get in touch with someone that might be = able to address the LLVM issue. Regards, R. http://the.taoofmac.com -- diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 07c2929..229d834 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -57,7 +57,7 @@ typedef uint8_t flag; typedef uint8_t uint8; typedef int8_t int8; #ifndef _AIX -typedef int uint16; +typedef uint16_t uint16; -typedef int int16; +typedef int16_t int16; #endif typedef unsigned int uint32; (remember, this is not a formal patch)