Package: src:xen Version: 4.4.1-6 Severity: normal Tags: sid stretch User: debian-gcc at lists.debian.org Usertags: ftbfs-gcc-5 Please keep this issue open in the bug tracker for the package it was filed for. If a fix in another package is required, please file a bug for the other package (or clone), and add a block in this package. Please keep the issue open until the package can be built in a follow-up test rebuild. The package fails to build in a test rebuild on at least amd64 with gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The severity of this report may be raised before the stretch release. The full build log can be found at: http://people.debian.org/~doko/logs/gcc5-20150205/xen_4.4.1-6_unstable_gcc5.log The last lines of the build log are at the end of this report. To build with GCC 5, either set CC=gcc-5 CXX=g++-5 explicitly, or install the gcc, g++, gfortran, ... packages from experimental. apt-get -t experimental install g++ Common build failures are C11 as the default C mode, new warnings resulting in build failures with -Werror turned on, or new/dropped symbols in Debian symbols files. For other C/C++ related build failures see the porting guide at http://gcc.gnu.org/gcc-5/porting_to.html [...] objdump -h reloc.o | sed -n '/[0-9]/{s,00*,0,g;p}' |\ while read idx name sz rest; do \ case "$name" in \ .data|.data.*|.rodata|.rodata.*|.bss|.bss.*) \ test $sz != 0 || continue; \ echo "Error: non-empty $name: 0x$sz" >&2; \ exit $(expr $idx + 1);; \ esac; \ done ld -melf_i386 -N -Ttext 0 -o reloc.lnk reloc.o objcopy -O binary reloc.lnk reloc.bin (od -v -t x reloc.bin | tr -s ' ' | awk 'NR > 1 {print s} {s=$0}' | \ sed 's/ /,0x/g' | sed 's/,0x$//' | sed 's/^[0-9]*,/ .long /') >reloc.S make[7]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/boot' gcc -D__ASSEMBLY__ -include /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/config.h -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -DNDEBUG -I/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include -I/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/asm-x86/mach-generic -I/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs -DHAVE_GAS_VMX -DHAVE_GAS_EPT -DHAVE_GAS_FSGSBASE -mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -fno-builtin -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ -include /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/config.h -nostdinc -DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -DHAS_PCI -DHAS_IOPORTS -MMD -MF .head.o.d -c head.S -o head.o ld -melf_x86_64 -r -o built_in.o head.o make[6]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/boot' /usr/bin/make -f /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/Rules.mk -C /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/efi built_in.o make[6]: Entering directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/efi' gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -DNDEBUG -I/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include -I/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/asm-x86/mach-generic -I/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs -DHAVE_GAS_VMX -DHAVE_GAS_EPT -DHAVE_GAS_FSGSBASE -mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -fno-builtin -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ -include /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/include/xen/config.h -nostdinc -DHAS_ACPI -DHAS_GDBSX -DHAS_PASSTHROUGH -DHAS_PCI -DHAS_IOPORTS -MMD -MF .boot.o.d -fshort-wchar -DINIT_SECTIONS_ONLY -c boot.c -o boot.o objdump -h boot.o | sed -n '/[0-9]/{s,00*,0,g;p}' | while read idx name sz rest; do \ case "$name" in \ .text|.text.*|.data|.data.*|.bss) \ test $sz != 0 || continue; \ echo "Error: size of boot.o:$name is 0x$sz" >&2; \ exit $(expr $idx + 1);; \ esac; \ done Error: size of boot.o:.text is 0x01e9 make[6]: *** [boot.init.o] Error 1 /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/Rules.mk:174: recipe for target 'boot.init.o' failed make[6]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/efi' make[5]: *** [/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/efi/built_in.o] Error 2 /??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/Rules.mk:153: recipe for target '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86/efi/built_in.o' failed make[5]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/arch/x86' make[4]: *** [/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/xen] Error 2 Makefile:100: recipe for target '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen/xen' failed make[4]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen' make[3]: *** [build] Error 2 Makefile:26: recipe for target 'build' failed make[3]: Leaving directory '/??PKGBUILDDIR??/debian/build/build-hypervisor_amd64_amd64/xen' make[2]: *** [debian/stamps/build-hypervisor_amd64_amd64] Error 2 debian/rules.real:83: recipe for target 'debian/stamps/build-hypervisor_amd64_amd64' failed make[2]: Leaving directory '/??PKGBUILDDIR??' make[1]: *** [build-arch_amd64_none_amd64] Error 2 debian/rules.gen:50: recipe for target 'build-arch_amd64_none_amd64' failed make[1]: Leaving directory '/??PKGBUILDDIR??' make: *** [build-arch] Error 2 debian/rules:20: recipe for target 'build-arch' failed dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
Ian Campbell
2015-Mar-13 12:04 UTC
[Pkg-xen-devel] Bug#778181: Bug#778181: xen: ftbfs with GCC-5
Control: found -1 4.5.0-1 Control: forwarded -1 http://lists.xen.org/archives/html/xen-devel/2015-03/msg01678.html On Thu, 2015-02-12 at 10:38 +0000, Matthias Klose wrote:> Package: src:xen > Version: 4.4.1-6FWIW I see exactly the same issue with Xen 4.5.0-1 from experimental the 4.6 development branch upstream, when built with debug=n. I've asked upstream, I'm not sure if this is a gcc5 issue or not. Ian.
Debian Bug Tracking System
2015-Mar-13 12:06 UTC
[Pkg-xen-devel] Processed: Re: Bug#778181: xen: ftbfs with GCC-5
Processing control commands:> found -1 4.5.0-1Bug #778181 [src:xen] xen: ftbfs with GCC-5 Marked as found in versions xen/4.5.0-1.> forwarded -1 http://lists.xen.org/archives/html/xen-devel/2015-03/msg01678.htmlBug #778181 [src:xen] xen: ftbfs with GCC-5 Set Bug forwarded-to-address to 'http://lists.xen.org/archives/html/xen-devel/2015-03/msg01678.html'. -- 778181: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778181 Debian Bug Tracking System Contact owner at bugs.debian.org with problems
Ian Campbell
2015-Mar-13 13:39 UTC
[Pkg-xen-devel] Bug#778181: Bug#778181: Bug#778181: xen: ftbfs with GCC-5
Control: reassign -1 gcc-5 5-20150205-1 On Fri, 2015-03-13 at 12:04 +0000, Ian Campbell wrote:> Control: found -1 4.5.0-1 > Control: forwarded -1 http://lists.xen.org/archives/html/xen-devel/2015-03/msg01678.html > > On Thu, 2015-02-12 at 10:38 +0000, Matthias Klose wrote: > > Package: src:xen > > Version: 4.4.1-6 > > FWIW I see exactly the same issue with Xen 4.5.0-1 from experimental the > 4.6 development branch upstream, when built with debug=n. > > I've asked upstream, I'm not sure if this is a gcc5 issue or not.The response, from http://lists.xen.org/archives/html/xen-devel/2015-03/msg01690.html: they're properly annotated. I.e. the compiler forgets to propagate the section attribute when generating variants of the functions (e.g. after having detected that it always gets called with some argument set to some specific value). And then http://lists.xen.org/archives/html/xen-devel/2015-03/msg01692.html points to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57725 which does seem to be correct. Ian.
Debian Bug Tracking System
2015-Mar-13 13:42 UTC
[Pkg-xen-devel] Processed: Re: Bug#778181: Bug#778181: xen: ftbfs with GCC-5
Processing control commands:> reassign -1 gcc-5 5-20150205-1Bug #778181 [src:xen] xen: ftbfs with GCC-5 Bug reassigned from package 'src:xen' to 'gcc-5'. No longer marked as found in versions xen/4.5.0-1 and xen/4.4.1-6. Ignoring request to alter fixed versions of bug #778181 to the same values previously set Bug #778181 [gcc-5] xen: ftbfs with GCC-5 Marked as found in versions gcc-5/5-20150205-1. -- 778181: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778181 Debian Bug Tracking System Contact owner at bugs.debian.org with problems