facebook / openr

Distributed platform for building autonomic network functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compile error on ubuntu 14.04

danzoo opened this issue · comments

Please use this template for reporting suspected bugs or requests for help.

Issue Description

./../folly/FBVector.h:1463:49: error: parameter packs not expanded with '...':
M_construct(start, std::forward(args)...);
^
./../folly/FBVector.h:1463:49: note: 'args'
In file included from ./../folly/compression/Utils.h:21:0,
from compression/Compression.cpp:56:
./../folly/io/Cursor.h: In member function 'size_t folly::io::detail::CursorBase<Derived, BufType>::cloneAtMost(std::unique_ptrfolly::IOBuf&, size_t)':
./../folly/io/Cursor.h:507:13: error: 'make_unique' is not a member of 'std'
buf = std::make_uniquefolly::IOBuf();
^
./../folly/io/Cursor.h:507:13: note: suggested alternative:
In file included from compression/Compression.cpp:52:0:
./../folly/Memory.h:108:1: note: 'folly::make_unique'
make_unique(Args&&...) = delete;
^
In file included from ./../folly/compression/Utils.h:21:0,
from compression/Compression.cpp:56:
./../folly/io/Cursor.h:507:42: error: expected primary-expression before '>' token
buf = std::make_uniquefolly::IOBuf();
^
./../folly/io/Cursor.h:507:44: error: expected primary-expression before ')' token
buf = std::make_uniquefolly::IOBuf();
^
compression/Compression.cpp: In static member function 'static std::unique_ptrfolly::io::Codec folly::io::{anonymous}::NoCompressionCodec::create(int, folly::io::CodecType)':
compression/Compression.cpp:457:10: error: 'make_unique' is not a member of 'std'
return std::make_unique(level, type);
^
compression/Compression.cpp:457:10: note: suggested alternative:
In file included from compression/Compression.cpp:52:0:
./../folly/Memory.h:108:1: note: 'folly::make_unique'
make_unique(Args&&...) = delete;
^
compression/Compression.cpp:457:45: error: expected primary-expression before '>' token
return std::make_unique(level, type);
^
compression/Compression.cpp: In static member function 'static std::unique_ptrfolly::io::Codec folly::io::{anonymous}::LZ4Codec::create(int, folly::io::CodecType)':
compression/Compression.cpp:551:10: error: 'make_unique' is not a member of 'std'
return std::make_unique(level, type);
^
compression/Compression.cpp:551:10: note: suggested alternative:
In file included from compression/Compression.cpp:52:0:
./../folly/Memory.h:108:1: note: 'folly::make_unique'
make_unique(Args&&...) = delete;
^
compression/Compression.cpp:551:35: error: expected primary-expression before '>' token
return std::make_unique(level, type);
^
compression/Compression.cpp: In static member function 'static std::unique_ptrfolly::io::Codec folly::io::{anonymous}::SnappyCodec::create(int, folly::io::CodecType)':
compression/Compression.cpp:909:10: error: 'make_unique' is not a member of 'std'
return std::make_unique(level, type);
^
compression/Compression.cpp:909:10: note: suggested alternative:
In file included from compression/Compression.cpp:52:0:
./../folly/Memory.h:108:1: note: 'folly::make_unique'
make_unique(Args&&...) = delete;
^
compression/Compression.cpp:909:38: error: expected primary-expression before '>' token
return std::make_unique(level, type);
^
compression/Compression.cpp: In static member function 'static std::unique_ptrfolly::io::Codec folly::io::{anonymous}::AutomaticCodec::create(std::vector<std::unique_ptrfolly::io::Codec >, std::unique_ptrfolly::io::Codec)':
compression/Compression.cpp:1906:10: error: 'make_unique' is not a member of 'std'
return std::make_unique(
^
compression/Compression.cpp:1906:10: note: suggested alternative:
In file included from compression/Compression.cpp:52:0:
./../folly/Memory.h:108:1: note: 'folly::make_unique'
make_unique(Args&&...) = delete;
^
compression/Compression.cpp:1906:41: error: expected primary-expression before '>' token
return std::make_unique(
^
make[2]: *** [compression/Compression.lo] Error 1
make[2]: Leaving directory /root/Downloads/openr-master/build/deps/folly/folly' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /root/Downloads/openr-master/build/deps/folly/folly'
make: *** [all] Error 2
root@greenvm-d13450v1:/Downloads/openr-master/build#
root@greenvm-d13450v1:
/Downloads/openr-master/build#
root@greenvm-d13450v1:/Downloads/openr-master/build# gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1
14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Environment

ubuntu-14.04

Minimal test code / Steps to reproduce the issue

What's the actual result?

What's the expected result?