WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] xen: Deal with stdarg.h and -nostdinc

To: Keir Fraser <keir@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: Deal with stdarg.h and -nostdinc
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Fri, 27 May 2011 14:27:00 +0100
Cc: Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 27 May 2011 07:10:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CA056355.2DB48%keir@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20110527131600.GA5098@xxxxxxxxxxxxxxxxxxxxxxx> <CA056355.2DB48%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
At 14:19 +0100 on 27 May (1306505941), Keir Fraser wrote:
> On 27/05/2011 14:16, "Tim Deegan" <Tim.Deegan@xxxxxxxxxx> wrote:
> 
> >> NetBSD is about to add clang/llvm support. If -isystem works for both
> >> gcc and clang then this should be fine.
> > 
> > Building Xen with clang I had to remove the -nostdinc because I couldn't
> > find a sensible way of automatically finding the clang include paths.
> > It may be that I just wasn't looking in the right place.
> 
> Well, keeping the -nostdinc -isystem line as CFLAGS-$(gcc) wouldn't be so
> bad really. I wasn't sure whether clang would have support for these gcc
> command line options for dumping spec.

My current clang seems happy enough with this, actually, though wierdly
it reports /usr/lib/gcc/x86_64-linux-gnu/4.5.2/include, so lord knows
what would happen on a machine with clang but not gcc installed.

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel