From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0CPj-0003Sh-Ls for qemu-devel@nongnu.org; Sat, 11 Aug 2012 10:11:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0CPi-0003uD-L7 for qemu-devel@nongnu.org; Sat, 11 Aug 2012 10:11:39 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:61353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0CPi-0003u9-H8 for qemu-devel@nongnu.org; Sat, 11 Aug 2012 10:11:38 -0400 Received: by yenm4 with SMTP id m4so2233009yen.4 for ; Sat, 11 Aug 2012 07:11:37 -0700 (PDT) MIME-Version: 1.0 Date: Sat, 11 Aug 2012 15:11:37 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] building qemu on macos mountain lion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: =?UTF-8?Q?Andreas_F=C3=A4rber?= , karl-michael.schindler@web.de [Karl: I've cc'd you because I think you were the person asking about this on #qemu IRC yesterday. Apologies if I have the wrong person...] I just had a go at building qemu on macos X (mountain lion). The good news is I got something working, but I had to fiddle with stuff a bit: * block/raw-posix.c includes IOKitLib.h -- unless we build with -DOS_OBJECT_USE_OBJC=0 the system headers end up trying to use objective C syntax and gcc barfs * the ui/cocoa.m file uses a system header which pulls in NSTask.h which uses Apple's non-standard "Blocks" objC extension. I worked round this by having rules.mak use clang to build all .m files (they don't use the major gcc-only-ism we need and they link fine with everything else) [This is compiling with a fink build of mainline gcc-4.7.1] Also 'make check' fails: GTESTER tests/test-iov send: Message too long recv: Message too long GTester: last random seed: R02Sf266e22f7524d5995dc2694b2a44c128 probably we're relying on a linuxism for sendmsg() splitting long messages, haven't investigated yet. I'll try to put together some patches for this but thought I'd send this email to see if anybody else had already looked at them. -- PMM