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-users

Re: [Xen-users] Error compiling Xen 2.0.7 on Fedora Core 4 with gcc4

To: Chetan Jog <cjog@xxxxxxxxxx>
Subject: Re: [Xen-users] Error compiling Xen 2.0.7 on Fedora Core 4 with gcc4
From: "Jorge I. Davila L." <davila@xxxxxxxxxxxxxxx>
Date: Mon, 08 Aug 2005 19:40:57 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Aug 2005 01:39:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <447F856ACD7B494BAD02C85FD90DE2F80246B8A6@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <447F856ACD7B494BAD02C85FD90DE2F80246B8A6@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Chetan Jog!:

I think that you *must* use another version of the compiler:

yum -y install compat-gcc-32
yum -y install compat-gcc-32++

then

joe /usr/lib/python2.4/config/Makefile

change to

CC=gcc32

and finally 

make CC=gcc32 world

May this help.

Jorge.

El lun, 08-08-2005 a las 18:57 -0400, Chetan Jog escribió:
> All, 
> I am trying to compile Xen 2.0.7 on Fedora Core release 4 (Stentz) and
> gcc version 4.0.0 20050519 (Red Hat 4.0.0-8). I am getting the
> following compile error when I run "make world". 
> 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> make[3]: Entering directory `/root/xen-2.0/xen/arch/x86'
> gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -
> iwithprefix include -Wall -Werror -pipe -I/root/xen-2.0/xen/include -
> Wno-pointer-arith -Wredundant-decls -O3 -fomit-frame-pointer -msoft-
> float -m32 -march=i686 -DNDEBUG -S -o asm-offsets.s x86_32/asm-
> offsets.c
> 
> In file included from /root/xen-2.0/xen/include/asm/page.h:117,
> from /root/xen-2.0/xen/include/asm/fixmap.h:18,
> from /root/xen-2.0/xen/include/asm/smp.h:6,
> from /root/xen-2.0/xen/include/xen/smp.h:13,
> from /root/xen-2.0/xen/include/xen/sched.h:11,
> from x86_32/asm-offsets.c:7:
> /root/xen-2.0/xen/include/asm/processor.h:175: error: array type has
> incomplete element type
> make[3]: *** [asm-offsets.s] Error 1
> make[3]: Leaving directory `/root/xen-2.0/xen/arch/x86'
> make[2]: *** [/root/xen-2.0/xen/xen] Error 2
> make[2]: Leaving directory `/root/xen-2.0/xen'
> make[1]: *** [xen] Error 2
> make[1]: Leaving directory `/root/xen-2.0'
> make: *** [world] Error 2 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
> Even if I fix this error above, I get other errors as noted below. 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -
> iwithprefix include -Wall -Werror -pipe -I/root/xen-2.0/xen/include -
> Wno-pointer-arith -Wredundant-decls -O3 -fomit-frame-pointer -msoft-
> float -m32 -march=i686 -DNDEBUG -c kernel.c -o kernel.o
> 
> cc1: warnings being treated as errors
> kernel.c: In function ‘cmdline_parse’:
> kernel.c:34: warning: pointer targets in assignment differ in
> signedness
> kernel.c:37: warning: pointer targets in assignment differ in
> signedness
> kernel.c:49: warning: pointer targets in passing argument 2 of â
> €˜strncpy’ differ in signedness
> kernel.c:56: warning: pointer targets in passing argument 1 of â
> €˜simple_strtol’ differ in signedness
> kernel.c:63: warning: pointer targets in assignment differ in
> signedness
> make[3]: *** [kernel.o] Error 1
> make[3]: Leaving directory `/root/xen-2.0/xen/common'
> make[2]: *** [/root/xen-2.0/xen/xen] Error 2
> make[2]: Leaving directory `/root/xen-2.0/xen'
> make[1]: *** [xen] Error 2
> make[1]: Leaving directory `/root/xen-2.0'
> make: *** [world] Error 2
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
> Any input will be highly appreciated. 
> - Chetan
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


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