You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/07/16 21:09:49 UTC
[GitHub] [incubator-mxnet] leezu opened a new issue #18739: Compiling with ps-lite enabled leaves 3rdparty/ps-lite/src/meta.pb.cc 3rdparty/ps-lite/src/meta.pb.h in tree
leezu opened a new issue #18739:
URL: https://github.com/apache/incubator-mxnet/issues/18739
## Description
Compilation will generate the `3rdparty/ps-lite/src/meta.pb.cc` `3rdparty/ps-lite/src/meta.pb.h` files.
This causes issues when compiling using different Docker containers or on the host platform, as subsequent compilation attempts won't generate the files and instead will fail with the error:
```
[1/223] Building CXX object 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/meta.pb.cc.o
FAILED: 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/meta.pb.cc.o
/usr/local/bin/ccache /usr/bin/g++-7 -DDMLC_LOG_STACK_TRACE_SIZE=0 -DDMLC_MODERN_THREAD_LOCAL=0 -DDMLC_STRICT_CXX11 -DDMLC_USE_CXX11 -DDMLC_USE_CXX14 -DMSHADOW_IN_CXX11 -DMSHADOW_USE
_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_LIBJPEG_TURBO=0 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DMXNET_U
SE_TVM_OP=1 -I/work/mxnet/include -I/work/mxnet/src -I/work/mxnet/3rdparty/nvidia_cub -I/work/mxnet/3rdparty/tvm/nnvm/include -I/work/mxnet/3rdparty/tvm/include -I/work/mxnet/3rdparty
/dmlc-core/include -I/work/mxnet/3rdparty/dlpack/include -I3rdparty/ps-lite -I/work/mxnet/3rdparty/ps-lite/include -isystem /usr/include/opencv -Wno-error=strict-overflow -D_GLIBCXX_A
SSERTIONS -Wall -Wno-sign-compare -O3 -g -fopenmp -O2 -g -DNDEBUG -fPIC -std=c++11 -MD -MT 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/meta.pb.cc.o -MF 3rdparty/ps-lite/CMakeFiles/p
slite.dir/src/meta.pb.cc.o.d -o 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/meta.pb.cc.o -c /work/mxnet/3rdparty/ps-lite/src/meta.pb.cc
In file included from /work/mxnet/3rdparty/ps-lite/src/meta.pb.cc:4:0:
/work/mxnet/3rdparty/ps-lite/src/meta.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
#include <google/protobuf/port_def.inc>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/223] Building CXX object 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/van.cc.o
FAILED: 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/van.cc.o
/usr/local/bin/ccache /usr/bin/g++-7 -DDMLC_LOG_STACK_TRACE_SIZE=0 -DDMLC_MODERN_THREAD_LOCAL=0 -DDMLC_STRICT_CXX11 -DDMLC_USE_CXX11 -DDMLC_USE_CXX14 -DMSHADOW_IN_CXX11 -DMSHADOW_USE
_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMXNET_USE_BLAS_OPEN=1 -DMXNET_USE_LAPACK=1 -DMXNET_USE_LIBJPEG_TURBO=0 -DMXNET_USE_OPENCV=1 -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DMXNET_U
SE_TVM_OP=1 -I/work/mxnet/include -I/work/mxnet/src -I/work/mxnet/3rdparty/nvidia_cub -I/work/mxnet/3rdparty/tvm/nnvm/include -I/work/mxnet/3rdparty/tvm/include -I/work/mxnet/3rdparty
/dmlc-core/include -I/work/mxnet/3rdparty/dlpack/include -I3rdparty/ps-lite -I/work/mxnet/3rdparty/ps-lite/include -isystem /usr/include/opencv -Wno-error=strict-overflow -D_GLIBCXX_A
SSERTIONS -Wall -Wno-sign-compare -O3 -g -fopenmp -O2 -g -DNDEBUG -fPIC -std=c++11 -MD -MT 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/van.cc.o -MF 3rdparty/ps-lite/CMakeFiles/pslit
e.dir/src/van.cc.o.d -o 3rdparty/ps-lite/CMakeFiles/pslite.dir/src/van.cc.o -c /work/mxnet/3rdparty/ps-lite/src/van.cc
In file included from /work/mxnet/3rdparty/ps-lite/src/van.cc:14:0:
/work/mxnet/3rdparty/ps-lite/src/./meta.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
#include <google/protobuf/port_def.inc>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```
No files should be generated in the src or 3rdparty folder; but all build-generated files should be contained in the build folder.
As 3rdparty/ps-lite is a submodule, `git clean -ffxd` won't clean the files either.
----------------------------------------------------------------
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:
users@infra.apache.org