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] Attempt to build xen-unstable on F11 ( gcc version 4.4.0

To: Jun Koi <junkoi2004@xxxxxxxxx>
Subject: Re: [Xen-devel] Attempt to build xen-unstable on F11 ( gcc version 4.4.0 )
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Wed, 24 Jun 2009 08:56:39 -0700 (PDT)
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Delivery-date: Wed, 24 Jun 2009 08:57:18 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1245858999; bh=8ljUWV16H/OeUxMgo0C9pdtbLmJTIRzwaep+hTk0fL4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=g79m1ShyWwg1kebfNIj0bzyQH08SD8LEMuxipl2HUEmR7ulj+ISyN3mu+ODdDwzf9tkaJT1EBkVeWLX7fwnNS91N1KDsD5K7crJdPOmCESfMbpSINaSXkplWZxEm/7AeJSWrRcCzLGzeA4PeudygfpWPuMxUg5NEQYVt1ZaCAp8=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=avF0xDALtGSQmm+aqK/l2HECh07mN8UBJ8g74TKWk8gTQWMXfpigIggjshg1mt+XeGYfczeRynquQQvrdVzJj1PwNKvdViu6xse/061f7k6PLxwuKJnbpAMypzstuZ1DUX1+KxOpqUKpYZAKaj+eI1tNLBLezEAxAoAJKIplNhM=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
One more fix to build tools required :-

./tools/blktap2/drivers/lock.c
line 253

 -  if (!dptr & errno)    {
 +  if ((!dptr) & errno) {

Boris

--- On Wed, 6/24/09, Jun Koi <junkoi2004@xxxxxxxxx> wrote:

From: Jun Koi <junkoi2004@xxxxxxxxx>
Subject: Re: [Xen-devel] Attempt to build xen-unstable on F11 ( gcc version 4.4.0 )
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Ian Campbell" <Ian.Campbell@xxxxxxxxxx>
Date: Wednesday, June 24, 2009, 6:07 AM

On Wed, Jun 24, 2009 at 6:57 PM, Boris Derzhavets<bderzhavets@xxxxxxxxx> wrote:
> The failure bellow doesn't happen with gcc 4.3.3 ( Ubuntu 9.04 Server)
> . . . . . . . . . . . .
> gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
> -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
> -D__XEN_TOOLS__ -MMD -MF .vhd-util-check.o.d  -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE  -Werror -Wno-unused -I../../include -D_GNU_SOURCE
> -fPIC -g -Wp,-MD,.vhd-util-check.o.d -c -o vhd-util-check.o vhd-util-check.c
> cc1: warnings being treated as errors
> vhd-util-check.c: In function ‘vhd_util_check_vhd’:
> vhd-util-check.c:809: error: ‘footer.data_offset’ may be used uninitialized
> in this function
> vhd-util-check.c:809: error: ‘footer.type’ may be used uninitialized in this
> function

I had a quick fix for this problem, with following patch. Perhaps that
is not the best way, but at least you can compile blktap2 with it.

For other compilation problems with blktap2, you can pick up the
patches I just post to the list.

Thanks,
J


diff -r 442fb5f1e0a2 tools/blktap2/vhd/lib/vhd-util-check.c
--- a/tools/blktap2/vhd/lib/vhd-util-check.c    Tue Jun 23 17:32:07 2009 +0100
+++ b/tools/blktap2/vhd/lib/vhd-util-check.c    Wed Jun 24 19:04:17 2009 +0900
@@ -808,6 +808,9 @@
    struct stat stats;
    vhd_footer_t footer;

+    footer.data_offset = 0;
+    footer.type = 0;
+
    fd = -1;
    memset(&vhd, 0, sizeof(vhd));

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

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