Bug#811590: FTBFS with GCC 6: statement indented as if it were guarded by

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:05:36 UTC 2016


Package: rheolef
Version: 6.6-1
Severity: important
User: debian-gcc at 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
...
> /bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../config -I../../util/qd  -fno-strict-aliasing -I../../include -I/usr/include/suitesparse       -I/usr/lib/openmpi/include     -Wdate-time -D_FORTIFY_SOURCE=2  -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Wall -Werror -Wno-unused -Wno-strict-aliasing -Wno-literal-suffix -Wno-deprecated-declarations -O3  -MT distributor.lo -MD -MP -MF .deps/distributor.Tpo -c -o distributor.lo distributor.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../config -I../../util/qd -fno-strict-aliasing -I../../include -I/usr/include/suitesparse -I/usr/lib/openmpi/include -Wdate-time -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -Wall -Werror -Wno-unused -Wno-strict-aliasing -Wno-literal-suffix -Wno-deprecated-declarations -O3 -MT distributor.lo -MD -MP -MF .deps/distributor.Tpo -c distributor.cc  -fPIC -DPIC -o .libs/distributor.o
> In file included from ../../include/rheolef/dis_macros.h:24:0,
>                  from ../../include/rheolef/distributor.h:25,
>                  from distributor.cc:22:
> ../../include/rheolef/diststream.h: In function 'rheolef::odiststream& rheolef::operator<<(rheolef::odiststream&, T)':
> ../../include/rheolef/diststream.h:247:28: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>      if (s.nop()) return s; s.os() << x; return s;
>                             ^
> 
> ../../include/rheolef/diststream.h:247:5: note: ...this 'if' clause, but it is not
>      if (s.nop()) return s; s.os() << x; return s;
>      ^~
> 
> cc1plus: all warnings being treated as errors
> Makefile:754: recipe for target 'distributor.lo' failed
> make[4]: *** [distributor.lo] Error 1

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



More information about the debian-science-maintainers mailing list