Package: tpm-tools
Version: 1.3.8-2
Severity: important
User: debian-...@lists.debian.org
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 -DHAVE_CONFIG_H -I. -I../..  -I../../include -D_LINUX -DTSS_LIB_IS_12 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -m64 -Wall -Werror -Wno-unused 
> -Wno-implicit-function-declaration -Wreturn-type -Wsign-compare -c -o 
> tpm_present.o tpm_present.c
> tpm_present.c: In function 'main':
> tpm_present.c:360:2: error: statement is indented as if it were guarded by... 
> [-Werror=misleading-indentation]
>   return iRc;
>   ^~~~~~
> 
> tpm_present.c:358:5: note: ...this 'if' clause, but it is not
>      if (szTpmPasswd && !isWellKnown)
>      ^~
> 
> cc1: all warnings being treated as errors
> Makefile:741: recipe for target 'tpm_present.o' failed
> make[4]: *** [tpm_present.o] Error 1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/tpm_mgmt'
> Makefile:400: recipe for target 'all-recursive' failed
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
> Makefile:456: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'

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

Reply via email to