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: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Error compiling Xen 2.0.7 on Fedora Core 4 with gcc4
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Tue, 9 Aug 2005 19:05:52 +0100
Cc: Chetan Jog <cjog@xxxxxxxxxx>
Delivery-date: Tue, 09 Aug 2005 18:04:24 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <447F856ACD7B494BAD02C85FD90DE2F8023F82BE@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: <447F856ACD7B494BAD02C85FD90DE2F8023F82BE@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.1
> Thank you for the suggestions. I was able to compile and successfully run
> Xen 2.0.7 on Fedora Core 4. There was only one other slight detail. I am
> summarizing here for the benefit of readers.

Thanks very much!

Any chance you could stick this information into the wiki 
(http://wiki.xensource.com/) somewhere?  It would really help people in your 
situation in the future.

Cheers,
Mark

> As Jorge suggested, I verified that gcc-3.2 and compat-gcc-3.2 were
> installed. I then updated python2.4 config at
> /usr/lib/python2.4/config/Makefile so that CC variable pointed to gcc32
> throughout the document. I used "make CC=gcc32 world" to build Xen.
>
> I then got an error saying "tune=pentium4" is an invalid option; I worked
> around that by removing that option in /usr/lib/python2.4/config/Makefile.
>
> So far domain creation and migration seems to be working.
>
> Thanks.
>
>
> ________________________________
>
> From: Mark Williamson [mailto:mark.williamson@xxxxxxxxxxxx]
> Sent: Mon 8/8/2005 9:43 PM
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Cc: Jorge I. Davila L.; Jog, Chetan [BL60:418:EXCH]
> Subject: Re: [Xen-users] Error compiling Xen 2.0.7 on Fedora Core 4 with
> gcc4
>
> > I think that you *must* use another version of the compiler:
>
> Right - Xen 2.0 is never going to support gcc 4, I'm afraid.  The intention
> is that Xen 3.0 will do.
>
> Cheers,
> Mark
>
> > 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 âEUR~cmdline_parseâEUR(tm):
> > > 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 â
> > > EUR~strncpyâEUR(tm) differ in signedness
> > > kernel.c:56: warning: pointer targets in passing argument 1 of â
> > > EUR~simple_strtolâEUR(tm) 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

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

<Prev in Thread] Current Thread [Next in Thread>