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 1/3] Add support for OpenBSD

To: John Clemens <jclemens@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 1/3] Add support for OpenBSD
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 18 Oct 2006 19:19:19 +0100
Cc: Christoph Egger <Christoph.Egger@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Anil Madhavapeddy <anil@xxxxxxxxxxxxx>
Delivery-date: Wed, 18 Oct 2006 11:20:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1161191291.8298.11.camel@jclemens>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acby4e1VLAIc1l7VEduNMwAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH 1/3] Add support for OpenBSD
User-agent: Microsoft-Entourage/11.2.5.060620
On 18/10/06 18:08, "John Clemens" <jclemens@xxxxxxxxxxxxxxxxx> wrote:

> I can tell you for a fact that that check doesn't work on Ubuntu edgy.
> 
> 'test-gcc-flag' greps the gcc --help output, which doesn't do the right
> thing, at least on Ubuntu.  I believe the linux kernel equivalent tries
> to actually use the option and checks the gcc return code.
> 
> I was in the midst of tracking this down a few weeks ago when I
> discovered other HVM bugs that apparently only show up with gcc v4 (bad
> EFER values), so I moved back to compiling with gcc-3.4 and dropped it.
> I'll see if I can finish it up and submit a patch unless someone beats
> me to it.

Okay, I checked in something like the Linux cc-option function as
xen-unstable changeset 11820:b2e71d574045. Actually I changed it because
Linux allows through options which aren't really recognised (and cause a
warning to be printed) but which do not cause gcc to return an error code.
Instead I look for any output on stdout/stderr. It should be more robust
than grepping the output of gcc long help!

By the way, the EFER bug was fixed weeks ago.
 
 -- Keir



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