[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ÃâË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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.