tornadomeet commented on issue #7807: newest mxnet build failed with operator/tensor/la_op URL: https://github.com/apache/incubator-mxnet/issues/7807#issuecomment-328244874 @piiswrong error is related to `linalg_impl`, i think this is a initialize warning, but here it regarded as error: ```shell g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -g -Werror -O3 -DNDEBUG=1 -I/home/wuwei/project/dmlc/mxnet/mshadow/ -I/home/wuwei/project/dmlc/mxnet/dmlc-core/include -fPIC -I/home/wuwei/project/dmlc/mxnet/nnvm/include -I/home/wuwei/project/dmlc/mxnet/dlpack/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -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_PROFILER=1 -DMXNET_USE_OPENCV=1 -I/usr/local/include/opencv -I/usr/local/include -fopenmp -DMSHADOW_USE_CUDNN=1 -I/home/wuwei/project/dmlc/mxnet/cub -DMXNET_USE_NVRTC=0 -MMD -c src/executor/attach_op_execs_pass.cc -o build/src/executor/attach_op_execs_pass.o g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -g -Werror -O3 -DNDEBUG=1 -I/home/wuwei/project/dmlc/mxnet/mshadow/ -I/home/wuwei/project/dmlc/mxnet/dmlc-core/include -fPIC -I/home/wuwei/project/dmlc/mxnet/nnvm/include -I/home/wuwei/project/dmlc/mxnet/dlpack/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -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_PROFILER=1 -DMXNET_USE_OPENCV=1 -I/usr/local/include/opencv -I/usr/local/include -fopenmp -DMSHADOW_USE_CUDNN=1 -I/home/wuwei/project/dmlc/mxnet/cub -DMXNET_USE_NVRTC=0 -MMD -c src/executor/attach_op_resource_pass.cc -o build/src/executor/attach_op_resource_pass.o In file included from src/operator/tensor/./../linalg.h:167:0, from src/operator/tensor/./la_op_inline.h:27, from src/operator/tensor/la_op.cc:25: src/operator/tensor/./../linalg_impl.h: In function ?int linalg_gelqf_workspace_query(const mshadow::Tensor<Device, 2, DType>&, mshadow::Stream<Device>*) [with xpu = mshadow::cpu; DType = float]?: src/operator/tensor/./../linalg_impl.h:843:37: error: ?work? may be used uninitialized in this function [-Werror=maybe-uninitialized] int ws_size(static_cast<int>(work)); \ ^ src/operator/tensor/./../linalg_impl.h:838:9: note: ?work? was declared here DType work; \ ^ src/operator/tensor/./../linalg_impl.h:852:1: note: in expansion of macro ?LINALG_CPU_GELQF_WORKSPACE_QUERY? LINALG_CPU_GELQF_WORKSPACE_QUERY(s, float) ^ src/operator/tensor/./../linalg_impl.h: In function ?int linalg_gelqf_workspace_query(const mshadow::Tensor<Device, 2, DType>&, mshadow::Stream<Device>*) [with xpu = mshadow::cpu; DType = double]?: src/operator/tensor/./../linalg_impl.h:843:37: error: ?work? may be used uninitialized in this function [-Werror=maybe-uninitialized] int ws_size(static_cast<int>(work)); \ ^ src/operator/tensor/./../linalg_impl.h:838:9: note: ?work? was declared here DType work; \ ^ src/operator/tensor/./../linalg_impl.h:853:1: note: in expansion of macro ?LINALG_CPU_GELQF_WORKSPACE_QUERY? LINALG_CPU_GELQF_WORKSPACE_QUERY(d, double) ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
