[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] 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@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.