Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed for NetBSD #539

Open
leleliu008 opened this issue Dec 7, 2023 · 0 comments
Open

build failed for NetBSD #539

leleliu008 opened this issue Dec 7, 2023 · 0 comments
Labels

Comments

@leleliu008
Copy link

leleliu008 commented Dec 7, 2023

Describe the bug

build on netbsd-9.3-amd64, reported errors:

/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2208:28:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::renameDynamicSymbols(const std::unordered_map<std::basic_string_view<char>, std::__cxx11::basic_string<char> >&) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2442:9:   required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile<Elf32_Ehdr, Elf32_Phdr, Elf32_Shdr, unsigned int, unsigned int, Elf32_Dyn, Elf32_Sym, short unsigned int, Elf32_Verdef, Elf32_Verdaux, Elf32_Verneed, Elf32_Vernaux, Elf32_Rel, Elf32_Rela, 32>; FileContents = std::shared_ptr<std::vector<unsigned char> >; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2463:256:   required from here
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: class template argument deduction failed:
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: no matching function for call to 'vector(Elf32_Sym*, Elf32_Sym*)'
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template<class _Tp, class _Alloc, class _InputIterator, class> vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc>
  vector(_InputIterator __first, _InputIterator __last,
  ^~~~~~
/usr/include/g++/bits/stl_vector.h:411:2: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template<class _Tp, class _Alloc> vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(initializer_list<value_type> __l,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:383:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'Elf32_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __rv, const allocator_type& __m)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:358:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf32_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x, const allocator_type& __a)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:348:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf32_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __x) noexcept
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:344:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf32_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:326:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf32_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const value_type& __value,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:295:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   cannot convert 'dst.span<Elf32_Sym>::begin()' (type 'Elf32_Sym*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:283:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template<class _Tp, class _Alloc> vector(const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:270:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 1 argument, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template<class _Tp, class _Alloc> vector()-> std::vector<_Tp, _Alloc>
       vector()
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:259:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 0 arguments, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc: In instantiation of 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>)::<lambda(auto:5, auto:6&)> [with auto:5 = span<short unsigned int>; auto:6 = std::vector<unsigned int>; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]':
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2079:20:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2208:28:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::renameDynamicSymbols(const std::unordered_map<std::basic_string_view<char>, std::__cxx11::basic_string<char> >&) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2442:9:   required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile<Elf32_Ehdr, Elf32_Phdr, Elf32_Shdr, unsigned int, unsigned int, Elf32_Dyn, Elf32_Sym, short unsigned int, Elf32_Verdef, Elf32_Verdaux, Elf32_Verneed, Elf32_Vernaux, Elf32_Rel, Elf32_Rela, 32>; FileContents = std::shared_ptr<std::vector<unsigned char> >; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2463:256:   required from here
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: class template argument deduction failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: no matching function for call to 'vector(short unsigned int*, short unsigned int*)'
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template<class _Tp, class _Alloc, class _InputIterator, class> vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc>
  vector(_InputIterator __first, _InputIterator __last,
  ^~~~~~
/usr/include/g++/bits/stl_vector.h:411:2: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template<class _Tp, class _Alloc> vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(initializer_list<value_type> __l,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:383:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __rv, const allocator_type& __m)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:358:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x, const allocator_type& __a)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:348:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __x) noexcept
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:344:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:326:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const value_type& __value,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:295:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   cannot convert 'dst.span<short unsigned int>::begin()' (type 'short unsigned int*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:283:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template<class _Tp, class _Alloc> vector(const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:270:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 1 argument, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template<class _Tp, class _Alloc> vector()-> std::vector<_Tp, _Alloc>
       vector()
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:259:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 0 arguments, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc: In instantiation of 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>)::<lambda(auto:5, auto:6&)> [with auto:5 = span<Elf64_Sym>; auto:6 = std::vector<unsigned int>; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]':
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2077:16:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2208:28:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::renameDynamicSymbols(const std::unordered_map<std::basic_string_view<char>, std::__cxx11::basic_string<char> >&) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2442:9:   required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile<Elf64_Ehdr, Elf64_Phdr, Elf64_Shdr, long unsigned int, long unsigned int, Elf64_Dyn, Elf64_Sym, short unsigned int, Elf64_Verdef, Elf64_Verdaux, Elf64_Verneed, Elf64_Vernaux, Elf64_Rel, Elf64_Rela, 64>; FileContents = std::shared_ptr<std::vector<unsigned char> >; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2465:256:   required from here
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: class template argument deduction failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: no matching function for call to 'vector(Elf64_Sym*, Elf64_Sym*)'
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template<class _Tp, class _Alloc, class _InputIterator, class> vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc>
  vector(_InputIterator __first, _InputIterator __last,
  ^~~~~~
/usr/include/g++/bits/stl_vector.h:411:2: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template<class _Tp, class _Alloc> vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(initializer_list<value_type> __l,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:383:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'Elf64_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __rv, const allocator_type& __m)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:358:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf64_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x, const allocator_type& __a)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:348:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf64_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __x) noexcept
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:344:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'Elf64_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:326:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'Elf64_Sym*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const value_type& __value,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:295:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   cannot convert 'dst.span<Elf64_Sym>::begin()' (type 'Elf64_Sym*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:283:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template<class _Tp, class _Alloc> vector(const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:270:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 1 argument, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template<class _Tp, class _Alloc> vector()-> std::vector<_Tp, _Alloc>
       vector()
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:259:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 0 arguments, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc: In instantiation of 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>)::<lambda(auto:5, auto:6&)> [with auto:5 = span<short unsigned int>; auto:6 = std::vector<unsigned int>; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]':
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2079:20:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2208:28:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::renameDynamicSymbols(const std::unordered_map<std::basic_string_view<char>, std::__cxx11::basic_string<char> >&) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2442:9:   required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile<Elf64_Ehdr, Elf64_Phdr, Elf64_Shdr, long unsigned int, long unsigned int, Elf64_Dyn, Elf64_Sym, short unsigned int, Elf64_Verdef, Elf64_Verdaux, Elf64_Verneed, Elf64_Vernaux, Elf64_Rel, Elf64_Rela, 64>; FileContents = std::shared_ptr<std::vector<unsigned char> >; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2465:256:   required from here
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: class template argument deduction failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: error: no matching function for call to 'vector(short unsigned int*, short unsigned int*)'
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:411:2: note: candidate: template<class _Tp, class _Alloc, class _InputIterator, class> vector(_InputIterator, _InputIterator, const _Alloc&)-> std::vector<_Tp, _Alloc>
  vector(_InputIterator __first, _InputIterator __last,
  ^~~~~~
/usr/include/g++/bits/stl_vector.h:411:2: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:383:7: note: candidate: template<class _Tp, class _Alloc> vector(std::initializer_list<_Tp>, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(initializer_list<value_type> __l,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:383:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:358:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __rv, const allocator_type& __m)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:358:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:348:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x, const allocator_type& __a)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:348:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:344:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>&&)-> std::vector<_Tp, _Alloc>
       vector(vector&& __x) noexcept
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:344:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:326:7: note: candidate: template<class _Tp, class _Alloc> vector(const std::vector<_Tp, _Alloc>&)-> std::vector<_Tp, _Alloc>
       vector(const vector& __x)
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:326:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   mismatched types 'const std::vector<_Tp, _Alloc>' and 'short unsigned int*'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:295:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const value_type& __value,
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:295:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   cannot convert 'dst.span<short unsigned int>::begin()' (type 'short unsigned int*') to type 'std::vector<_Tp, _Alloc>::size_type {aka long unsigned int}'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:283:7: note: candidate: template<class _Tp, class _Alloc> vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(size_type __n, const allocator_type& __a = allocator_type())
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:283:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   couldn't deduce template parameter '_Tp'
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:270:7: note: candidate: template<class _Tp, class _Alloc> vector(const allocator_type&)-> std::vector<_Tp, _Alloc>
       vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:270:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 1 argument, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
In file included from /usr/include/g++/vector:64:0,
                 from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:32:
/usr/include/g++/bits/stl_vector.h:259:7: note: candidate: template<class _Tp, class _Alloc> vector()-> std::vector<_Tp, _Alloc>
       vector()
       ^~~~~~
/usr/include/g++/bits/stl_vector.h:259:7: note:   template argument deduction/substitution failed:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2072:21: note:   candidate expects 0 arguments, 2 provided
         std::vector tmp(dst.begin(), dst.end());
                     ^~~
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc: In instantiation of 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]':
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2208:28:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::renameDynamicSymbols(const std::unordered_map<std::basic_string_view<char>, std::__cxx11::basic_string<char> >&) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2442:9:   required from 'void patchElf2(ElfFile&&, const FileContents&, const string&) [with ElfFile = ElfFile<Elf64_Ehdr, Elf64_Phdr, Elf64_Shdr, long unsigned int, long unsigned int, Elf64_Dyn, Elf64_Sym, short unsigned int, Elf64_Verdef, Elf64_Verdaux, Elf64_Verneed, Elf64_Vernaux, Elf64_Rel, Elf64_Rela, 64>; FileContents = std::shared_ptr<std::vector<unsigned char> >; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2465:256:   required from here
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:2102:37: error: use of 'auto span<T>::size() const [with T = long unsigned int]' before deduction of 'auto'
         size_t idx = (h / ElfClass) % ght.m_bloomFilters.size();
In file included from /home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.cc:47:0:
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.h:226:10: error: 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf32_Rel; RemapFn = ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::<lambda(auto:7&)>&; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]', declared using local type 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::<lambda(auto:7&)>', is used but never defined [-fpermissive]
     void changeRelocTableSymIds(const Elf_Shdr& shdr, RemapFn&& old2newSymId)
          ^~~~~~~~~~~~~~~~~~~~~~
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.h:226:10: error: 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf32_Rela; RemapFn = ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::<lambda(auto:7&)>&; Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]', declared using local type 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf32_Verdef; Elf_Verdaux = Elf32_Verdaux; Elf_Verneed = Elf32_Verneed; Elf_Vernaux = Elf32_Vernaux; Elf_Rel = Elf32_Rel; Elf_Rela = Elf32_Rela; unsigned int ElfClass = 32]::<lambda(auto:7&)>', is used but never defined [-fpermissive]
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.h:226:10: error: 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf64_Rel; RemapFn = ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::<lambda(auto:7&)>&; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]', declared using local type 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::<lambda(auto:7&)>', is used but never defined [-fpermissive]
/home/vagrant/.ppkg/run/3635/patchelf/src/src/patchelf.h:226:10: error: 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::changeRelocTableSymIds(const Elf_Shdr&, RemapFn&&) [with ElfRelType = Elf64_Rela; RemapFn = ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::<lambda(auto:7&)>&; Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]', declared using local type 'ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::rebuildGnuHashTable(span<char>, span<Elf_Sym>) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64]::<lambda(auto:7&)>', is used but never defined [-fpermissive]
gmake[1]: *** [Makefile:377: patchelf.o] Error 1
gmake[1]: Leaving directory '/home/vagrant/.ppkg/run/3635/patchelf/src/_/src'
gmake: *** [Makefile:472: all-recursive] Error 1

Steps To Reproduce

curl -LO https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0.tar.bz2
tar vxf patchelf-0.18.0.tar.bz2
cd patchelf-0.18.0
./configure
make

Expected behavior

It could be successully built on NetBSD.

uname -a

NetBSD netbsd9.localdomain 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022  [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64

Note

patchelf-0.17.2 could be successully built on NetBSD.

@leleliu008 leleliu008 added the bug label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant