* libxl.c ERROR during compiling Xen 4.2-Unstable revision 25374 [not found] <4FB91D44.8010808@gmail.com> @ 2012-05-20 16:43 ` cyberhawk001 2012-05-21 12:20 ` Ian Campbell 0 siblings, 1 reply; 3+ messages in thread From: cyberhawk001 @ 2012-05-20 16:43 UTC (permalink / raw) To: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 3317 bytes --] I have had Xen 4.2-Unstable compiled a week or so ago and it all went fine and running, but i forget what revision i compiled now. When i ran the *xl create /etc/xen/win7.cfg* to create a VM, i got an error about libxl and running "*sudo xl list*" shows the newly created VM, SO i just ignored that error for now. That error message was: *libxl: error: libxl.c:3117:libxl_sched_credit_domain_set: Cpu weight out of range, valid values are within range from 1 to 65535 * ---------------------------------- ---------------------------------- ---------------------------------- SO, I noticed on the xen-unstable.hg tree that there have been a lot of updates to the libxl lately SO just out of curiosity, i wanted to get the latest revision 25374 of xen-unstable as of today 5/20/2012, and compile it. BUT, i cannot compile Xen anymore as the compile stops with warnings and error messages. Upon scrolling up in the terminal window, i noticed these warning or error messages: *node-select.c:57:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] node-select.c: In function 'vchan_wr': node-select.c:60:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] node-select.c: At top level: node-select.c:71:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] node-select.c: In function 'stdout_wr': node-select.c:74:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]* *The error log from compiling the libSDL test is: /tmp/qemu-conf--3330-.c:1:17: fatal error: SDL.h: No such file or directory* *../xen-unstable.hg/tools/qemu-xen-traditional-dir/hw/eepro100.c:1232:5: warning: 'val' may be used uninitialized in this function [-Wuninitialized]* _I also get like a dozen warnings about this:_ *../tools/xenstore/compat/xs.h:1:2: warning: #warning xs.h is deprecated use xenstore.h instead [-Wcpp]* _AND finally the compilations stops with these messages:_ *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] cc1: all warnings being treated as errors make[3]: *** [libxl.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/home/xyber/Desktop/KERNEL_BUILD/Xen/xen-unstable.hg/tools/libxl' make[2]: *** [subdir-install-libxl] Error 2 make[2]: Leaving directory `/home/xyber/Desktop/KERNEL_BUILD/Xen/xen-unstable.hg/tools' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/home/xyber/Desktop/KERNEL_BUILD/Xen/xen-unstable.hg/tools' make: *** [install-tools] Error 2* ---------------------------------- ---------------------------------- ---------------------------------- All of these messages appear at different times during compile, but these where the ones i found thru a quick glance at the terminal window output. I have also tried to compile the latest Xen 4.2 THREE different times now, and in all cases it seems to end with a similar error about *libxl.c*. Each time i tried to compile, i booted into non-Xen kernel, ran "*sudo make uninstall*" of my current Xen 4.2-unstable and ran "*sudo dpkg -r xen-upstream-4.2-unstable*", AND twice now i cloned a fresh copy of the xen-unstable.hg before compile. [-- Attachment #1.2: Type: text/html, Size: 4316 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libxl.c ERROR during compiling Xen 4.2-Unstable revision 25374 2012-05-20 16:43 ` libxl.c ERROR during compiling Xen 4.2-Unstable revision 25374 cyberhawk001 @ 2012-05-21 12:20 ` Ian Campbell 2012-05-22 17:23 ` cyberhawk001 0 siblings, 1 reply; 3+ messages in thread From: Ian Campbell @ 2012-05-21 12:20 UTC (permalink / raw) To: cyberhawk001@gmail.com; +Cc: xen-devel@lists.xen.org On Sun, 2012-05-20 at 17:43 +0100, cyberhawk001@gmail.com wrote: > > I have had Xen 4.2-Unstable compiled a week or so ago and it all went > fine and running, but i forget what revision i compiled now. > > When i ran the xl create /etc/xen/win7.cfg to create a VM, i got an > error about libxl and running "sudo xl list" shows the newly created > VM, SO i just ignored that error for now. That error message was: > > libxl: error: libxl.c:3117:libxl_sched_credit_domain_set: Cpu weight > out of range, valid values are within range from 1 to 65535 This is a harmless warning and is on our list to fix for 4.2 > ---------------------------------- ---------------------------------- > ---------------------------------- > > SO, I noticed on the xen-unstable.hg tree that there have been a lot > of updates to the libxl lately SO just out of curiosity, i wanted to > get the latest revision 25374 of xen-unstable as of today 5/20/2012, > and compile it. BUT, i cannot compile Xen anymore as the compile stops > with warnings and error messages. > > Upon scrolling up in the terminal window, i noticed these warning or > error messages: Thanks, it can be useful for us to see the full context, in which case using something like tee(1) to collect the full log and attaching it can be useful. > node-select.c:57:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] > node-select.c: In function ‘vchan_wr’: > node-select.c:60:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] > node-select.c: At top level: > node-select.c:71:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] > node-select.c: In function ‘stdout_wr’: > node-select.c:74:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] These are genuine warnings but aren't causing build failures (I presume no -Werror in that subdir). > The error log from compiling the libSDL test is: > /tmp/qemu-conf--3330-.c:1:17: fatal error: SDL.h: No such file or directory This means you are missing the SDL development package. I'm not sure if this is optional or mandatory, nor whether this message is fatal without more context from the build logs. > ../xen-unstable.hg/tools/qemu-xen-traditional-dir/hw/eepro100.c:1232:5: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized] > > > I also get like a dozen warnings about this: > ../tools/xenstore/compat/xs.h:1:2: warning: #warning xs.h is > deprecated use xenstore.h instead [-Wcpp] These are currently to be expected and are harmless. > AND finally the compilations stops with these messages: > 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] This one is known and a fix is in progress. It's most likely this one which is causing the actual build error. This slipped through our testing net due to various compiler versions being cleverer/stupider than others and so trigger more or less warnings, this one happens only with a more modern gcc than what our test system uses. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libxl.c ERROR during compiling Xen 4.2-Unstable revision 25374 2012-05-21 12:20 ` Ian Campbell @ 2012-05-22 17:23 ` cyberhawk001 0 siblings, 0 replies; 3+ messages in thread From: cyberhawk001 @ 2012-05-22 17:23 UTC (permalink / raw) To: Ian Campbell; +Cc: xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 5135 bytes --] Hey Ian thanks for the reply back. Well i have done some more compiling and messing with and this is what i found so far: This time i did as you said, i piped the compile output to a file using the *tee* command. ---------------------------- ---------------------------- ---------------------------- ---------------------------- A.) I cloned a fresh copy of *xen-unstable.hg rev-25376* (5/22/2012) and ran: ./configure sudo make -j5 xen --> This compiled fine and didn't see any errors sudo make -j5 tools --> THIS is where all of the errors happen and fail to compile ---------------------------- ---------------------------- ---------------------------- ---------------------------- B.) This time i installed the SDL devel package as you suggested and cloned another fresh copy of *xen-unstable.hg rev-25376* sudo apt-get install libsdl1.2-dev ./configure sudo make -j5 xen --> Again, this compiled fine and saw no errors sudo make -j5 tools --> This time i do not get that error about the libSDL BUT i still get other errors and stops compiling ---------------------------- ---------------------------- ---------------------------- ---------------------------- I have saved the above compile trials to 4 files as the following: Compiled BEFORE installing libsdl1.2-dev A - make_xen.log A - make_tools.log Compiled AFTER installing libsdl1.2-dev B - make_xen.log B - make_tools.log ALSO, since i didn't want to attach so many large files in a text format, i put all 4 files in a TAR.GZ file and attached that instead. --------------------------- ---------------------------- ---------------------------- ---------------------------- So, hopefully this will be helpful to you or to some else in determining why, in this case, *Xen 4.2-unstable REV-25376* is not wanting to compile anymore .... :) > On Sun, 2012-05-20 at 17:43 +0100, cyberhawk001@gmail.com wrote: >> I have had Xen 4.2-Unstable compiled a week or so ago and it all went >> fine and running, but i forget what revision i compiled now. >> >> When i ran the xl create /etc/xen/win7.cfg to create a VM, i got an >> error about libxl and running "sudo xl list" shows the newly created >> VM, SO i just ignored that error for now. That error message was: >> >> libxl: error: libxl.c:3117:libxl_sched_credit_domain_set: Cpu weight >> out of range, valid values are within range from 1 to 65535 > This is a harmless warning and is on our list to fix for 4.2 > >> ---------------------------------- ---------------------------------- >> ---------------------------------- >> >> SO, I noticed on the xen-unstable.hg tree that there have been a lot >> of updates to the libxl lately SO just out of curiosity, i wanted to >> get the latest revision 25374 of xen-unstable as of today 5/20/2012, >> and compile it. BUT, i cannot compile Xen anymore as the compile stops >> with warnings and error messages. >> >> Upon scrolling up in the terminal window, i noticed these warning or >> error messages: > Thanks, it can be useful for us to see the full context, in which case > using something like tee(1) to collect the full log and attaching it can > be useful. > >> node-select.c:57:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] >> node-select.c: In function ‘vchan_wr’: >> node-select.c:60:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] >> node-select.c: At top level: >> node-select.c:71:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes] >> node-select.c: In function ‘stdout_wr’: >> node-select.c:74:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] > These are genuine warnings but aren't causing build failures (I presume > no -Werror in that subdir). > >> The error log from compiling the libSDL test is: >> /tmp/qemu-conf--3330-.c:1:17: fatal error: SDL.h: No such file or directory > This means you are missing the SDL development package. I'm not sure if > this is optional or mandatory, nor whether this message is fatal without > more context from the build logs. > >> ../xen-unstable.hg/tools/qemu-xen-traditional-dir/hw/eepro100.c:1232:5: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized] >> >> >> I also get like a dozen warnings about this: >> ../tools/xenstore/compat/xs.h:1:2: warning: #warning xs.h is >> deprecated use xenstore.h instead [-Wcpp] > These are currently to be expected and are harmless. > >> AND finally the compilations stops with these messages: >> 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] > This one is known and a fix is in progress. It's most likely this one > which is causing the actual build error. > > This slipped through our testing net due to various compiler versions > being cleverer/stupider than others and so trigger more or less > warnings, this one happens only with a more modern gcc than what our > test system uses. > > Ian. > > > [-- Attachment #1.2: Type: text/html, Size: 6502 bytes --] [-- Attachment #2: Xen4.2_rev25376_compile_log.tar.gz --] [-- Type: application/x-gzip, Size: 88602 bytes --] [-- Attachment #3: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-22 17:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4FB91D44.8010808@gmail.com>
2012-05-20 16:43 ` libxl.c ERROR during compiling Xen 4.2-Unstable revision 25374 cyberhawk001
2012-05-21 12:20 ` Ian Campbell
2012-05-22 17:23 ` cyberhawk001
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.