I'm facing a trouble trieying to compile Xen 4.3 in Ubuntu 13.10. It would be appreciated if someone could give me some tips on how to fix the error with stubdom. DEF_CPPFLAGS="-isystem /root/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /root/xen/stubdom/../extras/mini-os/include/posix -isystem /root/xen/stubdom/../tools/xenstore -isystem /root/xen/stubdom/../extras/mini-os/include/x86 -isystem /root/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /root/xen/stubdom/../extras/mini-os/include/posix -isystem /root/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -isystem /root/xen/stubdom/lwip-x86_64/src/include -isystem /root/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/root/xen/stubdom/include -I/root/xen/stubdom/../xen/include" DEF_CFLAGS="-mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -fno-stack-protector -fno-exceptions" DEF_LDFLAGS="-nostdlib -L/root/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/lib" MINIOS_CONFIG="/root/xen/stubdom/ioemu-minios.cfg" make DESTDIR= -C /root/xen/stubdom/../extras/mini-os OBJ_DIR=/root/xen/stubdom/mini-os-x86_64-ioemu LWIPDIR=/root/xen/stubdom/lwip-x86_64 APP_OBJS="/root/xen/stubdom/ioemu/i386-stubdom/qemu.a /root/xen/stubdom/ioemu/i386-stubdom/libqemu.a /root/xen/stubdom/ioemu/libqemu_common.a" make[2]: Entering directory `/root/xen/extras/mini-os' [ -e include/xen ] || ln -sf ../../../xen/include/public include/xen [ -e include/mini-os ] || ln -sf . include/mini-os [ -e include/x86/mini-os ] || ln -sf . include/x86/mini-os gcc -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -fno-stack-protector -fno-exceptions -DCONFIG_SPARSE_BSS -DCONFIG_QEMU_XS_ARGS -DCONFIG_PCIFRONT -DCONFIG_BLKFRONT -DCONFIG_NETFRONT -DCONFIG_KBDFRONT -DCONFIG_FBFRONT -DCONFIG_CONSFRONT -DCONFIG_XENBUS -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -g -D__INSIDE_MINIOS__ -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -isystem /root/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /root/xen/stubdom/../extras/mini-os/include/posix -isystem /root/xen/stubdom/../tools/xenstore -isystem /root/xen/stubdom/../extras/mini-os/include/x86 -isystem /root/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /root/xen/stubdom/../extras/mini-os/include/posix -isystem /root/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -isystem /root/xen/stubdom/lwip-x86_64/src/include -isystem /root/xen/stubdom/lwip-x86_64/src/include/ipv4 -I/root/xen/stubdom/include -I/root/xen/stubdom/../xen/include -isystem /root/xen/extras/mini-os/../../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /root/xen/extras/mini-os/../../extras/mini-os/include/posix -isystem /root/xen/extras/mini-os/../../tools/xenstore -DHAVE_LWIP -isystem /root/xen/stubdom/lwip-x86_64/src/include -isystem /root/xen/stubdom/lwip-x86_64/src/include/ipv4 -D__XEN_INTERFACE_VERSION__=0x00030205 -isystem /root/xen/extras/mini-os/../../extras/mini-os/include/x86 -isystem /root/xen/extras/mini-os/../../extras/mini-os/include/x86/x86_64 -c fbfront.c -o /root/xen/stubdom/mini-os-x86_64-ioemu/fbfront.o fbfront.c: In function ‘init_kbdfront’: fbfront.c:108:5: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] err = xenbus_printf(xbt, nodename, "page-ref","%u", virt_to_mfn(s)); ^ fbfront.c: In function ‘init_fbfront’: fbfront.c:466:5: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Werror=format=] err = xenbus_printf(xbt, nodename, "page-ref","%u", virt_to_mfn(s)); ^ cc1: all warnings being treated as errors make[2]: *** [/root/xen/stubdom/mini-os-x86_64-ioemu/fbfront.o] Error 1 make[2]: Leaving directory `/root/xen/extras/mini-os' make[1]: *** [ioemu-stubdom] Error 2 make[1]: Leaving directory `/root/xen/stubdom' make: *** [install-stubdom] Error 2 Any suggestions? _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Wei Liu
2013-Nov-18 16:29 UTC
Re: Build errors when trying to compile Xen 4.3 in Ubuntu 13.10
There's a patch to fix that, but I don't know whether it has been merged. Search for "[PATCH] Fix stubdom build failure for RELEASE-4.3.1" Or you can simply replace %u with correct format speficier. Should be very straight forward to fix. Wei On Mon, Nov 18, 2013 at 04:31:33PM +0100, Rikolen wrote:> I'm facing a trouble trieying to compile Xen 4.3 in Ubuntu 13.10. > It would be appreciated if someone could give me some tips on how to > fix the error with stubdom. > > DEF_CPPFLAGS="-isystem /root/xen/stubdom/../extras/mini-os/include > -D__MINIOS__ -DHAVE_LIBC -isystem > /root/xen/stubdom/../extras/mini-os/include/posix -isystem > /root/xen/stubdom/../tools/xenstore -isystem > /root/xen/stubdom/../extras/mini-os/include/x86 -isystem > /root/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ > -U __FreeBSD__ -U __sun__ -nostdinc -isystem > /root/xen/stubdom/../extras/mini-os/include/posix -isystem > /root/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem > /usr/lib/gcc/x86_64-linux-gnu/4.8/include -isystem > /root/xen/stubdom/lwip-x86_64/src/include -isystem > /root/xen/stubdom/lwip-x86_64/src/include/ipv4 > -I/root/xen/stubdom/include -I/root/xen/stubdom/../xen/include" > DEF_CFLAGS="-mno-red-zone -O1 -fno-omit-frame-pointer -m64 > -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables > -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes > -Wdeclaration-after-statement -Wno-unused-but-set-variable > -Wno-unused-local-typedefs -fno-stack-protector -fno-exceptions" > DEF_LDFLAGS="-nostdlib > -L/root/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/lib" > MINIOS_CONFIG="/root/xen/stubdom/ioemu-minios.cfg" make DESTDIR= -C > /root/xen/stubdom/../extras/mini-os > OBJ_DIR=/root/xen/stubdom/mini-os-x86_64-ioemu > LWIPDIR=/root/xen/stubdom/lwip-x86_64 > APP_OBJS="/root/xen/stubdom/ioemu/i386-stubdom/qemu.a > /root/xen/stubdom/ioemu/i386-stubdom/libqemu.a > /root/xen/stubdom/ioemu/libqemu_common.a" > make[2]: Entering directory `/root/xen/extras/mini-os' > [ -e include/xen ] || ln -sf ../../../xen/include/public include/xen > [ -e include/mini-os ] || ln -sf . include/mini-os > [ -e include/x86/mini-os ] || ln -sf . include/x86/mini-os > gcc -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone > -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g > -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes > -Wdeclaration-after-statement -Wno-unused-but-set-variable > -Wno-unused-local-typedefs -fno-stack-protector -fno-exceptions > -DCONFIG_SPARSE_BSS -DCONFIG_QEMU_XS_ARGS -DCONFIG_PCIFRONT > -DCONFIG_BLKFRONT -DCONFIG_NETFRONT -DCONFIG_KBDFRONT > -DCONFIG_FBFRONT -DCONFIG_CONSFRONT -DCONFIG_XENBUS -fno-builtin > -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls > -fno-stack-protector -fgnu89-inline -Wstrict-prototypes > -Wnested-externs -Wpointer-arith -Winline -g -D__INSIDE_MINIOS__ > -m64 -mno-red-zone -fno-reorder-blocks > -fno-asynchronous-unwind-tables -isystem > /root/xen/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC > -isystem /root/xen/stubdom/../extras/mini-os/include/posix -isystem > /root/xen/stubdom/../tools/xenstore -isystem > /root/xen/stubdom/../extras/mini-os/include/x86 -isystem > /root/xen/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ > -U __FreeBSD__ -U __sun__ -nostdinc -isystem > /root/xen/stubdom/../extras/mini-os/include/posix -isystem > /root/xen/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem > /usr/lib/gcc/x86_64-linux-gnu/4.8/include -isystem > /root/xen/stubdom/lwip-x86_64/src/include -isystem > /root/xen/stubdom/lwip-x86_64/src/include/ipv4 > -I/root/xen/stubdom/include -I/root/xen/stubdom/../xen/include > -isystem /root/xen/extras/mini-os/../../extras/mini-os/include > -D__MINIOS__ -DHAVE_LIBC -isystem > /root/xen/extras/mini-os/../../extras/mini-os/include/posix -isystem > /root/xen/extras/mini-os/../../tools/xenstore -DHAVE_LWIP -isystem > /root/xen/stubdom/lwip-x86_64/src/include -isystem > /root/xen/stubdom/lwip-x86_64/src/include/ipv4 > -D__XEN_INTERFACE_VERSION__=0x00030205 -isystem > /root/xen/extras/mini-os/../../extras/mini-os/include/x86 -isystem > /root/xen/extras/mini-os/../../extras/mini-os/include/x86/x86_64 -c > fbfront.c -o /root/xen/stubdom/mini-os-x86_64-ioemu/fbfront.o > fbfront.c: In function ‘init_kbdfront’: > fbfront.c:108:5: error: format ‘%u’ expects argument of type > ‘unsigned int’, but argument 5 has type ‘long unsigned int’ > [-Werror=format=] > err = xenbus_printf(xbt, nodename, "page-ref","%u", virt_to_mfn(s)); > ^ > fbfront.c: In function ‘init_fbfront’: > fbfront.c:466:5: error: format ‘%u’ expects argument of type > ‘unsigned int’, but argument 5 has type ‘long unsigned int’ > [-Werror=format=] > err = xenbus_printf(xbt, nodename, "page-ref","%u", virt_to_mfn(s)); > ^ > cc1: all warnings being treated as errors > make[2]: *** [/root/xen/stubdom/mini-os-x86_64-ioemu/fbfront.o] Error 1 > make[2]: Leaving directory `/root/xen/extras/mini-os' > make[1]: *** [ioemu-stubdom] Error 2 > make[1]: Leaving directory `/root/xen/stubdom' > make: *** [install-stubdom] Error 2 > > Any suggestions? > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2013-Nov-19 11:06 UTC
Re: Build errors when trying to compile Xen 4.3 in Ubuntu 13.10
On Mon, 2013-11-18 at 16:29 +0000, Wei Liu wrote:> There''s a patch to fix that, but I don''t know whether it has been > merged. > > Search for > "[PATCH] Fix stubdom build failure for RELEASE-4.3.1" > > Or you can simply replace %u with correct format speficier. Should be > very straight forward to fix.Doesn''t look like this got fixed in the dev branch. If it is still a problem there please can someone rebase the referenced patch and post it against the unstalbe branch. Then we can see about backporting to the 4.3.x branch. Ian.
Wei Liu
2013-Nov-19 14:20 UTC
Re: Build errors when trying to compile Xen 4.3 in Ubuntu 13.10
On Tue, Nov 19, 2013 at 11:06:28AM +0000, Ian Campbell wrote:> On Mon, 2013-11-18 at 16:29 +0000, Wei Liu wrote: > > There''s a patch to fix that, but I don''t know whether it has been > > merged. > > > > Search for > > "[PATCH] Fix stubdom build failure for RELEASE-4.3.1" > > > > Or you can simply replace %u with correct format speficier. Should be > > very straight forward to fix. > > Doesn''t look like this got fixed in the dev branch. If it is still a > problem there please can someone rebase the referenced patch and post it > against the unstalbe branch. Then we can see about backporting to the > 4.3.x branch. >Debian''s gcc 4.7 seems to be happy with building stubdom. Ubuntu 13.10 uses 4.8 though. Let''s leave the patch to someone who runs gcc 4.8. ;-) Wei.> Ian.
Ian Campbell
2013-Nov-19 14:24 UTC
Re: Build errors when trying to compile Xen 4.3 in Ubuntu 13.10
On Tue, 2013-11-19 at 14:20 +0000, Wei Liu wrote:> On Tue, Nov 19, 2013 at 11:06:28AM +0000, Ian Campbell wrote: > > On Mon, 2013-11-18 at 16:29 +0000, Wei Liu wrote: > > > There''s a patch to fix that, but I don''t know whether it has been > > > merged. > > > > > > Search for > > > "[PATCH] Fix stubdom build failure for RELEASE-4.3.1" > > > > > > Or you can simply replace %u with correct format speficier. Should be > > > very straight forward to fix. > > > > Doesn''t look like this got fixed in the dev branch. If it is still a > > problem there please can someone rebase the referenced patch and post it > > against the unstalbe branch. Then we can see about backporting to the > > 4.3.x branch. > > > > Debian''s gcc 4.7 seems to be happy with building stubdom. Ubuntu 13.10 > uses 4.8 though. Let''s leave the patch to someone who runs gcc 4.8. ;-)Actually I found the original in my queue, someone had asked for updates which either didn''t happen or I missed them. I pinged the original patch author. Ian.
Rikolen
2013-Nov-19 19:15 UTC
Re: Build errors when trying to compile Xen 4.3 in Ubuntu 13.10
Thank you so much for your assistance and advice. After the patch the compilation has been completed successfully :) Now i have to get Virt-manager to work with the self compiled XEN-4.3.1. Currently I''m able to connected to the server but it doesn''t display any VM created before with xen-hypervisor-4.3-amd64 package from Ubuntu 13.10> On Tue, 2013-11-19 at 14:20 +0000, Wei Liu wrote: >> On Tue, Nov 19, 2013 at 11:06:28AM +0000, Ian Campbell wrote: >>> On Mon, 2013-11-18 at 16:29 +0000, Wei Liu wrote: >>>> There''s a patch to fix that, but I don''t know whether it has been >>>> merged. >>>> >>>> Search for >>>> "[PATCH] Fix stubdom build failure for RELEASE-4.3.1" >>>> >>>> Or you can simply replace %u with correct format speficier. Should be >>>> very straight forward to fix. >>> Doesn''t look like this got fixed in the dev branch. If it is still a >>> problem there please can someone rebase the referenced patch and post it >>> against the unstalbe branch. Then we can see about backporting to the >>> 4.3.x branch. >>> >> Debian''s gcc 4.7 seems to be happy with building stubdom. Ubuntu 13.10 >> uses 4.8 though. Let''s leave the patch to someone who runs gcc 4.8. ;-) > Actually I found the original in my queue, someone had asked for updates > which either didn''t happen or I missed them. I pinged the original patch > author. > > Ian. > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >
Dario Faggioli
2013-Nov-21 06:45 UTC
Re: Build errors when trying to compile Xen 4.3 in Ubuntu 13.10
On mar, 2013-11-19 at 20:15 +0100, Rikolen wrote:> Thank you so much for your assistance and advice. > After the patch the compilation has been completed successfully :) > Now i have to get Virt-manager to work with the self compiled XEN-4.3.1. > Currently I''m able to connected to the server but it doesn''t display any > VM created before with xen-hypervisor-4.3-amd64 package from Ubuntu 13.10 >What do you mean by created before? Have those VMs been created with libvirt/virt-manager? If no, it''s normal that you don''t see them, no matter what Xen version or package... It''s just how libvirt works. If they''ve been created by libvirt, then I don''t know. 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-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users