Package: libgetopt++ Version: 0.0.2-p22-3.1 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 ... > g++ -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -Wall -Werror -Wall -g > -O2 -c ../src/OptionSet.cc -fPIC -DPIC -o src/.libs/OptionSet.o > ../src/OptionSet.cc: In member function 'void > OptionSet::doOption(std::__cxx11::string&, const size_type&)': > ../src/OptionSet.cc:129:8: error: statement is indented as if it were guarded > by... [-Werror=misleading-indentation] > argv.erase(argv.begin() + 1); > ^~~~ > > ../src/OptionSet.cc:126:25: note: ...this 'if' clause, but it is not > if (!isOption(maybepos)) > ^~ > > ../src/OptionSet.cc:162:8: error: statement is indented as if it were guarded > by... [-Werror=misleading-indentation] > argv.erase(argv.begin() + 1); > ^~~~ > > ../src/OptionSet.cc:160:25: note: ...this 'if' clause, but it is not > if (!isOption(maybepos)) > ^~ > > cc1plus: all warnings being treated as errors > Makefile:435: recipe for target 'src/OptionSet.lo' failed > make[1]: *** [src/OptionSet.lo] Error 1 > make[1]: Leaving directory > '/build/libgetopt++-MRY0f4/libgetopt++-0.0.2-p22/obj-x86_64-linux-gnu' > debian/rules:52: recipe for target 'build-stamp' failed > make: *** [build-stamp] Error 2 -- Martin Michlmayr Linux for HPE Helion, Hewlett Packard Enterprise

