Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error on ubuntu 14.04 #16

Closed
danzoo opened this issue Jan 30, 2018 · 0 comments
Closed

compile error on ubuntu 14.04 #16

danzoo opened this issue Jan 30, 2018 · 0 comments

Comments

@danzoo
Copy link

danzoo commented Jan 30, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant