Hi, I am a final year student interested in learning more about virtualization and Xen. I have been trying to build and install Xen 4.1.2 from source however I am getting the following error which I do not know how to fix. Could anyone be of assistance The error is: memory.c: In function ‘compat_memory_op’: Documents/xen-4.1.2/xen/include/public/arch-x86/xen.h:35:33: error: typedef ‘__guest_handle_const_compat_memory_exchange_t’ locally defined but not used [-Werror=unused-local-typedefs] typedef struct { type *p; } __guest_handle_ ## name ^ Documents/xen-4.1.2/xen/include/public/arch-x86/xen.h:43:5: note: in expansion of macro ‘___DEFINE_XEN_GUEST_HANDLE’ ___DEFINE_XEN_GUEST_HANDLE(const_##name, const type) ^ Documents/xen-4.1.2/xen/include/public/arch-x86/xen.h:44:41: note: in expansion of macro ‘__DEFINE_XEN_GUEST_HANDLE’ #define DEFINE_XEN_GUEST_HANDLE(name) __DEFINE_XEN_GUEST_HANDLE(name, name) ^ memory.c:242:13: note: in expansion of macro ‘DEFINE_XEN_GUEST_HANDLE’ DEFINE_XEN_GUEST_HANDLE(compat_memory_exchange_t); Thank you _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On 26/11/13 18:58, aoa033 wrote:> Hi, > > I am a final year student interested in learning more about virtualization > and Xen. I have been trying to build and install Xen 4.1.2 from source > however I am getting the following error which I do not know how to fix. > Could anyone be of assistance > > The error is: > > memory.c: In function ‘compat_memory_op’: > Documents/xen-4.1.2/xen/include/public/arch-x86/xen.h:35:33: error: > typedef ‘__guest_handle_const_compat_memory_exchange_t’ locally defined > but not used [-Werror=unused-local-typedefs] > typedef struct { type *p; } __guest_handle_ ## name > ^ > Documents/xen-4.1.2/xen/include/public/arch-x86/xen.h:43:5: note: in > expansion of macro ‘___DEFINE_XEN_GUEST_HANDLE’ > ___DEFINE_XEN_GUEST_HANDLE(const_##name, const type) > ^ > Documents/xen-4.1.2/xen/include/public/arch-x86/xen.h:44:41: note: in > expansion of macro ‘__DEFINE_XEN_GUEST_HANDLE’ > #define DEFINE_XEN_GUEST_HANDLE(name) __DEFINE_XEN_GUEST_HANDLE(name, > name) > ^ > memory.c:242:13: note: in expansion of macro ‘DEFINE_XEN_GUEST_HANDLE’ > DEFINE_XEN_GUEST_HANDLE(compat_memory_exchange_t); > > Thank youHave you modified the source yourself? This looks like you have added a new guest handle in a function but not referenced it. Also, Xen 4.1.2 is very old. Try using a newer version of Xen. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On 26/11/13 20:32, aoa033 wrote:> Hi Andrew, > > My project supervisor said that I have to use version 4.1.2. I haven''t > modified the source code, any suggestions as to what could be causing this? > > Thank youDo not drop xen-devel from the CC list, please. Unless you can reproduce the issue on a supported version of Xen, there is next to nothing anyone can do to help. ~Andrew
On mar, 2013-11-26 at 20:36 +0000, Andrew Cooper wrote:> On 26/11/13 20:32, aoa033 wrote: > > Hi Andrew, > > > > My project supervisor said that I have to use version 4.1.2. I haven''t > > modified the source code, any suggestions as to what could be causing this? > >Wow... Do you mind asking him <<why?>> and share the answer with us? :-D Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Tue, 2013-11-26 at 20:36 +0000, Andrew Cooper wrote:> > My project supervisor said that I have to use version 4.1.2.At the very least you should argue to be use the latest 4.1.x, which is 4.1.6.1.> I haven''t > > modified the source code, any suggestions as to what could be causing this?The fix is in 4.1.5 onwards. Ian.