From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNqpg-0003FA-PN for qemu-devel@nongnu.org; Fri, 07 Aug 2015 19:13:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNqpb-0007zT-3C for qemu-devel@nongnu.org; Fri, 07 Aug 2015 19:13:48 -0400 Received: from mail-vk0-f44.google.com ([209.85.213.44]:36587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNqpa-0007zO-WD for qemu-devel@nongnu.org; Fri, 07 Aug 2015 19:13:43 -0400 Received: by vkci6 with SMTP id i6so43571962vkc.3 for ; Fri, 07 Aug 2015 16:13:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <6D2243E1-9AB5-43A1-B6B1-A99C71A48B69@gmail.com> From: Peter Maydell Date: Sat, 8 Aug 2015 00:13:23 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] qemu-doc.texi: Add information on compiling source code on Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid Cc: qemu-devel qemu-devel On 7 August 2015 at 21:32, Programmingkid wrote: > > On Aug 7, 2015, at 1:00 PM, Peter Maydell wrote: >> (https://trac.macports.org/wiki/UsingTheRightCompiler >> suggests that XCode 3.2 for OSX 10.6 provided a non-default >> 'clang'; I don't have a 10.6 + 3.2 system to check whether that >> clang will build QEMU though. If it does then we should >> recommend using it rather than building gcc. 10.5 users >> are definitely stuck with finding or building a non-Apple >> compiler, though.) > > I just checked and my system does include clang. Didn't even know > about it. Too bad it didn't work to compile QEMU. It doesn't support > Thread-Local Storage. It is probably too old (version 3.0). Thanks for testing that -- you're running OSX 10.6, right? I guess the TLS stuff got added to clang for the version that's in Xcode 4.2. So it looks like we have a fairly straightforward * 10.5 and 10.6 -> compile a gcc or download a third-party build * 10.7 and above -> use Xcode's clang division. -- PMM