Bug#811731: dx: FTBFS with GCC 6: narrowing conversion

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


Package: dx
Version: 1:4.4.4-8
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++ -DHAVE_CONFIG_H -I. -I../../../include -I./../base -I../../../include -I./../dxui -Dlinux  -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -fno-strict-aliasing -c -o AutoAxesDialog.o AutoAxesDialog.C
> In file included from AutoAxesDialog.C:42:0:
> ticks_in.bm:7:74: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x92, 0x24, 0x01, 0xfe, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                                                           ^
> 
> ticks_in.bm:7:74: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in.bm:7:74: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in.bm:7:74: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in.bm:7:74: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in.bm:7:74: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in.bm:7:74: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in.bm:7:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from AutoAxesDialog.C:43:0:
> ticks_out.bm:7:74: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x24, 0x49, 0x02, 0x24, 0x49, 0x02, 0x20, 0x08, 0x02, 0x20, 0x08, 0x02};
>                                                                           ^
> 
> ticks_out.bm:7:74: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from AutoAxesDialog.C:44:0:
> ticks_in_ins.bm:7:74: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x82, 0x20, 0x00, 0x54, 0x55, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
>                                                                           ^
> 
> ticks_in_ins.bm:7:74: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
> ticks_in_ins.bm:7:74: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
> In file included from AutoAxesDialog.C:45:0:
> ticks_out_ins.bm:7:74: error: narrowing conversion of '170' from 'int' to 'char' inside { } [-Wnarrowing]
>     0x20, 0x08, 0x02, 0x04, 0x41, 0x00, 0x20, 0x08, 0x02, 0x00, 0x00, 0x00};
>                                                                           ^
> 
> ticks_out_ins.bm:7:74: error: narrowing conversion of '170' from 'int' to 'char' inside { } [-Wnarrowing]

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



More information about the debian-science-maintainers mailing list