[Pkg-xen-devel] Bug#712376: xen FTBFS with current gcc-4.8

Michael Tokarev mjt at tls.msk.ru
Sat Jun 15 12:28:12 UTC 2013


Source: xen
Version: 4.2.1-2
Severity: serious

When trying to build xen in current sid environment, which now uses
gcc-4.8.1, it fails to build:

gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -DNDEBUG -fno-builtin -fno-common -Wredundant-decls -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include  -I/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/asm-x86/mach-generic -I/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs -mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc -g -D__XEN__ -include /tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/config.h -DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -MMD -MF .memory.o.d -c memory.c -o memory.o
In file included from /tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/public/xen.h:33:0,
                 from /tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/time.h:12,
                 from /tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/hypercall.h:9,
                 from memory.c:3:
memory.c: In function 'compat_memory_op':
/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/public/arch-x86/xen.h:35:33: error: typedef '__guest_handle_const_compat_memory_exchange_t' locally defined but not used [-Werror=unused-local-typedefs]
     typedef struct { type *p; } __guest_handle_ ## name
                                 ^
/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/public/arch-x86/xen.h:43:5: note: in expansion of macro '___DEFINE_XEN_GUEST_HANDLE'
     ___DEFINE_XEN_GUEST_HANDLE(const_##name, const type)
     ^
/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/include/public/arch-x86/xen.h:44:41: note: in expansion of macro '__DEFINE_XEN_GUEST_HANDLE'
 #define DEFINE_XEN_GUEST_HANDLE(name)   __DEFINE_XEN_GUEST_HANDLE(name, name)
                                         ^
memory.c:261:13: note: in expansion of macro 'DEFINE_XEN_GUEST_HANDLE'
             DEFINE_XEN_GUEST_HANDLE(compat_memory_exchange_t);
             ^
cc1: all warnings being treated as errors
make[7]: *** [memory.o] Error 1
make[7]: Leaving directory `/tmp/xen-4.2.1/debian/build/build-hypervisor_amd64_amd64/xen/common/compat'


This does not happen with gcc-4.7.

(I tried to fix a few other xen-related bugs -- like producing wrong ocaml
libs referring to builddir -- #710650, or missing libssl-dev delendency --
#712366, but now it also fails due to gcc-4.8.  Oh well)

Thanks,

/mjt



More information about the Pkg-xen-devel mailing list