Bug#779802: vtk6: FTBFS: error: no matching function for call to 'min(unsigned int&, int&)'

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Wed Mar 4 21:57:03 UTC 2015


Source: vtk6
Version: 6.1.0+dfsg2-5
Tags: sid
Severity: serious
Justification: fails to build from source

Dear Maintainer,

vtk6 fails to build on sid/amd64, but it works on jessie/amd64 (hence the sid tag).

The errors are:

/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx: In member function 'bool vtkFreeTypeTools::CalculateBoundingBox(const T&, vtkFreeTypeTools::MetaData&)':
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: error: no matching function for call to 'min(unsigned int&, int&)'
                                    metaData.descent);
                                                    ^
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: note: candidates are:
In file included from /usr/include/c++/4.9/bits/char_traits.h:39:0,
                  from /usr/include/c++/4.9/ios:40,
                  from /usr/include/c++/4.9/ostream:38,
                  from /usr/include/c++/4.9/iostream:39,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkIOStream.h:33,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkSystemIncludes.h:36,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/debian/build/Common/Core/vtkAtomicInt.h:38,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObjectBase.h:44,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObject.h:42,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.h:27,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
      min(const _Tp& __a, const _Tp& __b)
      ^
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note:   template argument deduction/substitution failed:
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: note:   deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
                                    metaData.descent);
                                                    ^
In file included from /usr/include/c++/4.9/bits/char_traits.h:39:0,
                  from /usr/include/c++/4.9/ios:40,
                  from /usr/include/c++/4.9/ostream:38,
                  from /usr/include/c++/4.9/iostream:39,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkIOStream.h:33,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkSystemIncludes.h:36,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/debian/build/Common/Core/vtkAtomicInt.h:38,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObjectBase.h:44,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObject.h:42,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.h:27,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
      min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      ^
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note:   template argument deduction/substitution failed:
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: note:   deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
                                    metaData.descent);
                                                    ^
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx: In member function 'void vtkFreeTypeTools::GetLineMetrics(T, T, vtkFreeTypeTools::MetaData&, int&, int*)':
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1954:77: error: no matching function for call to 'max(int&, unsigned int&)'
        bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width);
                                                                              ^
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1954:77: note: candidates are:
In file included from /usr/include/c++/4.9/bits/char_traits.h:39:0,
                  from /usr/include/c++/4.9/ios:40,
                  from /usr/include/c++/4.9/ostream:38,
                  from /usr/include/c++/4.9/iostream:39,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkIOStream.h:33,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkSystemIncludes.h:36,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/debian/build/Common/Core/vtkAtomicInt.h:38,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObjectBase.h:44,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObject.h:42,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.h:27,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
      max(const _Tp& __a, const _Tp& __b)
      ^
/usr/include/c++/4.9/bits/stl_algobase.h:217:5: note:   template argument deduction/substitution failed:
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1954:77: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'unsigned int')
        bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width);
                                                                              ^
In file included from /usr/include/c++/4.9/bits/char_traits.h:39:0,
                  from /usr/include/c++/4.9/ios:40,
                  from /usr/include/c++/4.9/ostream:38,
                  from /usr/include/c++/4.9/iostream:39,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkIOStream.h:33,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkSystemIncludes.h:36,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/debian/build/Common/Core/vtkAtomicInt.h:38,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObjectBase.h:44,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObject.h:42,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.h:27,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
      max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      ^
/usr/include/c++/4.9/bits/stl_algobase.h:261:5: note:   template argument deduction/substitution failed:
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1954:77: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'unsigned int')
        bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width);
                                                                              ^
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1955:79: error: no matching function for call to 'min(int&, unsigned int&)'
        bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows);
                                                                                ^
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1955:79: note: candidates are:
In file included from /usr/include/c++/4.9/bits/char_traits.h:39:0,
                  from /usr/include/c++/4.9/ios:40,
                  from /usr/include/c++/4.9/ostream:38,
                  from /usr/include/c++/4.9/iostream:39,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkIOStream.h:33,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkSystemIncludes.h:36,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/debian/build/Common/Core/vtkAtomicInt.h:38,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObjectBase.h:44,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObject.h:42,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.h:27,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
      min(const _Tp& __a, const _Tp& __b)
      ^
/usr/include/c++/4.9/bits/stl_algobase.h:194:5: note:   template argument deduction/substitution failed:
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1955:79: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'unsigned int')
        bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows);
                                                                                ^
In file included from /usr/include/c++/4.9/bits/char_traits.h:39:0,
                  from /usr/include/c++/4.9/ios:40,
                  from /usr/include/c++/4.9/ostream:38,
                  from /usr/include/c++/4.9/iostream:39,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkIOStream.h:33,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkSystemIncludes.h:36,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/debian/build/Common/Core/vtkAtomicInt.h:38,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObjectBase.h:44,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Common/Core/vtkObject.h:42,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.h:27,
                  from /tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
      min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      ^
/usr/include/c++/4.9/bits/stl_algobase.h:240:5: note:   template argument deduction/substitution failed:
/tmp/buildd/vtk6-6.1.0+dfsg2/Rendering/FreeType/vtkFreeTypeTools.cxx:1955:79: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'unsigned int')
        bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows);
                                                                                ^
make[4]: *** [Rendering/FreeType/CMakeFiles/vtkRenderingFreeType.dir/vtkFreeTypeTools.cxx.o] Error 1
make[3]: *** [Rendering/FreeType/CMakeFiles/vtkRenderingFreeType.dir/all] Error 2

Best regards,
Andreas



More information about the debian-science-maintainers mailing list