源码编译出错
Created by: jsl9208
使用源码编译时报错
内核版本:Linux version 4.4.0-96-generic 错误信息:
home/newbie/work/paddle/paddle/framework/op_desc.cc: In function ‘paddle::framework::InferShapeFuncMap& paddle::framework::InferShapeFuncs()’:
00:58:07.819 /home/newbie/work/paddle/paddle/framework/op_desc.cc:212:74: error: converting to ‘const std::unordered_map<std::basic_string<char>, boost::variant<boost::blank, int, float, std::basic_string<char>, std::vector<int>, std::vector<float>, std::vector<std::basic_string<char> >, bool, std::vector<bool>, paddle::framework::BlockDesc*> >’ from initializer list would use explicit constructor ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Key = std::basic_string<char>; _Tp = boost::variant<boost::blank, int, float, std::basic_string<char>, std::vector<int>, std::vector<float>, std::vector<std::basic_string<char> >, bool, std::vector<bool>, paddle::framework::BlockDesc*>; _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>, boost::variant<boost::blank, int, float, std::basic_string<char>, std::vector<int>, std::vector<float>, std::vector<std::basic_string<char> >, bool, std::vector<bool>, paddle::framework::BlockDesc*> > >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hasher = std::hash<std::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::basic_string<char> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::pair<const std::basic_string<char>, boost::variant<boost::blank, int, float, std::basic_string<char>, std::vector<int>, std::vector<float>, std::vector<std::basic_string<char> >, bool, std::vector<bool>, paddle::framework::BlockDesc*> > >]’
static_cast<OperatorWithKernel *>(info.Creator()("", {}, {}, {}));
^
paddle/framework/CMakeFiles/proto_desc.dir/build.make:86: recipe for target 'paddle/framework/CMakeFiles/proto_desc.dir/op_desc.cc.o' failed
make[2]: *** [paddle/framework/CMakeFiles/proto_desc.dir/op_desc.cc.o] Error 1
CMakeFiles/Makefile2:7799: recipe for target 'paddle/framework/CMakeFiles/proto_desc.dir/all' failed
make[1]: *** [paddle/framework/CMakeFiles/proto_desc.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c cd paddle && mkdir build && cd build && cmake .. && make -j `nproc` && make install' returned a non-zero code: 2