Compiling pytorch

tepperson: <p>I am setting up some recipes to compile pytorch with yocto and have run into a problem I am not sure how to resolve.</p>
<p>Here is from my compile log of the failure.</p>
<p>FAILED: caffe2/CMakeFiles/torch_cpu.dir/<strong>/aten/src/ATen/RegisterCPU.cpp.o<br>
/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/recipe-sysroot-native/usr/bin/aarch64-fslc-linux/aarch64-fslc-linux-g++ -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNNP_CONVOLUTION_ONLY=0 -DNNP_INFERENCE_ONLY=0 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DPROTOBUF_USE_DLLS -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/aten/src -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/aten/src -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/onnx -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/third_party/onnx -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/foxi -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/third_party/foxi -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/torch/csrc/api -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/torch/csrc/api/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/caffe2/aten/src/TH -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/caffe2/aten/src/TH -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/caffe2/aten/src -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/caffe2/…/aten/src -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/torch/csrc -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/miniz-2.1.0 -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/kineto/libkineto/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/kineto/libkineto/src -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/aten/…/third_party/catch/single_include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/aten/src/ATen/… -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/c10/… -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/pthreadpool/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/cpuinfo/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/QNNPACK/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/aten/src/ATen/native/quantized/cpu/qnnpack/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/aten/src/ATen/native/quantized/cpu/qnnpack/src -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/cpuinfo/deps/clog/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/NNPACK/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/FP16/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/tensorpipe -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/third_party/tensorpipe -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/tensorpipe/third_party/libnop/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/fmt/include -I/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/flatbuffers/include -isystem /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/third_party/gloo -isystem /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/cmake/…/third_party/gloo -isystem /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/gemmlowp -isystem /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/third_party/neon2sse -isystem /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git/cmake/…/third_party/eigen -isystem /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/include -march=armv8-a+crc+crypto -fstack-protector-strong  -O3 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/recipe-sysroot  -O3 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git=/usr/src/debug/pytorch/1.13-r0  -fdebug-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/git=/usr/src/debug/pytorch/1.13-r0  -fmacro-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build=/usr/src/debug/pytorch/1.13-r0  -fdebug-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build=/usr/src/debug/pytorch/1.13-r0  -fdebug-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/recipe-sysroot=  -fmacro-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/recipe-sysroot=  -fdebug-prefix-map=/home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow -DNDEBUG -DNDEBUG -fPIC -DCAFFE2_USE_GLOO -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-type-limits -Wno-array-bounds -Wno-sign-compare -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-missing-braces -Wno-maybe-uninitialized -fvisibility=hidden -O2 -DCAFFE2_BUILD_MAIN_LIB -pthread -std=gnu++14 -MD -MT caffe2/CMakeFiles/torch_cpu.dir/</strong>/aten/src/ATen/RegisterCPU.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/<strong>/aten/src/ATen/RegisterCPU.cpp.o.d -o caffe2/CMakeFiles/torch_cpu.dir/</strong>/aten/src/ATen/RegisterCPU.cpp.o -c /home/thomas/yocto/build_xwayland/tmp/work/armv8a-fslc-linux/pytorch/1.13-r0/build/aten/src/ATen/RegisterCPU.cpp<br>
{standard input}: Assembler messages:<br>
{standard input}:149844: Warning: end of file not at end of a line; newline inserted<br>
{standard input}:150623: Error: unknown pseudo-op: `.lbb40’<br>
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive<br>
aarch64-fslc-linux-g++: fatal error: Killed signal terminated program cc1plus<br>
compilation terminated.</p>

tepperson: <p>Turns out it was an out of memory issue.</p>