You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/12/19 19:11:00 UTC

[GitHub] [incubator-mxnet] yurivict opened a new issue #20784: error: no member named 'make_unique' in namespace 'std'

yurivict opened a new issue #20784:
URL: https://github.com/apache/incubator-mxnet/issues/20784


   ## Description
   ```
   In file included from /disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/src/nnvm/tvm_bridge.cc:37:
   In file included from /disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/3rdparty/tvm/include/tvm/runtime/packed_func.h:29:
   /disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/3rdparty/tvm/include/tvm/runtime/container.h:884:42: error: no member named 'make_unique' in namespace 'std'
       std::unique_ptr<StackFrame> s = std::make_unique<StackFrame>();
                                       ~~~~~^
   /disk-samsung/freebsd-ports/misc/mxnet/work/incubator-mxnet-1.9.0/3rdparty/tvm/include/tvm/runtime/container.h:884:54: error: 'StackFrame' does not refer to a value
       std::unique_ptr<StackFrame> s = std::make_unique<StackFrame>();
                                                        ^
   ```
   
   You compile with ```-std=c++11``` and [docs](https://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique) say that ```std::make_unique``` is only available after C++14.
   
   
   ### Error Message
   (Paste the complete error message. Please also include stack trace by setting environment variable `DMLC_LOG_STACK_TRACE_DEPTH=100` before running your script.)
   
   ## To Reproduce
   (If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
   
   ### Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   1.
   2.
   
   ## What have you tried to solve it?
   
   1.
   2.
   
   ## Environment
   
   ***We recommend using our script for collecting the diagnostic information with the following command***
   `curl --retry 10 -s https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py | python3`
   
   <details>
   <summary>Environment Information</summary>
   
   ```
   # Paste the diagnose.py command output here
   ```
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org