mahmoodn opened a new issue #15957: error: call of overloaded is ambiguous URL: https://github.com/apache/incubator-mxnet/issues/15957 With gcc 7.4 and cuda 10 and mxnet-1.4.1, I get this compilation error ``` include/mxnet/././ndarray.h:169:78: error: call of overloaded ‘NodeEntry(<brace-enclosed initializer list>)’ is ambiguous dtype_(data.type_flag_), storage_type_(stype), entry_({nullptr, 0, 0}) { ``` details: ``` g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/mh.naderan/mx/mxnet-1.4.1/3rdparty/mshadow/ -I/home/mh.naderan/mx/mxnet-1.4.1/3rdparty/dmlc-core/include -fPIC -I/home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include -I/home/mh.naderan/mx/mxnet-1.4.1/3rdparty/dlpack/include -I/home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -DMSHADOW_USE_F16C=0 -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -DMXNET_USE_OPERATOR_TUNING=1 -DMSHADOW_USE_CUDNN=1 -I/home/mh.naderan/mx/mxnet-1.4.1/warp-ctc/include -I/home/mh.naderan/mx/mxnet-1.4.1/3rdparty/cub -DMXNET_ENABLE_CUDA_RTC=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0 -MMD -c src/operator/nn/mkldnn/mkldnn_act.cc -o build/src/operator/nn/mkldnn/mkldnn_act.o In file included from include/mxnet/./base.h:432:0, from include/mxnet/operator.h:38, from src/operator/nn/mkldnn/mkldnn_act.cc:28: include/mxnet/././tensor_blob.h: In member function ‘virtual void dmlc::parameter::FieldEntry<nnvm::TShape>::Check(void*) const’: include/mxnet/././tensor_blob.h:438:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (expect_ndim_ != 0 && v.ndim() != expect_ndim_) { ~~~~~~~~~^~~~~~~~~~~~~~~ include/mxnet/././tensor_blob.h:445:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (mxnet::index_t i = 0; i < v.ndim(); ++i) { ~~^~~~~~~~~~ In file included from include/mxnet/./op_attr_types.h:36:0, from include/mxnet/operator.h:40, from src/operator/nn/mkldnn/mkldnn_act.cc:28: include/mxnet/././ndarray.h: In constructor ‘mxnet::NDArray::NDArray(const TShape&, mxnet::Context, bool, int)’: include/mxnet/././ndarray.h:98:31: error: call of overloaded ‘NodeEntry(<brace-enclosed initializer list>)’ is ambiguous entry_({nullptr, 0, 0}) { ^ In file included from include/mxnet/operator.h:33:0, from src/operator/nn/mkldnn/mkldnn_act.cc:28: /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:59:12: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodePtr) explicit NodeEntry(NodePtr node): ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(const nnvm::NodeEntry&) struct NodeEntry { ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodeEntry&&) In file included from include/mxnet/./op_attr_types.h:36:0, from include/mxnet/operator.h:40, from src/operator/nn/mkldnn/mkldnn_act.cc:28: include/mxnet/././ndarray.h: In constructor ‘mxnet::NDArray::NDArray(const mxnet::TBlob&, int)’: include/mxnet/././ndarray.h:128:31: error: call of overloaded ‘NodeEntry(<brace-enclosed initializer list>)’ is ambiguous entry_({nullptr, 0, 0}) { ^ In file included from include/mxnet/operator.h:33:0, from src/operator/nn/mkldnn/mkldnn_act.cc:28: /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:59:12: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodePtr) explicit NodeEntry(NodePtr node): ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(const nnvm::NodeEntry&) struct NodeEntry { ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodeEntry&&) In file included from include/mxnet/./op_attr_types.h:36:0, from include/mxnet/operator.h:40, from src/operator/nn/mkldnn/mkldnn_act.cc:28: include/mxnet/././ndarray.h: In constructor ‘mxnet::NDArray::NDArray(const mxnet::TBlob&, int, const std::function<void()>&)’: include/mxnet/././ndarray.h:147:31: error: call of overloaded ‘NodeEntry(<brace-enclosed initializer list>)’ is ambiguous entry_({nullptr, 0, 0}) { ^ In file included from include/mxnet/operator.h:33:0, from src/operator/nn/mkldnn/mkldnn_act.cc:28: /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:59:12: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodePtr) explicit NodeEntry(NodePtr node): ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(const nnvm::NodeEntry&) struct NodeEntry { ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodeEntry&&) In file included from include/mxnet/./op_attr_types.h:36:0, from include/mxnet/operator.h:40, from src/operator/nn/mkldnn/mkldnn_act.cc:28: include/mxnet/././ndarray.h: In constructor ‘mxnet::NDArray::NDArray(int, int, const TShape&, int)’: include/mxnet/././ndarray.h:153:78: error: call of overloaded ‘NodeEntry(<brace-enclosed initializer list>)’ is ambiguous dtype_(dtype), storage_type_(kDefaultStorage), entry_({nullptr, 0, 0}) { ^ In file included from include/mxnet/operator.h:33:0, from src/operator/nn/mkldnn/mkldnn_act.cc:28: /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:59:12: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodePtr) explicit NodeEntry(NodePtr node): ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(const nnvm::NodeEntry&) struct NodeEntry { ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodeEntry&&) In file included from include/mxnet/./op_attr_types.h:36:0, from include/mxnet/operator.h:40, from src/operator/nn/mkldnn/mkldnn_act.cc:28: include/mxnet/././ndarray.h: In constructor ‘mxnet::NDArray::NDArray(mxnet::NDArrayStorageType, const TShape&, const mxnet::TBlob&, const std::vector<mxnet::TBlob>&, int)’: include/mxnet/././ndarray.h:169:78: error: call of overloaded ‘NodeEntry(<brace-enclosed initializer list>)’ is ambiguous dtype_(data.type_flag_), storage_type_(stype), entry_({nullptr, 0, 0}) { ^ In file included from include/mxnet/operator.h:33:0, from src/operator/nn/mkldnn/mkldnn_act.cc:28: /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:59:12: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodePtr) explicit NodeEntry(NodePtr node): ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(const nnvm::NodeEntry&) struct NodeEntry { ^~~~~~~~~ /home/mh.naderan/mx/mxnet-1.4.1/3rdparty/tvm/nnvm/include/nnvm/node.h:52:8: note: candidate: nnvm::NodeEntry::NodeEntry(nnvm::NodeEntry&&) Makefile:461: recipe for target 'build/src/operator/nn/mkldnn/mkldnn_act.o' failed make: *** [build/src/operator/nn/mkldnn/mkldnn_act.o] Error 1 ``` Any way to fix that?
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services