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

Re: [Xen-users] compiling an old XEN version



Hi,

3.2 is a few days old. I think it's more likely to have compile errors with gcc 4.7 than
a clean build result.

I'ld try it with rhel/centos 5 or debian lenny tools.

cheers,


Am Mittwoch, den 08.08.2012, 22:49 -0700 schrieb maheen butt:
hi all,
I want to use Xenlinux and an old version of Xen hypervisor xen 3.2.0. 
For compilation I followed following instruction given by Jeremie Le Hen
% mkdir build
% wget http://bits.xensource.com/oss-xen/release/3.2.0/xen-3.2.0.tar.gz
% tar xzf xen-3.2.0.tar.gz
% # Download the xenifid kernel tree manually, but NOT in xen-3.2.0/
% # because the buildconfig/select-repository script would skip it.
% # ! xen-3.2.0/ and linux-2.6.18-xen.hg/ must be at the same level !
% hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
% cd xen-3.2.0
% make prep-kernels
% cp /boot/config-2.6.18-my build-linux-2.6.18-xen_x86_32/.config
% make dist


everything was going  good until I gave commang 'make dist' I encountered with following errorsIn file included from grant_table.c:1520:0:


compat/grant_table.c: At top level:
compat/grant_table.c:9:214: error: variably modified ‘__checkFstruct_grant_entry__flags’ at file scope [-Werror]
compat/grant_table.c:9:350: error: variably modified ‘__checkFstruct_grant_entry__domid’ at file scope [-Werror]
compat/grant_table.c:9:486: error: variably modified ‘__checkFstruct_grant_entry__frame’ at file scope [-Werror]
In file included from grant_table.c:1520:0:
compat/grant_table.c:13:267: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__host_addr’ at file scope [-Werror]
compat/grant_table.c:13:434: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__flags’ at file scope [-Werror]
compat/grant_table.c:13:593: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__ref’ at file scope [-Werror]
compat/grant_table.c:13:750: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__dom’ at file scope [-Werror]
compat/grant_table.c:13:913: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__status’ at file scope [-Werror]
compat/grant_table.c:13:1079: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__handle’ at file scope [-Werror]
compat/grant_table.c:13:1257: error: variably modified ‘__checkFstruct_gnttab_map_grant_ref__dev_bus_addr’ at file scope [-Werror]
In file included from grant_table.c:1520:0:
compat/grant_table.c:17:277: error: variably modified ‘__checkFstruct_gnttab_unmap_grant_ref__host_addr’ at file scope [-Werror]
compat/grant_table.c:17:464: error: variably modified ‘__checkFstruct_gnttab_unmap_grant_ref__dev_bus_addr’ at file scope [-Werror]
compat/grant_table.c:17:642: error: variably modified ‘__checkFstruct_gnttab_unmap_grant_ref__handle’ at file scope [-Werror]
compat/grant_table.c:17:814: error: variably modified ‘__checkFstruct_gnttab_unmap_grant_ref__status’ at file scope [-Werror]
In file included from grant_table.c:1520:0:
compat/grant_table.c:21:287: error: variably modified ‘__checkFstruct_gnttab_unmap_and_replace__host_addr’ at file scope [-Werror]
compat/grant_table.c:21:472: error: variably modified ‘__checkFstruct_gnttab_unmap_and_replace__new_addr’ at file scope [-Werror]
compat/grant_table.c:21:652: error: variably modified ‘__checkFstruct_gnttab_unmap_and_replace__handle’ at file scope [-Werror]
compat/grant_table.c:21:830: error: variably modified ‘__checkFstruct_gnttab_unmap_and_replace__status’ at file scope [-Werror]
In file included from grant_table.c:1520:0:
compat/grant_table.c:29:240: error: variably modified ‘__checkFstruct_gnttab_dump_table__dom’ at file scope [-Werror]
compat/grant_table.c:29:394: error: variably modified ‘__checkFstruct_gnttab_dump_table__status’ at file scope [-Werror]
cc1: all warnings being treated as errors
make[4]: *** [grant_table.o] Error 1
make[4]: Leaving directory `/home/khansa/xen-3.2.0/xen/common'
make[3]: *** [/home/khansa/xen-3.2.0/xen/common/built_in.o] Error 2
make[3]: Leaving directory `/home/khansa/xen-3.2.0/xen/arch/x86'
make[2]: *** [/home/khansa/xen-3.2.0/xen/xen] Error 2
make[2]: Leaving directory `/home/khansa/xen-3.2.0/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/khansa/xen-3.2.0/xen'
make: *** [install-xen] Error 2


Any idea why am I getting this error? 
My operating system is fedora 17 with  gcc version 4.7.0


Thanks


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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