Package: yamcha
Version: 0.33-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

yamcha cannot be built any longer in experimental:

In file included from param.cpp:32:0:
param.cpp: In member function 'bool YamCha::Param::open(const char*, const 
YamCha::Option*)':
../config.h:76:17: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
 #define PACKAGE "yamcha"
                 ^
param.cpp:186:14: note: in expansion of macro 'PACKAGE'
     ptr[0] = PACKAGE;
              ^~~~~~~
feature_index.cpp: In member function 'bool 
YamCha::FeatureIndex::setFeature(const string&, int)':
feature_index.cpp:150:62: error: no matching function for call to 
'make_pair<int, int>(const int&, const int&)'
    feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
                                                              ^
In file included from /usr/include/c++/7/utility:70:0,
                 from /usr/include/c++/7/tuple:38,
                 from /usr/include/c++/7/functional:54,
                 from feature_index.cpp:23:
/usr/include/c++/7/bits/stl_pair.h:519: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++/7/bits/stl_pair.h:519:5: note:   template argument 
deduction/substitution failed:
feature_index.cpp:150:51: note:   cannot convert 
'rit.std::_Rb_tree_const_iterator<int>::operator*()' (type 'const int') to type 
'int&&'
    feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
                                                   ^~~~
feature_index.cpp:154:66: error: no matching function for call to 
'make_pair<int, int>(const int&, const int&)'
    bow_feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
                                                                  ^
In file included from /usr/include/c++/7/utility:70:0,
                 from /usr/include/c++/7/tuple:38,
                 from /usr/include/c++/7/functional:54,
                 from feature_index.cpp:23:
/usr/include/c++/7/bits/stl_pair.h:519: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&&)
...


Andreas

Attachment: yamcha_0.33-1.log.gz
Description: application/gzip

Reply via email to