|
|
|
|
|
|
|
|
|
|
xen-users
RE: [Xen-users] Error compiling Xen 2.0.7 on Fedora Core 4 with gcc4
Jorge and Mark,
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.
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
‘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
|
|
|
|
|