zhangchu4355 2017-07-10 11:59 采纳率: 0%
浏览 4478

caffe make 出错 boost重装了也没有用 求高手!支付宝发红包

sun@sunwin:/RMPE$ cp Makefile.config.example Makefile.config
sun@sunwin:/RMPE$ sudo make all -j4
[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 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 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 caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = float]’:

src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer 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 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

急求高手解决 ! 解决了支付宝直接发红包!

  • 写回答

1条回答

  • fool-zz 2018-01-23 01:16
    关注

    可能你的Makefile文件需要改一下,我最近也出现过caffe中make出现boost相关的问题,然后我在Makefile文件中改了两处地方就解决了

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器