Bug#811738: htdig: FTBFS with GCC 6: narrowing conversion
Package: htdig
Version: 1:3.2.0b6-15
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-narrowing
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.
You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> libtool: compile: x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -DDEFAULT_CONFIG_FILE=\"/etc/htdig/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DMV=\"/bin/mv\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated -Wall -fno-rtti -fno-exceptions -c Accents.cc -fPIC -DPIC -o .libs/Accents.o
> Accents.cc:78:42: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
> 'o', 'u', 'u', 'u', 'u', 'y', 254, 255};
> ^
>
> Accents.cc:78:42: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '131' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '133' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '134' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '135' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '136' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '137' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '138' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '139' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '140' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '141' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '142' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '143' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '144' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '145' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '147' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '148' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '149' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '150' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '151' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '152' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '153' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '154' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '155' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '156' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '157' from 'int' to 'char' inside { } [-Wnarrowing]
> Accents.cc:78:42: error: narrowing conversion of '158' from 'int' to 'char' inside { } [-Wnarrowing]
...
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
Reply to: