apt 2.8.1 fails to compile with clang 18.0.1
I am trying to cross-compile apt 2.8.1 with clang 18.0.1 in Android
NDK r27. It fails to compile with some compiler error. The full
compiler error log has been attached as a text file. Could you provide
any hint to troubleshoot the issue?
Thank you.
FAILED: apt-pkg/CMakeFiles/apt-pkg.dir/depcache.cc.o
/home/builder/.termux-build/_cache/android-r27-api-24-v0/bin/clang++ --target=aarch64-none-linux-android --gcc-toolchain=/home/builder/.termux-build/_cache/android-r27-api-24-v0 --sysroot=/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot -D_WITH_GETLINE=1 -Dapt_pkg_EXPORTS -I/home/builder/.termux-build/apt/build/include -I/home/builder/.termux-build/apt/build/include/apt-pkg -fstack-protector-strong -Oz -Wno-c++11-narrowing --target=aarch64-linux-android24 -I/data/data/com.termux/files/usr/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fcolor-diagnostics -Wall -Wextra -Wcast-align -Wredundant-decls -Wmissing-declarations -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wsign-promo -Wundef -Wdouble-promotion -Wsuggest-override -Werror=suggest-override -Werror=return-type -MD -MT apt-pkg/CMakeFiles/apt-pkg.dir/depcache.cc.o -MF apt-pkg/CMakeFiles/apt-pkg.dir/depcache.cc.o.d -o apt-pkg/CMakeFiles/apt-pkg.dir/depcache.cc.o -c /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc
In file included from /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:12:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/algorithms.h:32:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/cachefilter.h:9:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:801:
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheiterators.h:394:54: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
394 | (Type == PrvVer?S->NextPkgProv:S->NextProvides); return *this;}
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheiterators.h:393:37: note: previous statement is here
393 | inline PrvIterator& operator ++() {if (S != Owner->ProvideP) S = Owner->ProvideP +
| ^
In file included from /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:12:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/algorithms.h:32:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/cachefilter.h:9:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:78:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/mmap.h:31:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:625:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string_view:936:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/algorithm:1847:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/nth_element.h:15:
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:317:52: error: invalid operands to binary expression ('const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' and 'difference_type' (aka 'long'))
317 | const _RandomAccessIterator __leftmost = __first - difference_type(1);
| ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:799:14: note: in instantiation of function template specialization 'std::__insertion_sort_unguarded<std::_ClassicAlgPolicy, CompareProviders &, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>>' requested here
799 | std::__insertion_sort_unguarded<_AlgPolicy, _Compare>(__first, __last, __comp);
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:926:8: note: in instantiation of function template specialization 'std::__introsort<std::_ClassicAlgPolicy, CompareProviders &, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, false>' requested here
926 | std::__introsort<_AlgPolicy,
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:993:10: note: in instantiation of function template specialization 'std::__sort_dispatch<std::_ClassicAlgPolicy, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, CompareProviders>' requested here
993 | std::__sort_dispatch<_AlgPolicy>(std::__unwrap_iter(__first), std::__unwrap_iter(__last), __comp);
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:1001:8: note: in instantiation of function template specialization 'std::__sort_impl<std::_ClassicAlgPolicy, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, CompareProviders>' requested here
1001 | std::__sort_impl<_ClassicAlgPolicy>(std::move(__first), std::move(__last), __comp);
| ^
/home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1343:12: note: in instantiation of function template specialization 'std::sort<APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, CompareProviders>' requested here
1343 | std::sort(verlist.begin(), verlist.end(), CompareProviders{Cache, Start});
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__ios/fpos.h:60:40: note: candidate template ignored: could not match 'fpos' against 'Container_iterator'
60 | inline _LIBCPP_HIDE_FROM_ABI streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/reverse_iterator.h:288:1: note: candidate template ignored: could not match 'reverse_iterator' against 'Container_iterator'
288 | operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/wrap_iter.h:182:5: note: candidate template ignored: could not match '__wrap_iter' against 'Container_iterator'
182 | operator-(const __wrap_iter<_Iter1>& __x,
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/move_iterator.h:304:1: note: candidate template ignored: could not match 'move_iterator' against 'Container_iterator'
304 | operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) -> decltype(__x.base() - __y.base()) {
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:113:38: note: candidate template ignored: could not match 'map_pointer' against 'Container_iterator'
113 | template<typename T> inline uint32_t operator -(map_pointer<T> u, map_pointer<T> m) { return uint32_t(u) - uint32_t(m); }
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheset.h:225:23: note: candidate function not viable: no known conversion from 'const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' to 'APT::Container_iterator_base<APT::VersionContainerInterface, APT::VersionContainer<std::vector<pkgCache::VerIterator>>, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, std::__wrap_iter<pkgCache::VerIterator *>, pkgCache::VerIterator>' for object argument
225 | inline iterator_type operator-(typename container_iterator::difference_type const &n) { return iterator_type(_iter - n); }
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheset.h:226:54: note: candidate function not viable: no known conversion from 'const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' to 'APT::Container_iterator_base<APT::VersionContainerInterface, APT::VersionContainer<std::vector<pkgCache::VerIterator>>, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, std::__wrap_iter<pkgCache::VerIterator *>, pkgCache::VerIterator>' for object argument
226 | inline typename container_iterator::difference_type operator-(iterator_type const &b) { return (_iter - b._iter); }
| ^
In file included from /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:12:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/algorithms.h:32:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/cachefilter.h:9:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:78:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/mmap.h:31:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:625:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string_view:936:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/algorithm:1847:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/nth_element.h:15:
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:319:44: error: invalid operands to binary expression ('const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' and 'difference_type' (aka 'long'))
319 | for (_RandomAccessIterator __i = __first + difference_type(1); __i != __last; ++__i) {
| ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/reverse_iterator.h:302:1: note: candidate template ignored: could not match 'reverse_iterator<_Iter>' against 'difference_type' (aka 'long')
302 | operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/wrap_iter.h:194:1: note: candidate template ignored: could not match '__wrap_iter<_Iter1>' against 'difference_type' (aka 'long')
194 | operator+(typename __wrap_iter<_Iter1>::difference_type __n, __wrap_iter<_Iter1> __x) _NOEXCEPT {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/move_iterator.h:328:1: note: candidate template ignored: could not match 'move_iterator<_Iter>' against 'difference_type' (aka 'long')
328 | operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3871:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3871 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3888:1: note: candidate template ignored: could not match 'const _CharT *' against 'APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>'
3888 | operator+(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3904:1: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Allocator>' against 'difference_type' (aka 'long')
3904 | operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3919:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3919 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3935:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3935 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3952:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3952 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3958:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3958 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3964:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3964 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3970:1: note: candidate template ignored: could not match 'const _CharT *' against 'APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>'
3970 | operator+(const _CharT* __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3976:1: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Allocator>' against 'difference_type' (aka 'long')
3976 | operator+(_CharT __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3983:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3983 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3989:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3989 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs) {
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:108:32: note: candidate template ignored: could not match 'T *' against 'APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>'
108 | template<typename T> inline T *operator +(T *p, map_pointer<T> m) { return p + uint32_t(m); }
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheset.h:221:23: note: candidate function not viable: no known conversion from 'const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' to 'APT::Container_iterator_base<APT::VersionContainerInterface, APT::VersionContainer<std::vector<pkgCache::VerIterator>>, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, std::__wrap_iter<pkgCache::VerIterator *>, pkgCache::VerIterator>' for object argument
221 | inline iterator_type operator+(typename container_iterator::difference_type const &n) { return iterator_type(_iter + n); }
| ^
In file included from /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:12:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/algorithms.h:32:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/cachefilter.h:9:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:78:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/mmap.h:31:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:625:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string_view:936:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/algorithm:1847:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/nth_element.h:15:
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:317:52: error: invalid operands to binary expression ('const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' and 'difference_type' (aka 'long'))
317 | const _RandomAccessIterator __leftmost = __first - difference_type(1);
| ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:799:14: note: in instantiation of function template specialization 'std::__insertion_sort_unguarded<std::_ClassicAlgPolicy, (lambda at /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1359:53) &, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>>' requested here
799 | std::__insertion_sort_unguarded<_AlgPolicy, _Compare>(__first, __last, __comp);
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:926:8: note: in instantiation of function template specialization 'std::__introsort<std::_ClassicAlgPolicy, (lambda at /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1359:53) &, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, false>' requested here
926 | std::__introsort<_AlgPolicy,
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:993:10: note: in instantiation of function template specialization 'std::__sort_dispatch<std::_ClassicAlgPolicy, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, (lambda at /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1359:53)>' requested here
993 | std::__sort_dispatch<_AlgPolicy>(std::__unwrap_iter(__first), std::__unwrap_iter(__last), __comp);
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:1001:8: note: in instantiation of function template specialization 'std::__sort_impl<std::_ClassicAlgPolicy, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, (lambda at /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1359:53)>' requested here
1001 | std::__sort_impl<_ClassicAlgPolicy>(std::move(__first), std::move(__last), __comp);
| ^
/home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1359:12: note: in instantiation of function template specialization 'std::sort<APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, (lambda at /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:1359:53)>' requested here
1359 | std::sort(toUpgrade.begin(), toUpgrade.end(), [](pkgCache::VerIterator const &A, pkgCache::VerIterator const &B) { return A->ID < B->ID; });
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__ios/fpos.h:60:40: note: candidate template ignored: could not match 'fpos' against 'Container_iterator'
60 | inline _LIBCPP_HIDE_FROM_ABI streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/reverse_iterator.h:288:1: note: candidate template ignored: could not match 'reverse_iterator' against 'Container_iterator'
288 | operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/wrap_iter.h:182:5: note: candidate template ignored: could not match '__wrap_iter' against 'Container_iterator'
182 | operator-(const __wrap_iter<_Iter1>& __x,
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/move_iterator.h:304:1: note: candidate template ignored: could not match 'move_iterator' against 'Container_iterator'
304 | operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) -> decltype(__x.base() - __y.base()) {
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:113:38: note: candidate template ignored: could not match 'map_pointer' against 'Container_iterator'
113 | template<typename T> inline uint32_t operator -(map_pointer<T> u, map_pointer<T> m) { return uint32_t(u) - uint32_t(m); }
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheset.h:225:23: note: candidate function not viable: no known conversion from 'const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' to 'APT::Container_iterator_base<APT::VersionContainerInterface, APT::VersionContainer<std::vector<pkgCache::VerIterator>>, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, std::__wrap_iter<pkgCache::VerIterator *>, pkgCache::VerIterator>' for object argument
225 | inline iterator_type operator-(typename container_iterator::difference_type const &n) { return iterator_type(_iter - n); }
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheset.h:226:54: note: candidate function not viable: no known conversion from 'const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' to 'APT::Container_iterator_base<APT::VersionContainerInterface, APT::VersionContainer<std::vector<pkgCache::VerIterator>>, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, std::__wrap_iter<pkgCache::VerIterator *>, pkgCache::VerIterator>' for object argument
226 | inline typename container_iterator::difference_type operator-(iterator_type const &b) { return (_iter - b._iter); }
| ^
In file included from /home/builder/.termux-build/apt/src/apt-pkg/depcache.cc:12:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/algorithms.h:32:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/cachefilter.h:9:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:78:
In file included from /home/builder/.termux-build/apt/build/include/apt-pkg/mmap.h:31:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:625:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string_view:936:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/algorithm:1847:
In file included from /home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/nth_element.h:15:
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__algorithm/sort.h:319:44: error: invalid operands to binary expression ('const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' and 'difference_type' (aka 'long'))
319 | for (_RandomAccessIterator __i = __first + difference_type(1); __i != __last; ++__i) {
| ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/reverse_iterator.h:302:1: note: candidate template ignored: could not match 'reverse_iterator<_Iter>' against 'difference_type' (aka 'long')
302 | operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/wrap_iter.h:194:1: note: candidate template ignored: could not match '__wrap_iter<_Iter1>' against 'difference_type' (aka 'long')
194 | operator+(typename __wrap_iter<_Iter1>::difference_type __n, __wrap_iter<_Iter1> __x) _NOEXCEPT {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/__iterator/move_iterator.h:328:1: note: candidate template ignored: could not match 'move_iterator<_Iter>' against 'difference_type' (aka 'long')
328 | operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3871:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3871 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3888:1: note: candidate template ignored: could not match 'const _CharT *' against 'APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>'
3888 | operator+(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3904:1: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Allocator>' against 'difference_type' (aka 'long')
3904 | operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3919:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3919 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3935:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3935 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3952:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3952 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3958:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3958 | operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3964:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3964 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3970:1: note: candidate template ignored: could not match 'const _CharT *' against 'APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>'
3970 | operator+(const _CharT* __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3976:1: note: candidate template ignored: could not match 'basic_string<_CharT, _Traits, _Allocator>' against 'difference_type' (aka 'long')
3976 | operator+(_CharT __lhs, basic_string<_CharT, _Traits, _Allocator>&& __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3983:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3983 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs) {
| ^
/home/builder/.termux-build/_cache/android-r27-api-24-v0/sysroot/usr/include/c++/v1/string:3989:1: note: candidate template ignored: could not match 'basic_string' against 'Container_iterator'
3989 | operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs) {
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/pkgcache.h:108:32: note: candidate template ignored: could not match 'T *' against 'APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>'
108 | template<typename T> inline T *operator +(T *p, map_pointer<T> m) { return p + uint32_t(m); }
| ^
/home/builder/.termux-build/apt/build/include/apt-pkg/cacheset.h:221:23: note: candidate function not viable: no known conversion from 'const APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>' to 'APT::Container_iterator_base<APT::VersionContainerInterface, APT::VersionContainer<std::vector<pkgCache::VerIterator>>, APT::Container_iterator<APT::VersionContainerInterface, std::vector<pkgCache::VerIterator>, APT::VersionContainer<std::vector<pkgCache::VerIterator>>>, std::__wrap_iter<pkgCache::VerIterator *>, pkgCache::VerIterator>' for object argument
221 | inline iterator_type operator+(typename container_iterator::difference_type const &n) { return iterator_type(_iter + n); }
| ^
1 warning and 4 errors generated.
Reply to: