Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
/usr/local/include/boost/type_index/type_index_facade.hpp:191:25: note: ‘boost::typeindex::stl_type_index’ is not derived from ‘const std::pair<_T1, _T2> #5758
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zilesazoyi2 commentedJul 10, 2017
•
edited
thanks for you kindness! i reinstall the boost 1.58 and really need help !
Thanks for you attention if anybody can solve my problem ? # i can pay!!
Issue summary
sun@sunwin:
/RMPE$ cp Makefile.config.example Makefile.config/RMPE$ sudo make all -j4sun@sunwin:
[sudo] sun 的密码:
PROTOC src/caffe/proto/caffe.proto
CXX src/caffe/blob.cpp
CXX src/caffe/layer_factory.cpp
CXX src/caffe/syncedmem.cpp
CXX src/caffe/common.cpp
CXX src/caffe/solvers/nesterov_solver.cpp
In file included from /usr/local/include/boost/config.hpp:61:0,
from /usr/local/include/boost/thread/detail/platform.hpp:14,
from /usr/local/include/boost/thread/thread_only.hpp:12,
from /usr/local/include/boost/thread/thread.hpp:12,
from /usr/local/include/boost/thread.hpp:13,
from src/caffe/common.cpp:1:
/usr/local/include/boost/core/ignore_unused.hpp:17:19: error: ‘constexpr’ does not name a type
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused(Ts const& ...)
^
/usr/local/include/boost/core/ignore_unused.hpp:17:19: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/usr/local/include/boost/core/ignore_unused.hpp:21:19: error: ‘constexpr’ does not name a type
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused()
^
/usr/local/include/boost/core/ignore_unused.hpp:21:19: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from /usr/local/include/boost/thread/mutex.hpp:16:0,
from /usr/local/include/boost/thread/pthread/thread_data.hpp:13,
from /usr/local/include/boost/thread/thread_only.hpp:17,
from /usr/local/include/boost/thread/thread.hpp:12,
from /usr/local/include/boost/thread.hpp:13,
from src/caffe/common.cpp:1:
/usr/local/include/boost/thread/pthread/mutex.hpp: In destructor ‘boost::mutex::~mutex()’:
/usr/local/include/boost/thread/pthread/mutex.hpp:110:11: error: ‘ignore_unused’ is not a member of ‘boost’
boost::ignore_unused(res);
^
In file included from /usr/local/include/boost/container/allocator_traits.hpp:64:0,
from /usr/local/include/boost/container/scoped_allocator.hpp:27,
from /usr/local/include/boost/thread/csbl/memory/allocator_arg.hpp:16,
from /usr/local/include/boost/thread/detail/memory.hpp:18,
from /usr/local/include/boost/thread/detail/nullary_function.hpp:14,
from /usr/local/include/boost/thread/barrier.hpp:21,
from /usr/local/include/boost/thread.hpp:23,
from src/caffe/common.cpp:1:
/usr/local/include/boost/intrusive/detail/has_member_function_callable_with.hpp: At global scope:
/usr/local/include/boost/intrusive/detail/has_member_function_callable_with.hpp:173:14: error: redefinition of ‘struct boost::container::container_detail::FunWrapTmpl’
struct FunWrapTmpl : Fun
^
In file included from /usr/local/include/boost/container/allocator_traits.hpp:57:0,
from /usr/local/include/boost/container/scoped_allocator.hpp:27,
from /usr/local/include/boost/thread/csbl/memory/allocator_arg.hpp:16,
from /usr/local/include/boost/thread/detail/memory.hpp:18,
from /usr/local/include/boost/thread/detail/nullary_function.hpp:14,
from /usr/local/include/boost/thread/barrier.hpp:21,
from /usr/local/include/boost/thread.hpp:23,
from src/caffe/common.cpp:1:
/usr/local/include/boost/intrusive/detail/has_member_function_callable_with.hpp:173:14: error: previous definition of ‘struct boost::container::container_detail::FunWrapTmpl’
struct FunWrapTmpl : Fun
^
In file included from /usr/local/include/boost/container/allocator_traits.hpp:71:0,
from /usr/local/include/boost/container/scoped_allocator.hpp:27,
from /usr/local/include/boost/thread/csbl/memory/allocator_arg.hpp:16,
from /usr/local/include/boost/thread/detail/memory.hpp:18,
from /usr/local/include/boost/thread/detail/nullary_function.hpp:14,
from /usr/local/include/boost/thread/barrier.hpp:21,
from /usr/local/include/boost/thread.hpp:23,
from src/caffe/common.cpp:1:
/usr/local/include/boost/intrusive/detail/has_member_function_callable_with.hpp:173:14: error: redefinition of ‘struct boost::container::container_detail::FunWrapTmpl’
struct FunWrapTmpl : Fun
^
In file included from /usr/local/include/boost/container/allocator_traits.hpp:57:0,
from /usr/local/include/boost/container/scoped_allocator.hpp:27,
from /usr/local/include/boost/thread/csbl/memory/allocator_arg.hpp:16,
from /usr/local/include/boost/thread/detail/memory.hpp:18,
from /usr/local/include/boost/thread/detail/nullary_function.hpp:14,
from /usr/local/include/boost/thread/barrier.hpp:21,
from /usr/local/include/boost/thread.hpp:23,
from src/caffe/common.cpp:1:
/usr/local/include/boost/intrusive/detail/has_member_function_callable_with.hpp:173:14: error: previous definition of ‘struct boost::container::container_detail::FunWrapTmpl’
struct FunWrapTmpl : Fun
^
In file included from /usr/local/include/boost/container/detail/pair.hpp:32:0,
from /usr/local/include/boost/container/detail/dispatch_uses_allocator.hpp:26,
from /usr/local/include/boost/container/scoped_allocator.hpp:29,
from /usr/local/include/boost/thread/csbl/memory/allocator_arg.hpp:16,
from /usr/local/include/boost/thread/detail/memory.hpp:18,
from /usr/local/include/boost/thread/detail/nullary_function.hpp:14,
from /usr/local/include/boost/thread/barrier.hpp:21,
from /usr/local/include/boost/thread.hpp:23,
from src/caffe/common.cpp:1:
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:51:12: error: expected ‘,’ or ‘...’ before ‘&&’ token
tuple(U &&u, Args && ...args)
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp: In constructor ‘boost::container::container_detail::tuple<Head, Tail ...>::tuple(U)’:
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:52:42: error: ‘args’ was not declared in this scope
: inherited(::boost::forward(args)...), m_head(::boost::forward(u))
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:52:80: error: ‘u’ was not declared in this scope
: inherited(::boost::forward(args)...), m_head(::boost::forward(u))
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp: At global scope:
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:81:18: error: template argument 1 is invalid
tuple<Values&&...> forward_as_tuple(Values&&... values)
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:81:43: error: expected ‘,’ or ‘...’ before ‘&&’ token
tuple<Values&&...> forward_as_tuple(Values&&... values)
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:81:55: error: parameter packs not expanded with ‘...’:
tuple<Values&&...> forward_as_tuple(Values&&... values)
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:81:55: note: ‘Values’
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp: In function ‘int boost::container::container_detail::forward_as_tuple()’:
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:82:27: error: template argument 1 is invalid
{ return tuple<Values&&...>(::boost::forward(values)...); }
^
/usr/local/include/boost/container/detail/variadic_templates_tools.hpp:82:54: error: ‘values’ was not declared in this scope
{ return tuple<Values&&...>(::boost::forward(values)...); }
^
In file included from /usr/local/include/boost/container/detail/dispatch_uses_allocator.hpp:26:0,
from /usr/local/include/boost/container/scoped_allocator.hpp:29,
from /usr/local/include/boost/thread/csbl/memory/allocator_arg.hpp:16,
from /usr/local/include/boost/thread/detail/memory.hpp:18,
from /usr/local/include/boost/thread/detail/nullary_function.hpp:14,
from /usr/local/include/boost/thread/barrier.hpp:21,
from /usr/local/include/boost/thread.hpp:23,
from src/caffe/common.cpp:1:
/usr/include/c++/5/bits/stl_pair.h:214:5: note: template argument deduction/substitution failed:
In file included from /usr/local/include/boost/type_index/stl_type_index.hpp:22:0,
from /usr/local/include/boost/type_index.hpp:29,
from /usr/local/include/boost/function/function_base.hpp:21,
from /usr/local/include/boost/function/detail/prologue.hpp:17,
from /usr/local/include/boost/function/function_template.hpp:13,
from /usr/local/include/boost/function/detail/maybe_include.hpp:13,
from /usr/local/include/boost/function/function0.hpp:11,
from /usr/local/include/boost/python/errors.hpp:13,
from /usr/local/include/boost/python/handle.hpp:11,
from /usr/local/include/boost/python/args_fwd.hpp:10,
from /usr/local/include/boost/python/args.hpp:10,
from /usr/local/include/boost/python.hpp:11,
from src/caffe/layer_factory.cpp:4:
/usr/local/include/boost/type_index/type_index_facade.hpp:191:25: note: ‘boost::typeindex::stl_type_index’ is not derived from ‘const std::pair<_T1, _T2>’
return Derived(lhs) == rhs;
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:237:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:237:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetSoftmaxLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:214:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetSoftmaxLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:214:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetSigmoidLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:191:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetSigmoidLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:191:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetReLULayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:168:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetReLULayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:168:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetLRNLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:145:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetLRNLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:145:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetPoolingLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:108:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetPoolingLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:108:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer<Dtype > caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:575: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
Steps to reproduce
If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.
MY system configuration
Operating system: ubuntu16.04
CUDA version (if applicable):CUDA 8.0
CUDNN version (if applicable): CUDnn5.0
Python or MATLAB version (for pycaffe and matcaffe respectively):Python 2.7 MATLAB2014a
Thanks for you attention if anybody can solve my problem ? i can pay!!