Skip to contentSkip to conversation

Error in compiling latest Xen 4.2-Unstable

DISCUSSION [email protected] 2 participants 3 messages May 31, 2012 – Jun 7, 2012

lore
Share & tools
lore
#0 lore raw

Just would like to ask the Xen-Devel team what version of GCC compiler they are using to Compile the Xen 4.2-Unstable from the xen-untable.hg repository?

Just curious since i always have such a hard time in compiling the latest Xen 4.2-Unstable as it always aborts with errors.

The last changeset of Xen 4.2 i was able to compile was "*25392:3d98fb95e735*" and ONLY after removing patch 25364 (*hg backout -r 25364*), otherwise it wouldn't compile either.

That trick doesn't seem to work with any changesets after that and even revision "*25432:d7318231cfe3*" ends with an error:

libxl.c: In function 'libxl_primary_console_exec':
libxl.c:1233:9: error: case value '4294967295' not in enumerated type 'libxl_domain_type' [-Werror=switch]

SO, possibly the GCC compiler is at fault and was wondering what version the Xen-devel team uses?

Thank you very much

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 2 lines · On Fri, 2012-06-01 at 00:02 +0100, [email protected] wrote:

SO, possibly the GCC compiler is at fault and was wondering what version the Xen-devel team uses?

This issue is indeed a compiler related one.

The developers use a wide variety of compilers, including ones which exhibit this behaviour. A few patches have been posted to xen-devel (e.g.
http://lists.xen.org/archives/html/xen-devel/2012-05/msg01856.html) but we are still working on the final fix.

As a workaround in the meantime you could either apply the patch linked above locally or remove the entirety of the "case -1" that is causing the warnings.

Thanks for continuing to be patient.

Ian.

#2 lore raw
Quoted 11 lines · Ian Campbell
Quoted 2 lines · On Fri, 2012-06-01 at 00:02 +0100, [email protected] wrote:

SO, possibly the GCC compiler is at fault and was wondering what version the Xen-devel team uses?

This issue is indeed a compiler related one.

The developers use a wide variety of compilers, including ones which exhibit this behaviour. A few patches have been posted to xen-devel (e.g.
http://lists.xen.org/archives/html/xen-devel/2012-05/msg01856.html) but we are still working on the final fix.

Quoted 9 lines

As a workaround in the meantime you could either apply the patch linked above locally or remove the entirety of the "case -1" that is causing the warnings.

Thanks for continuing to be patient.

Ian.

Just wanted to mention that the latest version of xen-unstable.hg, rev- 25459, (as of today) is able to compile perfectly on Debian Wheezy, with no errors or anything.

SO, everyone in the Xen-devel team, You guys are all just plain awesome, and thanks for fixing the compile issues... :)