Bug#811792: gmsh: FTBFS with GCC 6: narrowing conversion

Martin Michlmayr tbm at hpe.com
Wed Jan 20 02:02:22 UTC 2016


Package: gmsh
Version: 2.11.0+dfsg1-1
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
...
> I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/Netgen -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/Netgen/libsrc/include -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/Netgen/nglib -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/bamg -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/bamg/bamglib -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/mmg3d/build/sources -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/gmm -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/contrib/Salome -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Common -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Geo -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Graphics -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Mesh -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Solver -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Numeric -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Parser -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Plugin -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Post -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Qt -I/usr/include/ANN -I/usr/include/hdf5/openmpi -I/usr/lib/x86_64-linux-gnu/oce-0.15/../../../include/oce -I/usr/include/mpi -I/<<BUILDDIR>>/gmsh-2.11.0+dfsg1/debian/build/Common  -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -lmpi -fPIC -Wall -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC   -Wall -Wno-deprecated-declarations -o CMakeFiles/shared.dir/Mesh/directions3D.cpp.o -c /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Mesh/directions3D.cpp
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/drawContextFltkStringTexture.cpp: In member function 'virtual void drawContextFltkStringTexture::drawString(const char*)':
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/drawContextFltkStringTexture.cpp:148:59: warning: narrowing conversion of '(((drawContextFltkStringTexture*)this)->drawContextFltkStringTexture::<anonymous>.drawContextFltk::getStringWidth(str) + (double)1)' from 'double' to 'int' inside { } [-Wnarrowing]
>      _currentFontSize, _currentFontId, getStringWidth(str) + 1, getStringHeight()};
>                                        ~~~~~~~~~~~~~~~~~~~~^~~
> 
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp: In constructor 'FlGui::FlGui(int, char**)':
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
>      0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00};
>                                                    ^
> 
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '253' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '168' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '234' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '162' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '170' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '170' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> /<<BUILDDIR>>/gmsh-2.11.0+dfsg1/Fltk/FlGui.cpp:384:51: 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-science-maintainers mailing list