gvne / spleeterpp

A C++ Inference library for the Spleeter project
MIT License
162 stars 33 forks source link

cmake --build . :error #37

Open KangChou opened 2 years ago

KangChou commented 2 years ago

[ 19%] Built target rtff [ 21%] Building CXX object src/spleeter_common/CMakeFiles/spleeter_common.dir/registry.cc.o [ 23%] Building CXX object src/spleeter_common/CMakeFiles/spleeter_common.dir/tf_handle.cc.o [ 25%] Building CXX object src/spleeter_common/CMakeFiles/spleeter_common.dir/spleeter_common.cc.o In file included from /usr/include/c++/5/bits/hashtable.h:35:0, from /usr/include/c++/5/unordered_set:47, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:6, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> >’: /usr/include/c++/5/type_traits:137:12: required from ‘struct std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > >’ /usr/include/c++/5/type_traits:148:38: required from ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ /usr/include/c++/5/bits/unordered_set.h:95:63: required from ‘class std::unordered_set<spleeter::SeparationType>’ /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to ‘(const std::hash<spleeter::SeparationType>) (const spleeter::SeparationType&)’ noexcept(declval<const _Hash&>()(declval<const _Key&>()))> ^ In file included from /usr/include/c++/5/bits/move.h:57:0, from /usr/include/c++/5/bits/stl_pair.h:59, from /usr/include/c++/5/bits/stl_algobase.h:64, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/string:40, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/type_traits: In instantiation of ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’: /usr/include/c++/5/bits/unordered_set.h:95:63: required from ‘class std::unordered_set<spleeter::SeparationType>’ /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/type_traits:148:38: error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > >’ : public integral_constant<bool, !_Pp::value> ^ In file included from /usr/include/c++/5/unordered_set:48:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:6, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/unordered_set.h: In instantiation of ‘class std::unordered_set<spleeter::SeparationType>’: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/bits/unordered_set.h:95:63: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; ^ /usr/include/c++/5/bits/unordered_set.h:102:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::key_type key_type; ^ /usr/include/c++/5/bits/unordered_set.h:103:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::value_type value_type; ^ /usr/include/c++/5/bits/unordered_set.h:104:43: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::hasher hasher; ^ /usr/include/c++/5/bits/unordered_set.h:105:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::key_equal key_equal; ^ /usr/include/c++/5/bits/unordered_set.h:106:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::allocator_type allocator_type; ^ /usr/include/c++/5/bits/unordered_set.h:111:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::pointer pointer; ^ /usr/include/c++/5/bits/unordered_set.h:112:50: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::const_pointer const_pointer; ^ /usr/include/c++/5/bits/unordered_set.h:113:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::reference reference; ^ /usr/include/c++/5/bits/unordered_set.h:114:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::const_reference const_reference; ^ /usr/include/c++/5/bits/unordered_set.h:115:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::iterator iterator; ^ /usr/include/c++/5/bits/unordered_set.h:116:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::const_iterator const_iterator; ^ /usr/include/c++/5/bits/unordered_set.h:117:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::local_iterator local_iterator; ^ /usr/include/c++/5/bits/unordered_set.h:118:57: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::const_local_iterator const_local_iterator; ^ /usr/include/c++/5/bits/unordered_set.h:119:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::size_type size_type; ^ /usr/include/c++/5/bits/unordered_set.h:120:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ typedef typename _Hashtable::difference_type difference_type; ^ /usr/include/c++/5/bits/unordered_set.h:274:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ operator=(initializer_list<value_type> __l) ^ /usr/include/c++/5/bits/unordered_set.h:368:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ emplace(_Args&&... __args) ^ /usr/include/c++/5/bits/unordered_set.h:412:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ insert(const value_type& __x) ^ /usr/include/c++/5/bits/unordered_set.h:416:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ insert(value_type&& __x) ^ /usr/include/c++/5/bits/unordered_set.h:471:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ insert(initializer_list<value_type> __l) ^ /usr/include/c++/5/bits/unordered_set.h:616:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ equal_range(const key_type& __x) ^ /usr/include/c++/5/bits/unordered_set.h:620:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<spleeter::SeparationType> >, std::__detail::__is_noexcept_hash<spleeter::SeparationType, std::hash<spleeter::SeparationType> > > >’ equal_range(const key_type& __x) const ^ /data/spleeterpp/src/spleeter_common/spleeter_common.cc: In function ‘void spleeter::Initialize(const string&, const std::unordered_set<spleeter::SeparationType>&, std::error_code&)’: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: error: no matching function for call to ‘begin(const std::unordered_set<spleeter::SeparationType>&)’ for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:105:37: note: candidate: template<class _Tp> const _Tp* std::begin(const std::valarray<_Tp>&) template<typename _Tp> const _Tp* begin(const valarray<_Tp>&); ^ /usr/include/c++/5/bits/range_access.h:105:37: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: ‘const std::unordered_set<spleeter::SeparationType>’ is not derived from ‘const std::valarray<_Tp>’ for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:104:31: note: candidate: template<class _Tp> _Tp* std::begin(std::valarray<_Tp>&) template<typename _Tp> _Tp* begin(valarray<_Tp>&); ^ /usr/include/c++/5/bits/range_access.h:104:31: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: types ‘std::valarray<_Tp>’ and ‘const std::unordered_set<spleeter::SeparationType>’ have incompatible cv-qualifiers for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:87:5: note: candidate: template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm]) begin(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/5/bits/range_access.h:87:5: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: mismatched types ‘_Tp [_Nm]’ and ‘const std::unordered_set<spleeter::SeparationType>’ for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:58:5: note: candidate: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) begin(const _Container& __cont) -> decltype(__cont.begin()) ^ /usr/include/c++/5/bits/range_access.h:58:5: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) [with _Container = std::unordered_set<spleeter::SeparationType>]’: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/bits/range_access.h:58:5: error: ‘const class std::unordered_set<spleeter::SeparationType>’ has no member named ‘begin’ /usr/include/c++/5/bits/range_access.h:48:5: note: candidate: template<class _Container> decltype (__cont.begin()) std::begin(_Container&) begin(_Container& __cont) -> decltype(__cont.begin()) ^ /usr/include/c++/5/bits/range_access.h:48:5: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.begin()) std::begin(_Container&) [with _Container = const std::unordered_set<spleeter::SeparationType>]’: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/bits/range_access.h:48:5: error: ‘const class std::unordered_set<spleeter::SeparationType>’ has no member named ‘begin’ In file included from /usr/include/c++/5/bits/range_access.h:36:0, from /usr/include/c++/5/string:51, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/initializer_list:89:5: note: candidate: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>) begin(initializer_list<_Tp> __ils) noexcept ^ /usr/include/c++/5/initializer_list:89:5: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: ‘std::unordered_set<spleeter::SeparationType>’ is not derived from ‘std::initializer_list<_Tp>’ for (auto separation_type : separation_types) { ^ /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: error: no matching function for call to ‘end(const std::unordered_set<spleeter::SeparationType>&)’ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:107:37: note: candidate: template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&) template<typename _Tp> const _Tp* end(const valarray<_Tp>&); ^ /usr/include/c++/5/bits/range_access.h:107:37: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: ‘const std::unordered_set<spleeter::SeparationType>’ is not derived from ‘const std::valarray<_Tp>’ for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:106:31: note: candidate: template<class _Tp> _Tp* std::end(std::valarray<_Tp>&) template<typename _Tp> _Tp* end(valarray<_Tp>&); ^ /usr/include/c++/5/bits/range_access.h:106:31: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: types ‘std::valarray<_Tp>’ and ‘const std::unordered_set<spleeter::SeparationType>’ have incompatible cv-qualifiers for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:97:5: note: candidate: template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/5/bits/range_access.h:97:5: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: mismatched types ‘_Tp [_Nm]’ and ‘const std::unordered_set<spleeter::SeparationType>’ for (auto separation_type : separation_types) { ^ In file included from /usr/include/c++/5/string:51:0, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/bits/range_access.h:78:5: note: candidate: template<class _Container> decltype (__cont.end()) std::end(const _Container&) end(const _Container& __cont) -> decltype(__cont.end()) ^ /usr/include/c++/5/bits/range_access.h:78:5: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(const _Container&) [with _Container = std::unordered_set<spleeter::SeparationType>]’: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/bits/range_access.h:78:5: error: ‘const class std::unordered_set<spleeter::SeparationType>’ has no member named ‘end’ /usr/include/c++/5/bits/range_access.h:68:5: note: candidate: template<class _Container> decltype (__cont.end()) std::end(_Container&) end(_Container& __cont) -> decltype(__cont.end()) ^ /usr/include/c++/5/bits/range_access.h:68:5: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(_Container&) [with _Container = const std::unordered_set<spleeter::SeparationType>]’: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: required from here /usr/include/c++/5/bits/range_access.h:68:5: error: ‘const class std::unordered_set<spleeter::SeparationType>’ has no member named ‘end’ In file included from /usr/include/c++/5/bits/range_access.h:36:0, from /usr/include/c++/5/string:51, from /data/spleeterpp/src/spleeter_common/spleeter_common.h:4, from /data/spleeterpp/src/spleeter_common/spleeter_common.cc:1: /usr/include/c++/5/initializer_list:99:5: note: candidate: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> __ils) noexcept ^ /usr/include/c++/5/initializer_list:99:5: note: template argument deduction/substitution failed: /data/spleeterpp/src/spleeter_common/spleeter_common.cc:51:31: note: ‘std::unordered_set<spleeter::SeparationType>’ is not derived from ‘std::initializer_list<_Tp>’ for (auto separation_type : separation_types) { ^ src/spleeter_common/CMakeFiles/spleeter_common.dir/build.make:103: recipe for target 'src/spleeter_common/CMakeFiles/spleeter_common.dir/spleeter_common.cc.o' failed make[2]: *** [src/spleeter_common/CMakeFiles/spleeter_common.dir/spleeter_common.cc.o] Error 1 CMakeFiles/Makefile2:439: recipe for target 'src/spleeter_common/CMakeFiles/spleeter_common.dir/all' failed make[1]: *** [src/spleeter_common/CMakeFiles/spleeter_common.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2