Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0010131 [DCSS] Bug Report block always 2015-12-03 15:39 2015-12-03 16:10
Reporter heftig View Status public  
Assigned To neil
Priority normal Resolution done  
Status resolved   Product Branch 0.18 ancient branch
Summary 0010131: FTBFS in fontwrapper-ft.c
Description Started failing recently. Log:

    CXX fontwrapper-ft.o
fontwrapper-ft.cc: In member function 'void FTFontWrapper::load_glyph(unsigned int, ucs_t)':
fontwrapper-ft.cc:234:46: error: no matching function for call to 'min(unsigned int&, int&)'
         bmp->width = min(bmp->width, charsz.x);
                                              ^
In file included from /usr/include/c++/5.2.0/deque:60:0,
                 from externs.h:14,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
     min(const _Tp& __a, const _Tp& __b)
     ^
/usr/include/c++/5.2.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:234:46: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
         bmp->width = min(bmp->width, charsz.x);
                                              ^
In file included from /usr/include/c++/5.2.0/deque:60:0,
                 from externs.h:14,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algobase.h:243:5: note: candidate: 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++/5.2.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:234:46: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
         bmp->width = min(bmp->width, charsz.x);
                                              ^
In file included from /usr/include/c++/5.2.0/algorithm:62:0,
                 from fixedarray.h:9,
                 from externs.h:24,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algo.h:3445:5: note: candidate: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
     min(initializer_list<_Tp> __l)
     ^
/usr/include/c++/5.2.0/bits/stl_algo.h:3445:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:234:46: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
         bmp->width = min(bmp->width, charsz.x);
                                              ^
In file included from /usr/include/c++/5.2.0/algorithm:62:0,
                 from fixedarray.h:9,
                 from externs.h:24,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: candidate: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
/usr/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:234:46: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
         bmp->width = min(bmp->width, charsz.x);
                                              ^
fontwrapper-ft.cc:235:44: error: no matching function for call to 'min(unsigned int&, int&)'
         bmp->rows = min(bmp->rows, charsz.y);
                                            ^
In file included from /usr/include/c++/5.2.0/deque:60:0,
                 from externs.h:14,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
     min(const _Tp& __a, const _Tp& __b)
     ^
/usr/include/c++/5.2.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:235:44: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
         bmp->rows = min(bmp->rows, charsz.y);
                                            ^
In file included from /usr/include/c++/5.2.0/deque:60:0,
                 from externs.h:14,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algobase.h:243:5: note: candidate: 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++/5.2.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:235:44: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
         bmp->rows = min(bmp->rows, charsz.y);
                                            ^
In file included from /usr/include/c++/5.2.0/algorithm:62:0,
                 from fixedarray.h:9,
                 from externs.h:24,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algo.h:3445:5: note: candidate: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
     min(initializer_list<_Tp> __l)
     ^
/usr/include/c++/5.2.0/bits/stl_algo.h:3445:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:235:44: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
         bmp->rows = min(bmp->rows, charsz.y);
                                            ^
In file included from /usr/include/c++/5.2.0/algorithm:62:0,
                 from fixedarray.h:9,
                 from externs.h:24,
                 from AppHdr.h:464,
                 from fontwrapper-ft.cc:1:
/usr/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: candidate: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
/usr/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: template argument deduction/substitution failed:
fontwrapper-ft.cc:235:44: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
         bmp->rows = min(bmp->rows, charsz.y);
                                            ^
Makefile:1579: recipe for target 'fontwrapper-ft.o' failed
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0029907)
darksab0r (reporter)
2015-12-03 15:45
edited on: 2015-12-03 15:49

Same problem here on Arch linux with gcc 5.2.0. It started failing after this commit: https://github.com/crawl/crawl/commit/97aafa44166f0e0afc46a0a83ec870ff0a4f9fd0 [^]

(0029909)
neil (administrator)
2015-12-03 15:56

Should be fixed now (0.18-a0-598-g72e1e21), though I don't have a new enough freetype handy to test that with.

- Issue History
Date Modified Username Field Change
2015-12-03 15:39 heftig New Issue
2015-12-03 15:45 darksab0r Note Added: 0029907
2015-12-03 15:45 darksab0r Note Added: 0029908
2015-12-03 15:49 darksab0r Note Edited: 0029907
2015-12-03 15:49 darksab0r Note Deleted: 0029908
2015-12-03 15:56 neil Note Added: 0029909
2015-12-03 16:10 neil Status new => resolved
2015-12-03 16:10 neil Fixed in Branch => 0.18 development branch
2015-12-03 16:10 neil Resolution open => done
2015-12-03 16:10 neil Assigned To => neil


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker