Package: linux-tools
Version: 4.3.1-2
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-misleading-indentation

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
>   gcc 
> -Wp,-MD,/<<PKGBUILDDIR>>/debian/build/tools/perf/out/util/.find_next_bit.o.d,-MT,/<<PKGBUILDDIR>>/debian/build/tools/perf/out/util/find_next_bit.o
>  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall 
> -Wdate-time -D_FORTIFY_SOURCE=2 -I/<<PKGBUILDDIR>>/tools/perf 
> -I/<<PKGBUILDDIR>>/debian/build/tools/perf -isystem 
> /<<PKGBUILDDIR>>/debian/build/include -Wno-error -DHAVE_ARCH_X86_64_SUPPORT 
> -DHAVE_PERF_REGS_SUPPORT -Werror -O6 -fno-omit-frame-pointer -ggdb3 
> -funwind-tables -Wall -Wextra -std=gnu99 -fstack-protector-all 
> -D_FORTIFY_SOURCE=2 -I/<<PKGBUILDDIR>>/tools/perf/util/include 
> -I/<<PKGBUILDDIR>>/tools/perf/arch/x86/include 
> -I/<<PKGBUILDDIR>>/tools/include/ -I/<<PKGBUILDDIR>>/arch/x86/include/uapi 
> -I/<<PKGBUILDDIR>>/arch/x86/include -I/<<PKGBUILDDIR>>/include/uapi 
> -I/<<PKGBUILDDIR>>/include 
> -I/<<PKGBUILDDIR>>/debian/build/tools/perf/out//util 
> -I/<<PKGBUILDDIR>>/debian/build/tools/perf/out/ 
> -I/<<PKGBUILDDIR>>/tools/perf/util -I/<<PKGBUILDDIR>>/tools/perf
>  -I/<<PKGBUILDDIR>>/tools/lib/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
> -D_GNU_SOURCE -DHAVE_SYNC_COMPARE_AND_SWAP_SUPPORT 
> -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP -DHAVE_LIBELF_SUPPORT 
> -DHAVE_LIBELF_MMAP_SUPPORT -DHAVE_ELF_GETPHDRNUM_SUPPORT -DHAVE_DWARF_SUPPORT 
>  -DHAVE_DWARF_UNWIND_SUPPORT -DNO_LIBUNWIND_DEBUG_FRAME 
> -DHAVE_LIBUNWIND_SUPPORT  -DHAVE_LIBAUDIT_SUPPORT -I/usr/include/slang 
> -DHAVE_SLANG_SUPPORT -DHAVE_TIMERFD_SUPPORT -DHAVE_CPLUS_DEMANGLE_SUPPORT 
> -DHAVE_ZLIB_SUPPORT -DHAVE_BACKTRACE_SUPPORT -DHAVE_LIBNUMA_SUPPORT 
> -DHAVE_KVM_STAT_SUPPORT -DHAVE_PERF_READ_VDSO32 -DHAVE_PERF_READ_VDSOX32 
> -DHAVE_AUXTRACE_SUPPORT -I/<<PKGBUILDDIR>>/debian/build/tools/perf/out/ 
> -D"BUILD_STR(s)=#s" -Wno-unused-parameter 
> -DETC_PERFCONFIG="BUILD_STR(/etc/perfconfig)"  -c -o 
> /<<PKGBUILDDIR>>/debian/build/tools/perf/out/util/find_next_bit.o 
> ../lib/util/find_next_bit.c
> ui/browsers/annotate.c: In function 'annotate_browser__run':
> ui/browsers/annotate.c:760:5: error: statement is indented as if it were 
> guarded by... [-Werror=misleading-indentation]
>      if (nd == NULL)
>      ^~
> 
> ui/browsers/annotate.c:758:4: note: ...this 'if' clause, but it is not
>     if (nd != NULL)
>     ^~
> 
> kbuffer-parse.c: In function 'kbuffer_read_at_offset':
> kbuffer-parse.c:632:9: warning: 'data' may be used uninitialized in this 
> function [-Wmaybe-uninitialized]
>   return data;
>          ^~~~
> 

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to