Skip to contentSkip to conversation

Xen error

DISCUSSION aoa033 4 participants 5 messages Nov 26, 2013 – Nov 27, 2013 1 message not in the archive

lore
Share & tools
lore

aoa033

author
#0 lore raw

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
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 23 lines · 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)

Quoted 5 lines
                                         ^
memory.c:242:13: note: in expansion of macro ‘DEFINE_XEN_GUEST_HANDLE’
             DEFINE_XEN_GUEST_HANDLE(compat_memory_exchange_t);

Thank you

Have 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
[email protected]
http://lists.xen.org/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 6 lines · 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 you

Do 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

#4 lore raw
Quoted 6 lines · Andrew Cooper
Quoted 5 lines · 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

Signature · 4 lines
<<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
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw
In reply to Andrew Cooper
Quoted 1 line · Andrew Cooper
Quoted 1 line

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.

Quoted 2 lines

I haven't

Quoted 1 line

modified the source code, any suggestions as to what could be causing this?

The fix is in 4.1.5 onwards.

Ian.