Bug#811858: fife: FTBFS with GCC 6: no matching function for call to

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


Package: fife
Version: 0.3.5-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-no-match

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++ -o build/engine/release/core/util/base/py_stringutils.os -c -DPNG_SKIP_SETJMP_CHECK -O2 -Wall -Wno-unused -fPIC -DTIXML_USE_STL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SYSTEM_TINY_XML -DNDEBUG -DHAVE_OPENGL -DHAVE_ZIP -DLOG_ENABLED -I/opt/include -I/usr/include/vorbis -I/usr/include/SDL -I/usr/include/python2.7 -Iext/install/include -I/usr/include/AL -Iengine/core engine/core/util/base/stringutils.cpp
> engine/core/view/renderers/targetrenderer.cpp: In member function 'FIFE::RenderTargetPtr FIFE::TargetRenderer::createRenderTarget(const string&, uint32_t, uint32_t)':
> engine/core/view/renderers/targetrenderer.cpp:139:68: error: no matching function for call to 'make_pair(const string&, FIFE::TargetRenderer::RenderJob&)'
>     m_targets.insert(std::make_pair<std::string, RenderJob>(name, rj));
>                                                                     ^
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/string:40,
>                  from engine/core/video/renderbackend.h:26,
>                  from engine/core/view/renderers/targetrenderer.cpp:30:
> /usr/include/c++/6/bits/stl_pair.h:406:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
>      make_pair(_T1&& __x, _T2&& __y)
>      ^~~~~~~~~
> 
> /usr/include/c++/6/bits/stl_pair.h:406:5: note:   template argument deduction/substitution failed:
> engine/core/view/renderers/targetrenderer.cpp:139:60: note:   cannot convert 'name' (type 'const string {aka const std::__cxx11::basic_string<char>}') to type 'std::__cxx11::basic_string<char>&&'
>     m_targets.insert(std::make_pair<std::string, RenderJob>(name, rj));
>                                                             ^~~~
> 
> engine/core/view/renderers/targetrenderer.cpp: In member function 'FIFE::RenderTargetPtr FIFE::TargetRenderer::createRenderTarget(FIFE::ImagePtr&)':
> engine/core/view/renderers/targetrenderer.cpp:152:80: error: no matching function for call to 'make_pair(const string&, FIFE::TargetRenderer::RenderJob&)'
>     m_targets.insert(std::make_pair<std::string, RenderJob>(image->getName(), rj));
>                                                                                 ^
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/string:40,
>                  from engine/core/video/renderbackend.h:26,
>                  from engine/core/view/renderers/targetrenderer.cpp:30:
> /usr/include/c++/6/bits/stl_pair.h:406:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
>      make_pair(_T1&& __x, _T2&& __y)
>      ^~~~~~~~~
> 
> /usr/include/c++/6/bits/stl_pair.h:406:5: note:   template argument deduction/substitution failed:
> engine/core/view/renderers/targetrenderer.cpp:152:74: note:   cannot convert '(&(& image)->FIFE::SharedPtr<T>::operator-><FIFE::Image>()->FIFE::Image::<anonymous>)->FIFE::IResource::getName()' (type 'const string {aka const std::__cxx11::basic_string<char>}') to type 'std::__cxx11::basic_string<char>&&'
>     m_targets.insert(std::make_pair<std::string, RenderJob>(image->getName(), rj));
>                                                             ~~~~~~~~~~~~~~^~

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



More information about the Pkg-games-devel mailing list