From: Boris Derzhavets Subject: Re: Attempt to build xen-unstable on F11 ( gcc version 4.4.0 ) Date: Wed, 24 Jun 2009 08:56:39 -0700 (PDT) Message-ID: <941698.49843.qm@web56102.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0667431127==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jun Koi Cc: "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org --===============0667431127== Content-Type: multipart/alternative; boundary="0-1792762117-1245858999=:49843" --0-1792762117-1245858999=:49843 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable One more fix to build tools required :- ./tools/blktap2/drivers/lock.c line 253 =C2=A0-=C2=A0 if (!dptr & errno)=C2=A0=C2=A0=C2=A0 { =C2=A0+=C2=A0 if ((!dptr) & errno) { Boris --- On Wed, 6/24/09, Jun Koi wrote: From: Jun Koi Subject: Re: [Xen-devel] Attempt to build xen-unstable on F11 ( gcc version= 4.4.0 ) To: "Boris Derzhavets" Cc: "xen-devel@lists.xensource.com" , "Ian C= ampbell" Date: Wednesday, June 24, 2009, 6:07 AM On Wed, Jun 24, 2009 at 6:57 PM, Boris Derzhavets wr= ote: > The failure bellow doesn't happen with gcc 4.3.3 ( Ubuntu 9.04 Server) > . . . . . . . . . . . . > gcc=C2=A0 -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=3Dgnu99= -Wall > -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement > -D__XEN_TOOLS__ -MMD -MF .vhd-util-check.o.d=C2=A0 -D_LARGEFILE_SOURCE > -D_LARGEFILE64_SOURCE=C2=A0 -Werror -Wno-unused -I../../include -D_GNU_SO= URCE > -fPIC -g -Wp,-MD,.vhd-util-check.o.d -c -o vhd-util-check.o vhd-util-chec= k.c > cc1: warnings being treated as errors > vhd-util-check.c: In function =E2=80=98vhd_util_check_vhd=E2=80=99: > vhd-util-check.c:809: error: =E2=80=98footer.data_offset=E2=80=99 may be = used uninitialized > in this function > vhd-util-check.c:809: error: =E2=80=98footer.type=E2=80=99 may be used un= initialized 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=C2=A0=C2=A0=C2=A0 Tue Jun 23 1= 7:32:07 2009 +0100 +++ b/tools/blktap2/vhd/lib/vhd-util-check.c=C2=A0=C2=A0=C2=A0 Wed Jun 24 1= 9:04:17 2009 +0900 @@ -808,6 +808,9 @@ =C2=A0=C2=A0=C2=A0 struct stat stats; =C2=A0=C2=A0=C2=A0 vhd_footer_t footer; +=C2=A0=C2=A0=C2=A0 footer.data_offset =3D 0; +=C2=A0=C2=A0=C2=A0 footer.type =3D 0; + =C2=A0=C2=A0=C2=A0 fd =3D -1; =C2=A0=C2=A0=C2=A0 memset(&vhd, 0, sizeof(vhd)); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1792762117-1245858999=:49843 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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@gm= ail.com> wrote:

From: Jun Koi &l= t;junkoi2004@gmail.com>
Subject: Re: [Xen-devel] Attempt to build xen= -unstable on F11 ( gcc version 4.4.0 )
To: "Boris Derzhavets" <bderz= havets@yahoo.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@l= ists.xensource.com>, "Ian Campbell" <Ian.Campbell@citrix.com>
D= ate: Wednesday, June 24, 2009, 6:07 AM

On W= ed, Jun 24, 2009 at 6:57 PM, Boris Derzhavets<bderzhavets@yahoo.com> wrote:
> The failure bel= low doesn't happen with gcc 4.3.3 ( Ubuntu 9.04 Server)
> . . . . . .= . . . . . .
> gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-al= iasing -std=3Dgnu99 -Wall
> -Wstrict-prototypes -Wno-unused-value -Wd= eclaration-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-uti= l-check.o.d -c -o vhd-util-check.o vhd-util-check.c
> cc1: warnings b= eing treated as errors
> vhd-util-check.c: In function =E2=80=98vhd_u= til_check_vhd=E2=80=99:
> vhd-util-check.c:809: error: =E2=80=98foote= r.data_offset=E2=80=99 may be used uninitialized
> in this function> vhd-util-check.c:809: error: =E2=80=98footer.type=E2=80=99 may be us= ed 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 w= ith it.

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

Thanks,
J


dif= f -r 442fb5f1e0a2 tools/blktap2/vhd/lib/vhd-util-check.c
--- a/tools/blk= tap2/vhd/lib/vhd-util-check.c    Tue Jun 23 17:32:07 2009 +0= 100
+++ b/tools/blktap2/vhd/lib/vhd-util-check.c    Wed J= un 24 19:04:17 2009 +0900
@@ -808,6 +808,9 @@
    str= uct stat stats;
    vhd_footer_t footer;

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

________________________________________= _______
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xe= nsource.com/xen-devel

=0A= =0A=0A=0A --0-1792762117-1245858999=:49843-- --===============0667431127== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0667431127==--