[Debian-astro-maintainers] Bug#811730: skycat: FTBFS with GCC 6: narrowing conversion

Martin Michlmayr tbm at hpe.com
Wed Jan 20 01:45:06 UTC 2016


Package: skycat
Version: 3.1.2+starlink1~b-9
Severity: important
User: debian-gcc at 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
...
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DPACKAGE_NAME=\"tclutil\" -DPACKAGE_TARNAME=\"tclutil\" -DPACKAGE_VERSION=\"2.1.0\" -DPACKAGE_STRING=\"tclutil\ 2.1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_COMPAT_CONST=1 -DSIZEOF_LONG=8 -DHAVE_NET_SERVICES=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SOCKLEN_T=1 -DHAVE_SELECT_FD_SET=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1  -I. -I./bitmaps -I./generic -I"/usr/include/tcl8.6" -I"/usr/include/tcl8.6"   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O2  -fPIC -g -O2 -fstack-protector-strong -Wf
> ormat -Werror=format-security -c `echo ./generic/tclutil_bitmaps.C` -o tclutil_bitmaps.o
> In file included from ./generic/tclutil_bitmaps.C:16:0:
> ./bitmaps/ar6_6_4.xbm: In function 'void defineTclutilBitmaps(Tcl_Interp*)':
> ./bitmaps/ar6_6_4.xbm:6:50: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                                   ^
> 
> ./bitmaps/ar6_6_4.xbm:6:50: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/ar6_6_4.xbm:6:50: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/ar6_6_4.xbm:6:50: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/ar6_6_4.xbm:6:50: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/ar6_6_4.xbm:6:50: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from ./generic/tclutil_bitmaps.C:19:0:
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                       ^
> 
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '248' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/arrowboth.xbm:10:38: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from ./generic/tclutil_bitmaps.C:22:0:
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
>     0xfa, 0x07, 0x02, 0x01, 0xfe, 0x01, 0x00, 0x00};
>                                                   ^
> 
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '160' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '184' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '168' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '174' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '170' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '170' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '234' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '250' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/files.xbm:6:50: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from ./generic/tclutil_bitmaps.C:25:0:
> ./bitmaps/width1.xbm:11:74: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                                                           ^
> 
> ./bitmaps/width1.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width1.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width1.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from ./generic/tclutil_bitmaps.C:28:0:
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                                                           ^
> 
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> ./bitmaps/width2.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from ./generic/tclutil_bitmaps.C:31:0:
> ./bitmaps/width3.xbm:11:74: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                                                           ^
> 
> ./bitmaps/width3.xbm:11:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
...

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



More information about the Debian-astro-maintainers mailing list