From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 11 22:30:46 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E19031065672 for ; Mon, 11 Jun 2012 22:30:46 +0000 (UTC) (envelope-from bfalk_bsd@brandonfa.lk) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6D38FC08 for ; Mon, 11 Jun 2012 22:30:46 +0000 (UTC) Received: by qcsg15 with SMTP id g15so2802441qcs.13 for ; Mon, 11 Jun 2012 15:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brandonfa.lk; s=google; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Sv1cN631qjEmi4fxbUeuttrsjpSBMqoxjCDB5mqAEgM=; b=hCRHOur3bX/sWUlHsPM/ay7SS5vYqZQbdlaLxx4Z5Bls/QpkPWEf2y8YdYmxKUKSyH VRS+nT50eZfKoWh9kOPOWBJMvbhax6gyn98ynLm8EyMW///yPOCR1HOH5//Te0coSmNj B37gxk6KzKlP36IeukLVNhwc3e7drkIyI4wJQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=Sv1cN631qjEmi4fxbUeuttrsjpSBMqoxjCDB5mqAEgM=; b=Mp1VyKH/pKQVJ+chc8dv+vfOyH9VIGGhUXoH7mSJA7ctL51ECPWRwiYD+tu6mddiBH ZuDFv6K8yu3dwMWto4Aw9Qb9nsOXKHR1xTWGUC5GmOEyE3qpgEpcDcx3yX1caixPXAfn NCF4nsjeDPOVCLamAvFKxsC0CqNolF0HxwUwO+qs3IX9WC1yMUFFn1JnHaFc6yFeTPgN h2/sXehCtKXHiYCz+XHKCj1Y0227VAhtjbNRwNO3Na+Gr5cavj+0KFy52YddCVLSbpoR tBnDrgPRuPWl/eehkfgU7oDRFLG4a1EipR4n1qVoOQAvmav7GtChwVXNDC1c3oikjFHA m/ZQ== Received: by 10.224.108.129 with SMTP id f1mr16370307qap.53.1339453845813; Mon, 11 Jun 2012 15:30:45 -0700 (PDT) Received: from [192.168.42.64] (wsip-184-183-177-134.dc.dc.cox.net. [184.183.177.134]) by mx.google.com with ESMTPS id bk12sm3768828qab.6.2012.06.11.15.30.45 (version=SSLv3 cipher=OTHER); Mon, 11 Jun 2012 15:30:45 -0700 (PDT) Message-ID: <4FD67192.2010001@brandonfa.lk> Date: Mon, 11 Jun 2012 18:30:42 -0400 From: Brandon Falk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkHsInLxbT6ud5hiscw+MxQ7n0HQZM1mfbqktdBiIfk7lKdrZBgQRmYrsOdRZWweRim55oR Subject: Building QEMU with clang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 22:30:47 -0000 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