-
Notifications
You must be signed in to change notification settings - Fork 104
error when build thpp,wuwuwu,I‘m so sad! #44
Description
[ 10%] Building CXX object CMakeFiles/thpp.dir/Storage.cpp.o
In file included from /tmp/fblualib-build.uR4GKO/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:13:0,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/../thpp/Storage.h:22,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/Storage.cpp:11:
/usr/local/include/folly/io/Cursor.h: In member function ‘size_t folly::io::detail::CursorBase<Derived, BufType>::cloneAtMost(std::unique_ptrfolly::IOBuf&, size_t)’:
/usr/local/include/folly/io/Cursor.h:443:13: error: ‘make_unique’ is not a member of ‘std’
buf = std::make_uniquefolly::IOBuf();
^
/usr/local/include/folly/io/Cursor.h:443:13: note: suggested alternative:
In file included from /usr/local/include/thrift/lib/cpp/Thrift.h:23:0,
from /usr/local/include/thrift/lib/cpp2/Thrift.h:20,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:9,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/../thpp/Storage.h:22,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/Storage.cpp:11:
/usr/local/include/folly/Memory.h:63:1: note: ‘folly::make_unique’
make_unique(Args&&...) = delete;
^
In file included from /tmp/fblualib-build.uR4GKO/thpp/thpp/build/thpp/if/gen-cpp2/Tensor_types.h:13:0,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/../thpp/Storage.h:22,
from /tmp/fblualib-build.uR4GKO/thpp/thpp/Storage.cpp:11:
/usr/local/include/folly/io/Cursor.h:443:42: error: expected primary-expression before ‘>’ token
buf = std::make_uniquefolly::IOBuf();
^
/usr/local/include/folly/io/Cursor.h:443:44: error: expected primary-expression before ‘)’ token
buf = std::make_uniquefolly::IOBuf();
^
CMakeFiles/thpp.dir/build.make:84: recipe for target 'CMakeFiles/thpp.dir/Storage.cpp.o' failed
make[2]: *** [CMakeFiles/thpp.dir/Storage.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2