Qemu on OS X …

So after the whole mountain lion thing I got the latest Xcode..

$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure –disable-checking –enable-werror –prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 –mandir=/share/man –enable-languages=c,objc,c++,obj-c++ –program-prefix=llvm- –program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ –with-slibdir=/usr/lib –build=i686-apple-darwin11 –enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local –program-prefix=i686-apple-darwin11- –host=x86_64-apple-darwin11 –target=i686-apple-darwin11 –with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

And it ‘compiles’ a Qemu but it just hangs… LLVM really broke Qemu … So in the interim if you want Qemu on OS X keep a copy of Snow Leopard handy!

Of course I tried using Snow Leopards gcc on Mountain Lion, but it won’t compile any of the Cocoa stuff.

Go figure.

8 thoughts on “Qemu on OS X …”

    1. does that download a binary, or let you build it…? I’d want to fix the ne2000 & ad in adlib sound… After looking it looks like its still full of issues.. CLANG won’t do external inline optimizations, and new gcc llvm builds a qemu that doesn’t work right. I would *assume* that its using the static interpreted version as a stopgap..

      1. Homebrew builds everything. It is a great alternative to macports. In my opinion, it’s currently the best package manager for apps that are built from source (most oss stuff is available via homebrew). If you’re tinkering with such programms, I strongly suggest, that you give homebrew a try. Homebrew also makes it easy to roll your own formula (their name for what the set of instructions on how to build your favourite program.) including your patches. I wasn’t able to test much since the upgrade to 10.8, but at least it builds qemu and simh. I you’re using

  1. I wonder if 10.7 worked?

    A 10.6 SDK might work. (I guess you tried that?)

    Does the native build on Snow Lepoard work on Mountain Lion?

    Too many questions…

    1. not sure, I don’t have 10.7 … I tried the 10.6 SDK on 10.8 and that… didn’t compile any coca stuff.. but 10.8 runs 10.6 binaries and that feels much ‘cleaner’ to use as a build….

      CLANG can’t properly build the style that Qemu uses, and LLVM produces faulty code… I guess I could try to build a vanilla GCC on 10.8 …. and hope for the best…

      But that feels about as hokey as my DJGPP cross compiling on OS X ..

  2. Soory for my English : I’ve VirtualBox on my Mac. But for many reasons i’d would like to have qemu (without install it) : do you think this is possible ?
    My goal is to have qemu in OSX and use it in command line (for other cpu than x86)
    Thanks for your help

  3. One thing kind of interesting to me is that Doom running on MS-DOS 4.01 on Qemu 1.1.1 on OS X is WAY faster than Win32 … Something about UNIX????

    My Mac Pro is a 2006 model with 2Ghz Xeons … My laptop is something more modernish …

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.