Package: dvgrab
Version: 3.5-2
Severity: important
User: [email protected]
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/usr/include/lqt   -D_REENTRANT 
> -D_FILE_OFFSET_BITS=64 -Wall -O2 -MT srt.o -MD -MP -MF .deps/srt.Tpo -c -o 
> srt.o srt.cc
> mv -f .deps/raw1394util.Tpo .deps/raw1394util.Po
> mv -f .deps/io.Tpo .deps/io.Po
> In file included from hdvframe.h:24:0,
>                  from iec13818-1.cc:25:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> Makefile:386: recipe for target 'iec13818-1.o' failed
> make[1]: *** [iec13818-1.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> riff.cc: In member function 'virtual void RIFFFile::ParseChunk(int)':
> riff.cc:461:14: warning: overflow in implicit constant conversion [-Woverflow]
>    typesize = -sizeof( type );
>               ^~~~~~~~
> 
> In file included from hdvframe.h:24:0,
>                  from ieee1394io.h:34,
>                  from ieee1394io.cc:73:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> In file included from hdvframe.h:24:0,
>                  from iec13818-2.cc:23:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> In file included from hdvframe.h:24:0,
>                  from ieee1394io.h:34,
>                  from dvgrab.h:31,
>                  from main.cc:54:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> ieee1394io.cc: In member function 'bool pipeReader::Handler()':
> ieee1394io.cc:1053:71: warning: suggest parentheses around assignment used as 
> truth value [-Wparentheses]
>     if ( ret = ( fread( buf, IEC61883_MPEG2_TSP_SIZE, 1, file ) == 1 ) )
>                                                                        ^
> 
> ieee1394io.cc:1060:69: warning: suggest parentheses around assignment used as 
> truth value [-Wparentheses]
>     if ( ret = ( fread( currentFrame->data, 120000, 1, file ) == 1 ) )
>                                                                      ^
> 
> ieee1394io.cc:1065:79: warning: suggest parentheses around assignment used as 
> truth value [-Wparentheses]
>       if ( ret = ( fread( currentFrame->data + 120000, 24000, 1, file ) == 1 
> ) )
>                                                                               
>  ^
> 
> In file included from hdvframe.h:24:0,
>                  from hdvframe.cc:22:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> In file included from hdvframe.h:24:0,
>                  from ieee1394io.h:34,
>                  from v4l2reader.h:28,
>                  from v4l2reader.cc:21:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> In file included from hdvframe.cc:22:0:
> hdvframe.h: In constructor 'HDVStreamParams::HDVStreamParams()':
> hdvframe.h:50:8: warning: 'HDVStreamParams::frameRate' will be initialized 
> after [-Wreorder]
>   float frameRate;
>         ^~~~~~~~~
> 
> hdvframe.h:47:6: warning:   'int HDVStreamParams::carryover_length' 
> [-Wreorder]
>   int carryover_length;
>       ^~~~~~~~~~~~~~~~
> 
> hdvframe.cc:341:1: warning:   when initialized here [-Wreorder]
>  HDVStreamParams::HDVStreamParams() :
>  ^~~~~~~~~~~~~~~
> 
> In file included from hdvframe.h:24:0,
>                  from ieee1394io.h:34,
>                  from dvgrab.h:31,
>                  from dvgrab.cc:48:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> In file included from hdvframe.h:24:0,
>                  from filehandler.h:34,
>                  from filehandler.cc:49:
> iec13818-1.h:45:75: error: narrowing conversion of '255' from 'int' to 'char' 
> inside { } [-Wnarrowing]
>  static char bitmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff };
>                                                                            ^
> 
> Makefile:386: recipe for target 'iec13818-2.o' failed

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

Reply via email to