Fix for stubdom build breakage
cover Fix for stubdom build breakage
I saw the following build error with stubdom:
make libs
make[3]: Entering directory `/kumo/xen.tmp/stubdom/libxc-x86_64'
ar rc libxenctrl.a xc_core.o xc_core_x86.o xc_cpupool.o xc_domain.o xc_evtchn.o xc_gnttab.o xc_misc.o xc_flask.o xc_physdev.o xc_private.o xc_sedf.o xc_csched.o xc_csched2.o xc_arinc653.o xc_tbuf.o xc_pm.o xc_cpu_hotplug.o xc_resume.o xc_tmem.o xc_mem_event.o xc_mem_paging.o xc_mem_access.o xc_memshr.o xc_hcall_buf.o xc_foreign_memory.o xc_kexec.o xtl_core.o xtl_logger_stdio.o xc_pagetab.o xc_minios.o
gcc -isystem /kumo/xen.tmp/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /kumo/xen.tmp/stubdom/../extras/mini-os/include/posix -isystem /kumo/xen.tmp/stubdom/../tools/xenstore -isystem /kumo/xen.tmp/stubdom/../extras/mini-os/include/x86 -isystem /kumo/xen.tmp/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /kumo/xen.tmp/stubdom/../extras/mini-os/include/posix -isystem /kumo/xen.tmp/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include -isystem /kumo/xen.tmp/stubdom/lwip-x86_64/src/include -isystem /kumo/xen.tmp/stubdom/lwip-x86_64/src/include/ipv4 -I/kumo/xen.tmp/stubdom/include -I/kumo/xen.tmp/stubdom/../xen/include -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include/posix -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../tools/xenstore -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include/x86 -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include/x86/x86_64 -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include/posix -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../tools/xenstore -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include/x86 -isystem /kumo/xen.tmp/stubdom/libxc-x86_64/../../extras/mini-os/include/x86/x86_64 -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 -fno-stack-protector -fno-exceptions -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-unu!
sed-but-set-variable -D__XEN_TOOLS__ -MMD -MF .build.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -I../../xen/common/libelf -Werror -Wmissing-prototypes -I. -I/kumo/xen.tmp/stubdom/libxc-x86_64/../../tools/include -pthread -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 -D__XEN_TOOLS__ -MMD -MF .xc_dom_decompress_unsafe_lzo1x.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls -I../../xen/common/libelf -Werror -Wmissing-prototypes -I. -I/kumo/xen.tmp/stubdom/libxc-x86_64/../../tools/include -pthread -include /kumo/xen.tmp/stubdom/libxc-x86_64/../../tools/config.h -c -o xc_dom_decompress_unsafe_lzo1x.o xc_dom_decompress_unsafe_lzo1x.c
In file included from xc_dom_decompress_unsafe_lzo1x.c:42:0:../../xen/common/lzo.c: In function ‘lzo1x_1_do_compress’:../../xen/common/lzo.c:151:17: error: ‘u64’ undeclared (first use in this function)../../xen/common/lzo.c:151:17: note: each undeclared identifier is reported only once for each function it appears in../../xen/common/lzo.c:151:17: error: expected expression before ‘)’ token../../xen/common/lzo.c:151:17: error: type defaults to ‘int’ in type name [-Werror]../../xen/common/lzo.c:151:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]../../xen/common/lzo.c:151:17: error: invalid type argument of unary ‘*’ (have ‘int’)../../xen/common/lzo.c:152:17: error: expected expression before ‘)’ token../../xen/common/lzo.c:152:17: error: expected ‘)’ before ‘u64’../../xen/common/lzo.c:152:17: error: type defaults to ‘int’ in type name [-Werror]../../xen/common/lzo.c:152:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]../../xen/common/lzo.c:152:17: error: invalid type argument of unary ‘*’ (have ‘int’)../../xen/common/lzo.c:167:21: error: expected expression before ‘)’ token../../xen/common/lzo.c:167:21: error: type defaults to ‘int’ in type name [-Werror]../../xen/common/lzo.c:167:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]../../xen/common/lzo.c:167:21: error: invalid type argument of unary ‘*’ (have ‘int’)../../xen/common/lzo.c:168:21: error: expected expression before ‘)’ token../../xen/common/lzo.c:168:21: error: expected ‘)’ before ‘u64’../../xen/common/lzo.c:168:21: error: type defaults to ‘int’ in type name [-Werror]../../xen/common/lzo.c:168:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]../../xen/common/lzo.c:168:21: error: invalid type argument of unary ‘*’ (have ‘int’)../../xen/common/lzo.c: In function ‘lzo1x_1_compress’:../../xen/common/lzo.c:346:13: error: ‘u64’ undeclared (first use in this function)../../xen/common/lzo.c:346:13: error: expected expression before ‘)’ token../../xen/common/lzo.c:346:13: error: type defaults to ‘int’ in type name [-Werror]../../xen/common/lzo.c:346:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]../../xen/common/lzo.c:346:13: error: invalid type argument of unary ‘*’ (have ‘int’)../../xen/common/lzo.c:347:13: error: expected expression before ‘)’ token../../xen/common/lzo.c:347:13: error: expected ‘)’ before ‘u64’../../xen/common/lzo.c:347:13: error: type defaults to ‘int’ in type name [-Werror]../../xen/common/lzo.c:347:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]../../xen/common/lzo.c:347:13: error: invalid type argument of unary ‘*’ (have ‘int’)
cc1: all warnings being treated as errors
make[3]: *** [xc_dom_decompress_unsafe_lzo1x.o] Error 1
make[3]: Leaving directory `/kumo/xen.tmp/stubdom/libxc-x86_64'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/kumo/xen.tmp/stubdom/libxc-x86_64'
make[1]: *** [libxc-x86_64/libxenctrl.a] Error 2
make[1]: Leaving directory `/kumo/xen.tmp/stubdom'
make: *** [install-stubdom] Error 2
This was with gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3. I fixed it with the patch I am submitting. Please let me know if this is not the correct fix and is something do with my environment.
Thanks,
Aravindh
libxc: Fix stub domain build breakage
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c | 1 + 1 file changed, 1 insertion(+)
Signature · 7 lines
1.9.1 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
PATCH 1/1 libxc: Fix stub domain build breakage
Commit 447f613c (lzo: update LZO compression to current upstream version) broke the stub domain build. This patch fixes the build breakage.
--- tools/libxc/xc_dom_decompress_unsafe_lzo1x.c | 1 + 1 file changed, 1 insertion(+)
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c +1 -0
@@ -10,6 +10,7 @@typedef uint8_t u8 ;typedef uint32_t u32 ;typedef uint16_t u16 ; +typedef uint64_t u64 ;#define likely (a) a#define noinline
Signature · 1 line
1.9.1
Re: [PATCH 1/1] libxc: Fix stub domain build breakage
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c line 13
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 04.07.14 at 05:15, <[email protected]> wrote:
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c +1
-0@@ -10,6 +10,7 @@typedef uint8_t u8 ;typedef uint32_t u32 ;typedef uint16_t u16 ; +typedef uint64_t u64 ;
Darn, I only checked the 32-bit build. Thanks for the fix!
Jan
Re: [PATCH 1/1] libxc: Fix stub domain build breakage
Quoted 10 lines · Jan Beulich
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c line 13
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 04.07.14 at 05:15, <[email protected]> wrote:
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c +1
-0@@ -10,6 +10,7 @@typedef uint8_t u8 ;typedef uint32_t u32 ;typedef uint16_t u16 ; +typedef uint64_t u64 ;Darn, I only checked the 32-bit build. Thanks for the fix!
Acked+applied. Thanks.