I use sudo python setup.py install,It report:
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
caffe2/CMakeFiles/caffe2.dir/build.make:1083: recipe for target 'caffe2/CMakeFiles/caffe2.dir//aten/src/ATen/core/register_symbols.cpp.o’ failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir//aten/src/ATen/core/register_symbols.cpp.o] Error 4
CMakeFiles/Makefile2:3724: recipe for target ‘caffe2/CMakeFiles/caffe2.dir/all’ failed
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Failed to run ‘bash …/tools/build_pytorch_libs.sh --use-nnpack --use-mkldnn --use-qnnpack caffe2’