Problems with gcc 4.8
thibautjombart opened this issue · 6 comments
thibautjombart commented
I am getting:
> install_github("mhinsch/rpathsonpaths")
Downloading GitHub repo mhinsch/rpathsonpaths@master
from URL https://api.github.com/repos/mhinsch/rpathsonpaths/zipball/master
Installing rpathsonpaths
'/usr/local/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL \
'/tmp/RtmpNwPGmK/devtools66205972f9a3/mhinsch-rpathsonpaths-3362f66' \
--library='/usr/local/lib/R/site-library' --install-tests
* installing *source* package ‘rpathsonpaths’ ...
** libs
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c dir_network.cc -o dir_network.o
In file included from dir_network.cc:7:0:
libpathsonpaths/sputil.h:13:34: fatal error: boost/lexical_cast.hpp: No such file or directory
#include <boost/lexical_cast.hpp>
^
compilation terminated.
make: *** [dir_network.o] Error 1
ERROR: compilation failed for package ‘rpathsonpaths’
* removing ‘/usr/local/lib/R/site-library/rpathsonpaths’
Installation failed: Command failed (1)
thibautjombart commented
OK so I installed boost and now get:
> install_github("mhinsch/rpathsonpaths")
Downloading GitHub repo mhinsch/rpathsonpaths@master
from URL https://api.github.com/repos/mhinsch/rpathsonpaths/zipball/master
Installing rpathsonpaths
'/usr/local/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL \
'/tmp/RtmpNwPGmK/devtools66207332342/mhinsch-rpathsonpaths-3362f66' \
--library='/usr/local/lib/R/site-library' --install-tests
* installing *source* package ‘rpathsonpaths’ ...
** libs
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c dir_network.cc -o dir_network.o
In file included from dir_network.cc:6:0:
libpathsonpaths/ibmmixed.h: In function ‘void annotate_frequencies_ibmm(NODE*, RNG&)’:
libpathsonpaths/ibmmixed.h:41:38: error: parameter declared ‘auto’
[](const double & v, const auto & l){return v + l->rate;});
^
libpathsonpaths/ibmmixed.h: In lambda function:
libpathsonpaths/ibmmixed.h:41:52: error: ‘l’ was not declared in this scope
[](const double & v, const auto & l){return v + l->rate;});
^
libpathsonpaths/ibmmixed.h: In function ‘void annotate_frequencies_ibmm(NODE*, RNG&)’:
libpathsonpaths/ibmmixed.h:171:11: error: parameter declared ‘auto’
[](auto s, const auto l){return s + l->rate_infd;});
^
libpathsonpaths/ibmmixed.h:171:25: error: parameter declared ‘auto’
[](auto s, const auto l){return s + l->rate_infd;});
^
libpathsonpaths/ibmmixed.h: In lambda function:
libpathsonpaths/ibmmixed.h:171:35: error: ‘s’ was not declared in this scope
[](auto s, const auto l){return s + l->rate_infd;});
^
libpathsonpaths/ibmmixed.h:171:39: error: ‘l’ was not declared in this scope
[](auto s, const auto l){return s + l->rate_infd;});
^
In file included from /usr/include/c++/4.8/numeric:62:0,
from libpathsonpaths/driftapprox.h:4,
from rpathsonpaths_types.h:6,
from dir_network.h:4,
from dir_network.cc:1:
/usr/include/c++/4.8/bits/stl_numeric.h: In instantiation of ‘_Tp std::accumulate(_InputIterator, _InputIterator, _Tp, _BinaryOperation) [with _InputIterator = __gnu_cxx::__normal_iterator<MyTranspLink<Graph<MyDriftNode, MyTranspLink> >**, std::vector<MyTranspLink<Graph<MyDriftNode, MyTranspLink> >*, std::allocator<MyTranspLink<Graph<MyDriftNode, MyTranspLink> >*> > >; _Tp = double; _BinaryOperation = annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]::__lambda0]’:
libpathsonpaths/ibmmixed.h:41:61: required from ‘void annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]’
libpathsonpaths/ibmmixed.h:185:38: required from ‘void annotate_frequencies_ibmm(const ITER&, const ITER&, BINOM_FUNC&) [with ITER = __gnu_cxx::__normal_iterator<MyDriftNode<Graph<MyDriftNode, MyTranspLink> >**, std::vector<MyDriftNode<Graph<MyDriftNode, MyTranspLink> >*, std::allocator<MyDriftNode<Graph<MyDriftNode, MyTranspLink> >*> > >; BINOM_FUNC = Rng]’
dir_network.cc:349:69: required from here
/usr/include/c++/4.8/bits/stl_numeric.h:154:39: error: no match for call to ‘(annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]::__lambda0) (double&, MyTranspLink<Graph<MyDriftNode, MyTranspLink> >*&)’
__init = __binary_op(__init, *__first);
^
In file included from dir_network.cc:6:0:
libpathsonpaths/ibmmixed.h:41:5: note: candidates are:
[](const double & v, const auto & l){return v + l->rate;});
^
In file included from /usr/include/c++/4.8/numeric:62:0,
from libpathsonpaths/driftapprox.h:4,
from rpathsonpaths_types.h:6,
from dir_network.h:4,
from dir_network.cc:1:
/usr/include/c++/4.8/bits/stl_numeric.h:154:39: note: void (*)(const double&) <conversion>
__init = __binary_op(__init, *__first);
^
/usr/include/c++/4.8/bits/stl_numeric.h:154:39: note: candidate expects 2 arguments, 3 provided
In file included from dir_network.cc:6:0:
libpathsonpaths/ibmmixed.h:41:39: note: annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]::__lambda0
[](const double & v, const auto & l){return v + l->rate;});
^
libpathsonpaths/ibmmixed.h:41:39: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/c++/4.8/numeric:62:0,
from libpathsonpaths/driftapprox.h:4,
from rpathsonpaths_types.h:6,
from dir_network.h:4,
from dir_network.cc:1:
/usr/include/c++/4.8/bits/stl_numeric.h: In instantiation of ‘_Tp std::accumulate(_InputIterator, _InputIterator, _Tp, _BinaryOperation) [with _InputIterator = __gnu_cxx::__normal_iterator<MyTranspLink<Graph<MyDriftNode, MyTranspLink> >**, std::vector<MyTranspLink<Graph<MyDriftNode, MyTranspLink> >*, std::allocator<MyTranspLink<Graph<MyDriftNode, MyTranspLink> >*> > >; _Tp = double; _BinaryOperation = annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]::__lambda1]’:
libpathsonpaths/ibmmixed.h:171:53: required from ‘void annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]’
libpathsonpaths/ibmmixed.h:185:38: required from ‘void annotate_frequencies_ibmm(const ITER&, const ITER&, BINOM_FUNC&) [with ITER = __gnu_cxx::__normal_iterator<MyDriftNode<Graph<MyDriftNode, MyTranspLink> >**, std::vector<MyDriftNode<Graph<MyDriftNode, MyTranspLink> >*, std::allocator<MyDriftNode<Graph<MyDriftNode, MyTranspLink> >*> > >; BINOM_FUNC = Rng]’
dir_network.cc:349:69: required from here
/usr/include/c++/4.8/bits/stl_numeric.h:154:39: error: no match for call to ‘(annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]::__lambda1) (double&, MyTranspLink<Graph<MyDriftNode, MyTranspLink> >*&)’
__init = __binary_op(__init, *__first);
^
In file included from dir_network.cc:6:0:
libpathsonpaths/ibmmixed.h:171:4: note: candidates are:
[](auto s, const auto l){return s + l->rate_infd;});
^
In file included from /usr/include/c++/4.8/numeric:62:0,
from libpathsonpaths/driftapprox.h:4,
from rpathsonpaths_types.h:6,
from dir_network.h:4,
from dir_network.cc:1:
/usr/include/c++/4.8/bits/stl_numeric.h:154:39: note: void (*)() <conversion>
__init = __binary_op(__init, *__first);
^
/usr/include/c++/4.8/bits/stl_numeric.h:154:39: note: candidate expects 1 argument, 3 provided
In file included from dir_network.cc:6:0:
libpathsonpaths/ibmmixed.h:171:26: note: annotate_frequencies_ibmm(NODE*, RNG&) [with NODE = MyDriftNode<Graph<MyDriftNode, MyTranspLink> >; RNG = Rng]::__lambda1
[](auto s, const auto l){return s + l->rate_infd;});
^
libpathsonpaths/ibmmixed.h:171:26: note: candidate expects 0 arguments, 2 provided
make: *** [dir_network.o] Error 1
ERROR: compilation failed for package ‘rpathsonpaths’
* removing ‘/usr/local/lib/R/site-library/rpathsonpaths’
Installation failed: Command failed (1)
>
mhinsch commented
Some C++14 crept in which doesn't work with older versions of gcc; should be fixed in 76ff332
thibautjombart commented
Thanks. I am now getting:
devtools::install_github("mhinsch/rpathsonpaths")
Downloading GitHub repo mhinsch/rpathsonpaths@master
from URL https://api.github.com/repos/mhinsch/rpathsonpaths/zipball/master
Installing rpathsonpaths
'/usr/local/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL \
'/tmp/RtmpAjpJCT/devtools1c4930e9ec23/mhinsch-rpathsonpaths-76ff332' \
--library='/usr/local/lib/R/site-library' --install-tests
* installing *source* package ‘rpathsonpaths’ ...
** libs
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c dir_network.cc -o dir_network.o
g++ -std=gnu++11 -I/usr/local/lib/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c rcpp_util.cc -o rcpp_util.o
In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
from /usr/include/c++/4.8/unordered_map:47,
from rcpp_util.h:5,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/hashtable_policy.h: In instantiation of ‘std::__detail::_Hash_node<_Value, true>::_Hash_node(_Args&& ...) [with _Args = {const Rcpp::internal::const_string_proxy<16>&, long unsigned int}; _Value = std::pair<const std::basic_string<char>, long unsigned int>]’:
/usr/include/c++/4.8/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::__detail::_Hash_node<std::pair<const std::basic_string<char>, long unsigned int>, true>; _Args = {const Rcpp::internal::const_string_proxy<16>&, long unsigned int}; _Tp = std::__detail::_Hash_node<std::pair<const std::basic_string<char>, long unsigned int>, true>]’
/usr/include/c++/4.8/bits/hashtable.h:727:6: required from ‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__node_type* std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_allocate_node(_Args&& ...) [with _Args = {const Rcpp::internal::const_string_proxy<16>&, long unsigned int}; _Key = std::basic_string<char>; _Value = std::pair<const std::basic_string<char>, long unsigned int>; _Alloc = std::allocator<std::pair<const std::basic_string<char>, long unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::basic_string<char> >; _H1 = std::hash<std::basic_string<char> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__node_type = std::__detail::_Hash_node<std::pair<const std::basic_string<char>, long unsigned int>, true>]’
/usr/include/c++/4.8/bits/hashtable.h:1260:71: required from ‘std::pair<typename std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::iterator, bool> std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_emplace(std::true_type, _Args&& ...) [with _Args = {const Rcpp::internal::const_string_proxy<16>&, long unsigned int}; _Key = std::basic_string<char>; _Value = std::pair<const std::basic_string<char>, long unsigned int>; _Alloc = std::allocator<std::pair<const std::basic_string<char>, long unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::basic_string<char> >; _H1 = std::hash<std::basic_string<char> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; typename std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::iterator = std::__detail::_Node_iterator<std::pair<const std::basic_string<char>, long unsigned int>, false, true>; std::true_type = std::integral_constant<bool, true>]’
/usr/include/c++/4.8/bits/hashtable.h:665:69: required from ‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::emplace(_Args&& ...) [with _Args = {const Rcpp::internal::const_string_proxy<16>&, long unsigned int}; _Key = std::basic_string<char>; _Value = std::pair<const std::basic_string<char>, long unsigned int>; _Alloc = std::allocator<std::pair<const std::basic_string<char>, long unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::basic_string<char> >; _H1 = std::hash<std::basic_string<char> >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::__ireturn_type = std::pair<std::__detail::_Node_iterator<std::pair<const std::basic_string<char>, long unsigned int>, false, true>, bool>]’
/usr/include/c++/4.8/bits/unordered_map.h:311:54: required from ‘std::pair<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::is_default_constructible<_Hash>, std::is_copy_assignable<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator, bool> std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::emplace(_Args&& ...) [with _Args = {const Rcpp::internal::const_string_proxy<16>&, long unsigned int}; _Key = std::basic_string<char>; _Tp = long unsigned int; _Hash = std::hash<std::basic_string<char> >; _Pred = std::equal_to<std::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::basic_string<char>, long unsigned int> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::is_default_constructible<_Hash>, std::is_copy_assignable<_Hash>, std::__detail::__is_noexcept_hash<_Key, _Hash> > >::value, false, true> >::iterator = std::__detail::_Node_iterator<std::pair<const std::basic_string<char>, long unsigned int>, false, true>]’
rcpp_util.cc:18:54: required from here
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: error: no matching function for call to ‘std::pair<const std::basic_string<char>, long unsigned int>::pair(const Rcpp::internal::const_string_proxy<16>&, long unsigned int)’
: _M_v(std::forward<_Args>(__args)...), _M_hash_code() { }
^
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from rcpp_util.h:4,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/stl_pair.h:206:9: note: template<class ... _Args1, long unsigned int ..._Indexes1, class ... _Args2, long unsigned int ..._Indexes2> std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>)
pair(tuple<_Args1...>&, tuple<_Args2...>&,
^
/usr/include/c++/4.8/bits/stl_pair.h:206:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
from /usr/include/c++/4.8/unordered_map:47,
from rcpp_util.h:5,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: note: types ‘std::tuple<_Elements ...>’ and ‘const Rcpp::internal::const_string_proxy<16>’ have incompatible cv-qualifiers
: _M_v(std::forward<_Args>(__args)...), _M_hash_code() { }
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from rcpp_util.h:4,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/stl_pair.h:155:9: note: template<class ... _Args1, class ... _Args2> std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1 ...>, std::tuple<_Args2 ...>)
pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>);
^
/usr/include/c++/4.8/bits/stl_pair.h:155:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
from /usr/include/c++/4.8/unordered_map:47,
from rcpp_util.h:5,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: note: cannot convert ‘std::forward<const Rcpp::internal::const_string_proxy<16>&>((* & __args#0))’ (type ‘const Rcpp::internal::const_string_proxy<16>’) to type ‘std::piecewise_construct_t’
: _M_v(std::forward<_Args>(__args)...), _M_hash_code() { }
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from rcpp_util.h:4,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/stl_pair.h:150:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(std::pair<_U1, _U2>&&)
constexpr pair(pair<_U1, _U2>&& __p)
^
/usr/include/c++/4.8/bits/stl_pair.h:150:12: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
from /usr/include/c++/4.8/unordered_map:47,
from rcpp_util.h:5,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: note: types ‘std::pair<_T1, _T2>’ and ‘const Rcpp::internal::const_string_proxy<16>’ have incompatible cv-qualifiers
: _M_v(std::forward<_Args>(__args)...), _M_hash_code() { }
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from rcpp_util.h:4,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/stl_pair.h:144:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&)
constexpr pair(_U1&& __x, _U2&& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:144:12: note: template argument deduction/substitution failed:
/usr/include/c++/4.8/bits/stl_pair.h:141:38: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
template<class _U1, class _U2, class = typename
^
/usr/include/c++/4.8/bits/stl_pair.h:138:12: note: template<class _U2, class> constexpr std::pair<_T1, _T2>::pair(const _T1&, _U2&&)
constexpr pair(const _T1& __x, _U2&& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:138:12: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
from /usr/include/c++/4.8/unordered_map:47,
from rcpp_util.h:5,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: note: cannot convert ‘std::forward<const Rcpp::internal::const_string_proxy<16>&>((* & __args#0))’ (type ‘const Rcpp::internal::const_string_proxy<16>’) to type ‘const std::basic_string<char>&’
: _M_v(std::forward<_Args>(__args)...), _M_hash_code() { }
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from rcpp_util.h:4,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/stl_pair.h:133:12: note: template<class _U1, class> constexpr std::pair<_T1, _T2>::pair(_U1&&, const _T2&)
constexpr pair(_U1&& __x, const _T2& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:133:12: note: template argument deduction/substitution failed:
/usr/include/c++/4.8/bits/stl_pair.h:131:27: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
template<class _U1, class = typename
^
/usr/include/c++/4.8/bits/stl_pair.h:128:17: note: constexpr std::pair<_T1, _T2>::pair(std::pair<_T1, _T2>&&) [with _T1 = const std::basic_string<char>; _T2 = long unsigned int]
constexpr pair(pair&&) = default;
^
/usr/include/c++/4.8/bits/stl_pair.h:128:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/4.8/bits/stl_pair.h:127:17: note: constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = const std::basic_string<char>; _T2 = long unsigned int]
constexpr pair(const pair&) = default;
^
/usr/include/c++/4.8/bits/stl_pair.h:127:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/4.8/bits/stl_pair.h:124:12: note: template<class _U1, class _U2, class> constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&)
constexpr pair(const pair<_U1, _U2>& __p)
^
/usr/include/c++/4.8/bits/stl_pair.h:124:12: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/bits/hashtable.h:35:0,
from /usr/include/c++/4.8/unordered_map:47,
from rcpp_util.h:5,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/hashtable_policy.h:177:55: note: ‘const Rcpp::internal::const_string_proxy<16>’ is not derived from ‘const std::pair<_T1, _T2>’
: _M_v(std::forward<_Args>(__args)...), _M_hash_code() { }
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/vector:60,
from rcpp_util.h:4,
from rcpp_util.cc:1:
/usr/include/c++/4.8/bits/stl_pair.h:112:26: note: constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = const std::basic_string<char>; _T2 = long unsigned int]
_GLIBCXX_CONSTEXPR pair(const _T1& __a, const _T2& __b)
^
/usr/include/c++/4.8/bits/stl_pair.h:112:26: note: no known conversion for argument 1 from ‘const Rcpp::internal::const_string_proxy<16>’ to ‘const std::basic_string<char>&’
/usr/include/c++/4.8/bits/stl_pair.h:108:26: note: constexpr std::pair<_T1, _T2>::pair() [with _T1 = const std::basic_string<char>; _T2 = long unsigned int]
_GLIBCXX_CONSTEXPR pair()
^
/usr/include/c++/4.8/bits/stl_pair.h:108:26: note: candidate expects 0 arguments, 2 provided
make: *** [rcpp_util.o] Error 1
ERROR: compilation failed for package ‘rpathsonpaths’
* removing ‘/usr/local/lib/R/site-library/rpathsonpaths’
Installation failed: Command failed (1)
>
mhinsch commented
As far as I can tell this is probably a problem with gcc 4.8's version of
the stl. I've pushed a potential fix, maybe give it a try.
…On 16 June 2017 at 11:56, Thibaut Jombart ***@***.***> wrote:
Reopened #35 <#35>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHXaoigxhrYiU932yk6kAXxOxMKJveFlks5sEl92gaJpZM4N6CkU>
.
mhinsch commented
I was wrong, it's a problem with gcc 4.8 refusing to do an automatic type
conversion that 6.2 does (*might* also be a problem with an older version
of Rcpp). But my fix should still fix it.
…On 16 June 2017 at 12:16, Martin Hinsch ***@***.***> wrote:
As far as I can tell this is probably a problem with gcc 4.8's version of
the stl. I've pushed a potential fix, maybe give it a try.
On 16 June 2017 at 11:56, Thibaut Jombart ***@***.***>
wrote:
> Reopened #35 <#35>.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#35 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHXaoigxhrYiU932yk6kAXxOxMKJveFlks5sEl92gaJpZM4N6CkU>
> .
>
thibautjombart commented
Yes fixed, perfect, thanks!