Closed PetrochukM closed 2 years ago
looks like a compiler bug
FAILED: caffe2/CMakeFiles/torch.dir/__/aten/src/TH/THTensorMoreMath.cpp.o
/usr/bin/c++ -DAT_PARALLEL_OPENMP=1 -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -D_FILE_OFFSET_BITS=64 -D_THP_CORE -Dtorch_EXPORTS -I../aten/src -I. -I../ -isystem ../third_party/protobuf/src -isystem /opt/conda/include -isystem ../cmake/../third_party/eigen -isystem /opt/conda/include/python3.6m -isystem /opt/conda/lib/python3.6/site-packages/numpy/core/include -isystem ../cmake/../third_party/pybind11/include -isystem /opt/rocm/hip/include -isystem /include -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 -I../caffe2/../torch/csrc/api -I../caffe2/../torch/csrc/api/include -I../caffe2/aten/src/TH -Icaffe2/aten/src/TH -I../caffe2/../torch/../aten/src -Icaffe2/aten/src -Iaten/src -Icaffe2/../aten/src -Icaffe2/../aten/src/ATen -I../caffe2/../torch/csrc -I../caffe2/../torch/../third_party/miniz-2.0.8 -I../aten/src/TH -I../aten/../third_party/catch/single_include -I../aten/src/ATen/.. -Icaffe2/aten/src/ATen -I../third_party/miniz-2.0.8 -I../caffe2/core/nomnigraph/include -isystem include -I../c10/.. -I../third_party/cpuinfo/include -I../third_party/FP16/include -Ithird_party/ideep/mkl-dnn/include -I../third_party/ideep/mkl-dnn/src/../include -Wno-deprecated -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 -fdiagnostics-color=always -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -fPIC -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-missing-braces -Wno-maybe-uninitialized -fvisibility=hidden -DCAFFE2_BUILD_MAIN_LIB -O2 -std=gnu++11 -MMD -MT caffe2/CMakeFiles/torch.dir/__/aten/src/TH/THTensorMoreMath.cpp.o -MF caffe2/CMakeFiles/torch.dir/__/aten/src/TH/THTensorMoreMath.cpp.o.d -o caffe2/CMakeFiles/torch.dir/__/aten/src/TH/THTensorMoreMath.cpp.o -c ../aten/src/TH/THTensorMoreMath.cpp
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Thanks! This is a docker image based off the PyTorch official one. How do I work around this? I'd like to build PyTorch if possible!
@PetrochukM - can this be reproduced using the vanilla pytorch docker image? If not, what changes did you make to end up with your image?
For all practical purposes, it's the same image: https://www.diffchecker.com/42Vo05Cc
I removed all the CUDA related components and turned off a lot of features.
Closing due to age. If you're still experiencing this problem please file a new issue.
🐛 Bug
PyTorch CPU docker failed to build.
To Reproduce