You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
Hi everyone,
I'm trying to install RevBayes on ubuntu 16.04. When compilation arrives to 99% I get this issue.
[ 99%] Building CXX object revlanguage/CMakeFiles/rb-parser.dir/home/lichen/revbayes/src/revlanguage/workspace/RbRegister_Dist.cpp.o
In file included from /usr/include/c++/5/vector:64:0,
from /home/lichen/revbayes/src/revlanguage/workspace/RbRegister_Dist.cpp:27:
/usr/include/c++/5/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type) [with _Integer = int; _Tp = RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData; _Alloc = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData>]’:
/usr/include/c++/5/bits/stl_vector.h:413:26: required from ‘std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = int; _Tp = RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData; _Alloc = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData>]’
/home/lichen/revbayes/projects/cmake/build/../../../src/revlanguage/distributions/Dist_WeightedSample.h:87:99: required from ‘RevBayesCore::WeightedSampleDistribution RevLanguage::Dist_WeightedSample::createDistribution() const [with valType = RevLanguage::AbstractHomologousDiscreteCharacterData; typename valType::valueType = RevBayesCore::AbstractHomologousDiscreteCharacterData]’
/home/lichen/revbayes/src/revlanguage/workspace/RbRegister_Dist.cpp:553:1: required from here
/usr/include/c++/5/bits/stl_vector.h:1252:22: error: invalid conversion from ‘int’ to ‘std::vector<RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData, std::allocator<RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData> >::value_type {aka RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData}’ [-fpermissive]
_M_fill_initialize(static_cast<size_type>(__n), __value);
^
/usr/include/c++/5/bits/stl_vector.h:1298:7: note: initializing argument 2 of ‘void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData; _Alloc = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = RevBayesCore::TypedDistributionRevBayesCore::AbstractHomologousDiscreteCharacterData]’
_M_fill_initialize(size_type __n, const value_type& __value)
^
/usr/include/c++/5/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type) [with _Integer = int; _Tp = RevBayesCore::TypedDistributionRevBayesCore::Tree; _Alloc = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::Tree>]’:
/usr/include/c++/5/bits/stl_vector.h:413:26: required from ‘std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = int; _Tp = RevBayesCore::TypedDistributionRevBayesCore::Tree; _Alloc = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::Tree>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::Tree>]’
/home/lichen/revbayes/projects/cmake/build/../../../src/revlanguage/distributions/Dist_WeightedSample.h:87:99: required from ‘RevBayesCore::WeightedSampleDistribution RevLanguage::Dist_WeightedSample::createDistribution() const [with valType = RevLanguage::TimeTree; typename valType::valueType = RevBayesCore::Tree]’
/home/lichen/revbayes/src/revlanguage/workspace/RbRegister_Dist.cpp:553:1: required from here
/usr/include/c++/5/bits/stl_vector.h:1252:22: error: invalid conversion from ‘int’ to ‘std::vector<RevBayesCore::TypedDistributionRevBayesCore::Tree, std::allocator<RevBayesCore::TypedDistributionRevBayesCore::Tree> >::value_type {aka RevBayesCore::TypedDistributionRevBayesCore::Tree}’ [-fpermissive]
_M_fill_initialize(static_cast<size_type>(__n), __value);
^
/usr/include/c++/5/bits/stl_vector.h:1298:7: note: initializing argument 2 of ‘void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = RevBayesCore::TypedDistributionRevBayesCore::Tree; _Alloc = std::allocator<RevBayesCore::TypedDistributionRevBayesCore::Tree>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = RevBayesCore::TypedDistributionRevBayesCore::Tree]’
_M_fill_initialize(size_type __n, const value_type& __value)
^
[ 99%] Building CXX object revlanguage/CMakeFiles/rb-parser.dir/home/lichen/revbayes/src/revlanguage/workspace/Signals.cpp.o
[ 99%] Building CXX object revlanguage/CMakeFiles/rb-parser.dir/home/lichen/revbayes/src/revlanguage/workspace/MethodTable.cpp.o
revlanguage/CMakeFiles/rb-parser.dir/build.make:13358: fallo en las instrucciones para el objetivo 'revlanguage/CMakeFiles/rb-parser.dir/home/lichen/revbayes/src/revlanguage/workspace/RbRegister_Dist.cpp.o'
make[2]: *** [revlanguage/CMakeFiles/rb-parser.dir/home/lichen/revbayes/src/revlanguage/workspace/RbRegister_Dist.cpp.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
CMakeFiles/Makefile2:234: fallo en las instrucciones para el objetivo 'revlanguage/CMakeFiles/rb-parser.dir/all'
make[1]: *** [revlanguage/CMakeFiles/rb-parser.dir/all] Error 2
Makefile:83: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
¿could anyone help to resolve it?
Thanks in advance.
D.
The text was updated successfully, but these errors were encountered: