Closed skytguuu closed 3 years ago
The line of code referenced in your output has been changed in commit https://github.com/pezmaster31/bamtools/commit/01c5637e90a1dc4a70a137efcfc901333f204a42, which is more than 3.5 years ago. Why are you trying to compile a release from over 6 years ago? I'm closing this, reopen it once you can reproduce this issue on the latest release.
Hi,
I tried to install bamtools, however when I tried to make, it reported error as followed: ################### /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp: In member function ‘bool BamTools::ResolveTool::ReadNamesFileReader::Read(std::map<std::cxx11::basic_string, ReadGroupResolver>&)’:
/home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:413:74: error: no matching function for call to ‘make_pair<std::cxx11::string, bool>(gnu_cxx:: alloc_traits<std::allocator<std::cxx11::basic_string > >::value_type&, bool)’
resolver.ReadNames.insert( make_pair<string,bool>(fields[1], true) ) ;
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/string:40,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_tool.h:14,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.h:13,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:10:
/usr/include/c++/7/bits/stl_pair.h:524:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>:: type, typename std::decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& x, _T2&& y)
^ >::operator’ (type ‘gnu_cxx::__alloc_traits<std::allocator<std::cxx11::basic_string > >::value_type {aka std::cxx11::basic_string}’) to type ‘std::__cxx11::basic_string&&’
resolver.ReadNames.insert( make_pair<string,bool>(fields[1], true) ) ;
^
/home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp: In member function ‘bool BamTools::ResolveTool::StatsFileReader::ParseReadGroupLine(const string&, std::map<std:: cxx11::basic_string, ReadGroupResolver>&)’:
/home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:610:75: error: no matching function for call to ‘make_pair<std::cxx11::string, ReadGroupResolver>(const string&, ReadGroupResolver&)’
readGroups.insert( make_pair<string, ReadGroupResolver>(name, resolver) );
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/string:40,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_tool.h:14,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.h:13,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:10:
/usr/include/c++/7/bits/stl_pair.h:524:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::type, typename std::decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& x, _T2&& y)
^}’) to type ‘std::cxx11::basic_string&&’
readGroups.insert( make_pair<string, ReadGroupResolver>(name, resolver) );
^~~~
/home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp: In member function ‘bool BamTools::ResolveTool::ResolveToolPrivate::MakeStats()’:
/home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:1017:93: error: no matching function for call to ‘make_pair<std::cxx11::string, bool>(std::cxx11::string&, const bool&)’
else resolver.ReadNames.insert( make_pair<string, bool>(al.Name, isCurrentMateUnique) );
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/string:40,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_tool.h:14,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.h:13,
from /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:10:
/usr/include/c++/7/bits/stl_pair.h:524:5: note: candidate: template<class _T1, class _T2> constexpr std::pair<typename std:: decay_and_strip<_Tp>::type, typename std::decay_and_strip<_T2>::type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& y)
^}’) to type ‘std::__cxx11::basic_string&&’
else resolver.ReadNames.insert( make_pair<string, bool>(al.Name, isCurrentMateUnique) );
~~~~ /usr/include/c++/7/bits/stl_pair.h:524:5: note: template argument deduction/substitution failed: /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:413:74: note: cannot convert ‘fields.std::vector<std::cxx11::basic_string~~~~ /usr/include/c++/7/bits/stl_pair.h:524:5: note: template argument deduction/substitution failed: /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:610:61: note: cannot convert ‘name’ (type ‘const string {aka const std::cxx11::basic_string~~~~ /usr/include/c++/7/bits/stl_pair.h:524:5: note: template argument deduction/substitution failed: /home/dell/softwares/tools/Hi-C/bamtools-2.4.0/src/toolkit/bamtools_resolve.cpp:1017:68: note: cannot convert ‘al.BamTools::BamAlignment::Name’ (type std::cxx11::string {aka std::cxx11::basic_string