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

install error from source #20005

Open
bliunlpr opened this issue May 1, 2019 · 10 comments
Open

install error from source #20005

bliunlpr opened this issue May 1, 2019 · 10 comments
Labels
module: internals Related to internal abstractions in c10 and ATen proposal accepted The core team has reviewed the feature request and agreed it would be a useful addition to PyTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@bliunlpr
Copy link

bliunlpr commented May 1, 2019

Hello,there is the output.I don't know how to deal with it.

[1/1460] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o
FAILED: caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o
/data1/NLPRMNT/public/gcc485/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DNNP_CONVOLUTION_ONLY=0 -DNNP_INFERENCE_ONLY=0 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DUSE_GCC_ATOMICS=1 -D_FILE_OFFSET_BITS=64 -Dcaffe2_EXPORTS -I../aten/src -I. -I../ -isystem third_party/gloo -isystem ../cmake/../third_party/gloo -isystem ../cmake/../third_party/googletest/googlemock/include -isystem ../cmake/../third_party/googletest/googletest/include -I../third_party/protobuf/src -isystem /data1/NLPRMNT/liguanjun/bliu/opt/anaconda3/include -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -I../cmake/../third_party/benchmark/include -isystem ../cmake/../third_party/eigen -isystem /data1/NLPRMNT/liguanjun/bliu/opt/anaconda3/include/python3.6m -isystem /data1/NLPRMNT/liguanjun/bliu/opt/anaconda3/lib/python3.6/site-packages/numpy/core/include -isystem ../cmake/../third_party/pybind11/include -isystem /opt/openmpi/include -isystem ../cmake/../third_party/cub -Icaffe2/contrib/aten -I../third_party/onnx -Ithird_party/onnx -I../third_party/foxi -Ithird_party/foxi -isystem ../third_party/ideep/mkl-dnn/include -isystem ../third_party/ideep/include -Icaffe2/aten/src/TH -I../aten/src/TH -Icaffe2/aten/src -Iaten/src -I../aten/../third_party/catch/single_include -I../aten/src/ATen/.. -Icaffe2/aten/src/ATen -I../caffe2/core/nomnigraph/include -I../third_party/miniz-2.0.8 -isystem include -I/data1/NLPRMNT/liguanjun/software/cuda9.0/include -I../c10/.. -Ithird_party/ideep/mkl-dnn/include -I../third_party/ideep/mkl-dnn/src/../include -I../third_party/QNNPACK/include -I../third_party/pthreadpool/include -I../third_party/NNPACK/include -I../third_party/cpuinfo/include -I../third_party/FP16/include -fvisibility-inlines-hidden -fopenmp -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -DHAVE_AVX_CPU_DEFINITION -O3 -fPIC -DCAFFE2_USE_GLOO -DCUDA_HAS_FP16=1 -DHAVE_GCC_GET_CPUID -DUSE_AVX -DTH_HAVE_THREAD -fvisibility=hidden -DCAFFE2_BUILD_MAIN_LIB -O2 -pthread -std=gnu++11 -MMD -MT caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o -MF caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o.d -o caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o -c ../caffe2/contrib/aten/aten_op.cc
In file included from ../caffe2/contrib/aten/aten_op.cc:1:0:
../caffe2/contrib/aten/aten_op.h:1:52: fatal error: caffe2/caffe2/contrib/aten/gen_aten_op.h: No such file or directory
#include "caffe2/caffe2/contrib/aten/gen_aten_op.h"
^
compilation terminated.
[18/1460] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op_eigen.cc.o
ninja: build stopped: subcommand failed.

@bliunlpr
Copy link
Author

bliunlpr commented May 1, 2019

I cannot find the file caffe2/caffe2/contrib/aten/gen_aten_op.h

@zhangguanheng66 zhangguanheng66 added proposal accepted The core team has reviewed the feature request and agreed it would be a useful addition to PyTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module module: internals Related to internal abstractions in c10 and ATen labels May 1, 2019
@TianDekuan
Copy link

I cannot find the file caffe2/caffe2/contrib/aten/gen_aten_op.h

I meet this err again

@yanhaiming56
Copy link

I get the error yet. How do you fix this bug?

@HenryJia
Copy link

Also getting this issue with compile from source. Any updates?

@HenryJia
Copy link

HenryJia commented Jun 7, 2019

Found a solution, adding USE_NINJA=OFF seems to fix this

@xuhdev
Copy link
Collaborator

xuhdev commented Jun 25, 2019

Could you pull the latest source, run git clean -fdX and try again?

@dylanbespalko
Copy link
Contributor

Hello @xuhdev,

I tried git clean -fdX and I'm still having the problem. I'm building the source on Linux.

@passion3394
Copy link

passion3394 commented Jul 1, 2019

adding USE_NINJA=OFF work for me.thanks!

@lucasjinreal
Copy link

Why using ninja by default and actually it casuese lot of errors.

@zh794390558
Copy link

meet same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: internals Related to internal abstractions in c10 and ATen proposal accepted The core team has reviewed the feature request and agreed it would be a useful addition to PyTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

10 participants