Bug#811682: FTBFS with GCC 6: could not convert a from x to y

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:55:07 UTC 2016


Package: gtkmathview
Version: 0.8.0-13
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert

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.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../auto -I../../../src/common -I../../../src/common/mathvariants -I../../../src/engine/common -I../../../src/engine/mathml -I../../../src/engine/boxml -I../../../src/frontend/common -I../../../src/backend/common -DGMV_MathView_DLL -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wall -c View.cc  -fPIC -DPIC -o .libs/libengine_common_la-View.o
> In file included from /usr/include/c++/6/ext/hash_map:60:0,
>                  from ../../../src/common/HashMap.hh:24,
>                  from ../../../src/engine/mathml/MathMLOperatorDictionary.hh:25,
>                  from View.cc:29:
> /usr/include/c++/6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
>  #warning \
>   ^~~~~~~
> 
> View.cc: In member function 'SmartPtr<Element> View::getCharAt(const scaled&, const scaled&, CharIndex&, Point*, BoundingBox*) const':
> View.cc:294:10: error: could not convert 'false' from 'bool' to 'SmartPtr<Element>'
>    return false;
>           ^~~~~
> 
> Makefile:579: recipe for target 'libengine_common_la-View.lo' failed
> make[5]: *** [libengine_common_la-View.lo] Error 1

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



More information about the debian-science-maintainers mailing list