From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrIsm-0003pw-50 for qemu-devel@nongnu.org; Fri, 04 Jan 2013 20:49:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TrIsk-0000Om-W4 for qemu-devel@nongnu.org; Fri, 04 Jan 2013 20:49:08 -0500 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:43156 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrIsk-0000Og-SS for qemu-devel@nongnu.org; Fri, 04 Jan 2013 20:49:06 -0500 Received: from rox.home.comstyle.com (unknown [IPv6:2001:470:b01e:3:4c04:9449:4de5:5053]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 915AC2B05B for ; Fri, 4 Jan 2013 20:49:00 -0500 (EST) Date: Fri, 4 Jan 2013 20:48:59 -0500 From: Brad Smith Message-ID: <20130105014858.GE11220@rox.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] QEMU build fails with Clang? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Supposedly QEMU is able to build with Clang and yet trying to do so I am seeing the build fail as follows.. Comments? gmake[1]: Entering directory `/home/brad/qemu/pc-bios/optionrom' clang -I. -I/home/brad/qemu -I/home/brad/qemu/include -I/home/brad/qemu/libcacard -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -I/home/brad/qemu -fno-stack-protector -MMD -MP -MT multiboot.o -MF ./multiboot.d -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -I/home/brad/qemu -fno-stack-protector -c -o multiboot.o multiboot.S multiboot.S:31:1: error: unexpected directive .code16 .code16; .text; .global _start; _start:; .short 0xaa55; .byte (_end - _start) / 512; lret; .org 0x18; .short 0; .short _pnph; _pnph: .ascii "$PnP"; .byte 0x01; .byte ( _pnph_len / 16 ); .short 0x0000; .byte 0x00; .byte 0x00; .long 0x00000000; .short _manufacturer; .short _product; .long 0x00000000; .short 0x0000; .short 0x0000; .short _bev; .short 0x0000; .short 0x0000; .equ _pnph_len, . - _pnph; _bev:; movw %cs, %ax; movw %ax, %ds; ^ multiboot.S:31:8: error: .code16 not supported yet .code16; .text; .global _start; _start:; .short 0xaa55; .byte (_end - _start) / 512; lret; .org 0x18; .short 0; .short _pnph; _pnph: .ascii "$PnP"; .byte 0x01; .byte ( _pnph_len / 16 ); .short 0x0000; .byte 0x00; .byte 0x00; .long 0x00000000; .short _manufacturer; .short _product; .long 0x00000000; .short 0x0000; .short 0x0000; .short _bev; .short 0x0000; .short 0x0000; .equ _pnph_len, . - _pnph; _bev:; movw %cs, %ax; movw %ax, %ds; ^ multiboot.S:71:135: error: unknown directive read_fw 0x0a; mov %eax, %edi; read_fw 0x0b; mov %eax, %ecx; mov $0x12, %ax; mov $0x510, %edx; outw %ax, (%dx); mov $0x511, %dx; cld; .dc.b 0xf3,0x6c ^ multiboot.S:102:2: error: unknown directive .dc.b 0x26,0x67,0x66,0x89,0x4f,0xfc ^ multiboot.S:130:17: error: unexpected token in argument list data32 lgdt %gs:6 ^ multiboot.S:138:15: error: unknown token in expression data32 ljmp *%gs:0 ^ multiboot.S:152:135: error: unknown directive read_fw 0x07; mov %eax, %edi; read_fw 0x08; mov %eax, %ecx; mov $0x11, %ax; mov $0x510, %edx; outw %ax, (%dx); mov $0x511, %dx; cld; .dc.b 0xf3,0x6c ^ gmake[1]: *** [multiboot.o] Error 1 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.