Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

error when build thpp,wuwuwu,I‘m so sad! #44

@zoe218

Description

@zoe218

[ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions