From owner-freebsd-xen@FreeBSD.ORG Thu Apr 10 18:29:11 2014 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B948EBB5 for ; Thu, 10 Apr 2014 18:29:11 +0000 (UTC) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b]) by mx1.freebsd.org (Postfix) with SMTP id 102EA1383 for ; Thu, 10 Apr 2014 18:29:10 +0000 (UTC) Received: from bloch.maths.tcd.ie ([IPv6:2001:770:10:300:225:64ff:fe38:e26f] helo=bloch.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 10 Apr 2014 19:29:09 +0100 (BST) Received: by bloch.maths.tcd.ie (Postfix, from userid 103) id D88552E03F; Thu, 10 Apr 2014 19:29:08 +0100 (IST) Date: Thu, 10 Apr 2014 19:29:08 +0100 From: "Richard M. Timoney" To: freebsd-xen@freebsd.org Subject: XENHVM won't compile with clang FreeBSD 9.2 Message-ID: <20140410182908.GA85642@maths.tcd.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 18:29:11 -0000 It seems to me I need gcc to compile a XENHVM kernel FreeBSD 9.2-STABLE I get (fatal) errors like this with clang /usr/src/sys/xen/evtchn/evtchn_dev.c:328:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator] d_name: "evtchn", ^~~~~~~ .d_name = --------------- /usr/obj/usr/src/usr.bin/clang/clang/clang --version FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 Target: x86_64-unknown-freebsd9.2 Thread model: posix /usr/src # svn info Path: . Working Copy Root Path: /usr/src URL: http://svn.freebsd.org/base/stable/9 Relative URL: ^/stable/9 Repository Root: http://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 264295 Node Kind: directory Schedule: normal Last Changed Author: gjb Last Changed Rev: 264290 Last Changed Date: 2014-04-09 04:39:57 +0100 (Wed, 09 Apr 2014) # grep clang /etc/make.conf CC=clang CXX=clang++ CPP=clang-cpp GENERIC and VT (and world) build with these clang settings. Yours, Richard -- Richard M. Timoney (richardt@maths.tcd.ie) Tel. +353-1-896 1196 School of Mathematics, Trinity College, Dublin 2, Ireland WWW http://www.maths.tcd.ie/~richardt FAX +353-1-896 2282