Building QEMU with clang

Brandon Falk bfalk_bsd at brandonfa.lk
Mon Jun 11 22:30:47 UTC 2012


Greetings,

I could go on a rant, but I'll keep it short and sweet. I'm wondering if 
there are any efforts to get QEMU building with clang. I know this 
should go on the QEMU mailing lists, but I wanted to post it here as 
well as I'd be using FreeBSD as the host.

When working with qemu-devel (with --enable-tcg-interpreter), I get:

multiboot.S:31:8: error: .code16 not supported yet

multiboot.S:123:17: error: unexpected token in argument list
  data32 lgdt %gs:6
                 ^
multiboot.S:131:15: error: unknown token in expression
  data32 ljmp *%gs:0

Now, code16 is a pretty big deal, and that's obviously a feature that 
clang needs to add. However what is it with the complaints of the other 
two (I'm an Intel syntax guy, not AT&T :P)?

Semi-sidenote:
Since clang does not support global registers, --enable-tcg-interpreter 
has to be specified to ./configure. This should be added to the port as 
an option.

-Brandon


More information about the freebsd-emulation mailing list