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

make error #26981

Closed
boot-vue opened this issue Mar 29, 2019 · 2 comments
Closed

make error #26981

boot-vue opened this issue Mar 29, 2019 · 2 comments
Labels
build Issues and PRs related to build files or the CI. invalid Issues and PRs that are invalid.

Comments

@boot-vue
Copy link

../src/cares_wrap.cc: 在函数‘void node::cares_wrap::{anonymous}::Query(const v8::FunctionCallbackInfo<v8::Value>&)’中: ../src/cares_wrap.cc:1799:15: 错误:‘make_unique’不是‘std’的成员 auto wrap = std::make_unique<Wrap>(channel, req_wrap_obj); ^ ../src/cares_wrap.cc:1799:36: 错误:expected primary-expression before ‘>’ token auto wrap = std::make_unique<Wrap>(channel, req_wrap_obj); ^ ../src/cares_wrap.cc: 在函数‘void node::cares_wrap::{anonymous}::GetAddrInfo(const v8::FunctionCallbackInfo<v8::Value>&)’中: ../src/cares_wrap.cc:1973:19: 错误:‘make_unique’不是‘std’的成员 auto req_wrap = std::make_unique<GetAddrInfoReqWrap>(env, ^ ../src/cares_wrap.cc:1973:54: 错误:expected primary-expression before ‘>’ token auto req_wrap = std::make_unique<GetAddrInfoReqWrap>(env, ^ ../src/cares_wrap.cc:1974:56: 警告:left operand of comma operator has no effect [-Wunused-value] req_wrap_obj, ^ ../src/cares_wrap.cc:1975:72: 警告:right operand of comma operator has no effect [-Wunused-value] args[4]->IsTrue()); ^ ../src/cares_wrap.cc: 在函数‘void node::cares_wrap::{anonymous}::GetNameInfo(const v8::FunctionCallbackInfo<v8::Value>&)’中: ../src/cares_wrap.cc:2016:19: 错误:‘make_unique’不是‘std’的成员 auto req_wrap = std::make_unique<GetNameInfoReqWrap>(env, req_wrap_obj); ^ ../src/cares_wrap.cc:2016:54: 错误:expected primary-expression before ‘>’ token auto req_wrap = std::make_unique<GetNameInfoReqWrap>(env, req_wrap_obj); ^ ../src/cares_wrap.cc:2016:61: 警告:left operand of comma operator has no effect [-Wunused-value] auto req_wrap = std::make_unique<GetNameInfoReqWrap>(env, req_wrap_obj); ^ make[1]: *** [/root/node-v10.15.3/out/Release/obj.target/node_lib/src/cares_wrap.o] 错误 1 make[1]: *** 正在等待未完成的任务.... rm 9e941d1d1f4a37a860bc64b8713ce8ee6e0f5e81.intermediate cfa79dedbff486e9cc598ee0606dbcd8760aaf8e.intermediate b232338e50216b4d45ad0201ed8e31c046c63d57.intermediate make[1]: 离开目录“/root/node-v10.15.3/out” make: *** [node] 错误 2

gcc/g++ : 4.8.5 GNU Make 3.82
node: 10.15.3 LTS
os: centos 7.X

@mscdex
Copy link
Contributor

mscdex commented Mar 29, 2019

The BUILDING.md for node v10.x mentions you should be using gcc/g++ v4.9.5 or newer to build node on *nix.

Since you're on CentOS 7.x, you can use the devtoolset-7 repo to get a recent compiler.

@bnoordhuis
Copy link
Member

Closing as answered. For follow-up questions please turn to the nodejs/help repo.

@bnoordhuis bnoordhuis added invalid Issues and PRs that are invalid. build Issues and PRs related to build files or the CI. labels Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. invalid Issues and PRs that are invalid.
Projects
None yet
Development

No branches or pull requests

3 participants